Skip to main content
POST
/
gst
/
compliance
/
tax-payer
/
otp
Generate OTP
curl --request POST \
  --url https://api.example.com/gst/compliance/tax-payer/otp \
  --header 'Content-Type: application/json' \
  --header 'authorization: <authorization>' \
  --header 'x-api-key: <x-api-key>' \
  --header 'x-api-version: <x-api-version>' \
  --header 'x-source: <x-source>' \
  --data '
{
  "username": "{{username}}",
  "gstin": "{{gstin}}"
}
'
{
  "transaction_id": "{{$randomUUID}}",
  "code": 200,
  "data": {
    "status_cd": "1"
  },
  "timestamp": 1712926086000
}
Prerequisites: You must enable API access to get access to GST APIs. If not done already, enable API access.

Headers

authorization
string
required

JWT Authorization token

x-api-key
string
required

Public key required to authorize API access.

x-api-version
string
required
x-source
string
required

Body

application/json
username
string
required
gstin
string
required

Response

transaction_id
string
required
code
integer
required
data
object
required
timestamp
integer
required