There is no public GSTIN for testing; use a clearly fake 15-character number or the GST portal's sandbox, never a real taxpayer's ID.
You cannot use a real GSTIN for testing. A GSTIN is a 15-character identifier tied to one registered taxpayer, and using someone else's number to test software, invoices or forms is impersonation. The safe options are a made-up number that passes the checksum or the sandbox environment the GST portal provides.
The detail most people get wrong: the 15th character of a GSTIN is a check digit, so a random 15-character string usually fails validation before it even reaches the server. Test numbers need to be built, not typed.
Build a Fake GSTIN That Passes the Format Check
A GSTIN is 15 characters long and follows a fixed pattern. The first two digits are the state code, the next ten are the taxpayer's PAN, the 13th is the entity number for that PAN, the 14th is the letter Z by default, and the 15th is a check digit.
- Characters 1-2: state code, a two-digit number. Goa is 30.
- Characters 3-12: a ten-character PAN, in the pattern five letters, four digits, one letter.
- Character 13: entity number, 1 to 9 or A to Z.
- Character 14: the letter Z.
- Character 15: a check digit calculated from the first 14 characters.
For a Goa test number, start with 30, then a PAN-shaped block, then the entity digit, then Z, then the check digit. A pattern like 30ABCDE1234F1Z5 is the shape to aim for, but the final character must be the correct check digit or the number fails validation.
The check digit is computed with a simple algorithm: assign each character a value (digits 0-9 keep their value, letters A-Z take values 10-35), multiply the value of each character in an odd position by 1 and each in an even position by 2, sum the digits of each product, add all the results, and take the remainder when divided by 36. The check character is 36 minus that remainder, mapped back to a digit or letter.
Do the arithmetic twice if you build a number by hand. A single slip in the PAN block changes the check digit.
Why a Random 15-Character String Fails
Most form validators on the GST portal and in accounting software check the check digit before anything else. A string like 30AAAAA0000A1Z9 will be rejected at the client side if the last character is wrong, and you will not see the real error message. Build the check digit, or use a number that is already known to be valid in a test environment.
Use the Sandbox Instead of a Live GSTIN
The GST portal offers a sandbox or test environment for developers who need to test API calls, return filing flows and invoice validation. In the sandbox, the portal issues test credentials and test GSTINs that are not tied to real taxpayers. Use those numbers, not numbers you invent, when you are testing against the portal's own services.
Labels and menu paths in the portal can differ by version, so look for the developer or sandbox section under the portal's help or API documentation area. If you cannot find it, the portal's helpdesk is the place to ask for the current test credentials process.
For internal testing, where you only need a number that passes your own form validation, a built fake number is enough. For testing against the portal, a sandbox number is the only safe choice.
Goa's State Code and What It Tells You
Goa's state code is 30. That is the first two characters of every GSTIN issued in the state. The state code is not a secret and does not identify a taxpayer on its own; it only tells you where the registration was issued.
If you are testing a form that validates state codes, 30 is the value to use for a Goa test case. The other state codes follow the same two-digit pattern, so you can build test cases for other states by changing the first two characters and recalculating the check digit.
The state code does not change when a taxpayer moves within the state, and it does not change with the entity number. It is fixed at registration.
What a GSTIN Is Not
A GSTIN is not a password, a login or an API key. It is a public identifier that appears on invoices and can be verified on the GST portal. That public nature is exactly why using a real one for testing is a problem: anyone can look up the registration and see whose number you used.
A GSTIN is also not the same as a GSTIN for a different state. A taxpayer registered in Goa has a Goa GSTIN; the same business registered in another state has a separate GSTIN for that state. Test cases that mix state codes and PANs will fail validation for the wrong reason.
And a GSTIN is not a TAN, a PAN or a CIN. Those are separate identifiers with their own formats. A form that asks for a GSTIN will reject a PAN even though the PAN block inside a GSTIN looks similar.
Check a Test GSTIN Before You Ship
Before you rely on a test number, run it through the same validation your users will hit. A valid test number should pass the format check, the state code check and the check digit check. If it fails any of those, the number is wrong, not the form.
- Count the characters: exactly 15, no spaces.
- Check the first two characters against the state code list; 30 for Goa.
- Check characters 3-12 against the PAN pattern.
- Check character 14 is Z.
- Recalculate the check digit and compare it with character 15.
If the number passes all five checks but the portal still rejects it, the number is not registered. That is expected for a fake number and is why sandbox credentials exist.
Common Misunderstandings About Test GSTINs
"Any 15-character number works for testing"
It does not. The check digit and the PAN pattern are enforced by most validators. A random string fails before it reaches the server.
"I can use a real GSTIN if I change one character"
Changing one character usually breaks the check digit, and the result is still a number that looks like a real taxpayer's with a typo. Use a fully synthetic number instead.
"A test GSTIN needs to be registered on the portal"
Only if you are testing against the portal's live services. For internal form testing, an unregistered number that passes format validation is enough.
"The state code does not matter for testing"
It does if your form validates state codes. Use 30 for Goa test cases and change it deliberately when you want a failure case.
Questions People Ask About Test GSTINs
Can I use a GSTIN from another state for a Goa test?
Only if you are testing the failure path. For a passing Goa test case, use 30 as the state code.
Is there an official list of test GSTINs?
Test credentials come from the GST portal's sandbox or developer environment, not from a public list. Ask the portal's helpdesk for the current process.
What happens if I use a real GSTIN in a test invoice?
The invoice may be treated as a real document, and the taxpayer whose number you used may see activity they did not authorise. Use synthetic numbers only.
Does a test GSTIN need a valid PAN inside it?
It needs a PAN-shaped block, not a real PAN. Using a real PAN inside a fake GSTIN creates a number that looks like a real registration.
Can I reuse one test GSTIN across environments?
Yes for internal testing, but keep sandbox and production test numbers separate so you do not confuse a passing sandbox case with a live one.