Skip to main content
POST
/
gst
/
compliance
/
tax-payer
/
gstrs
/
preference
Save Preference
curl --request POST \
  --url https://api.sandbox.co.in/gst/compliance/tax-payer/gstrs/preference \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <x-api-key>' \
  --data '{
  "fy": "2020-21",
  "gstin": "27COWPR1617C2ZN",
  "preference": "M",
  "quarter": "Q2"
}'
{
  "code": 200,
  "data": {
    "error": {
      "error_cd": "GSTN-EXEC2003",
      "message": "Something seems to have gone wrong while processing your request. Please try again. If error persists quote error number GSTN-EXEC2003 when you contact customer care for quick resolution "
    },
    "status_cd": "0"
  },
  "timestamp": 1655494089128,
  "transaction_id": "189071f9-671d-4f1d-a89e-55c19bec7002"
}

Headers

Authorization
string
required

Taxpayer access token

x-api-key
string
required

API key for identification

x-api-version
string
default:1.0.0

API version

Body

application/json
fy
string
Example:

"2020-21"

gstin
string
Example:

"27COWPR1617C2ZN"

preference
string
Example:

"M"

quarter
string
Example:

"Q2"

Response

200 - application/json

Success

code
number
Example:

200

data
object
timestamp
number
Example:

1655494089128

transaction_id
string
Example:

"189071f9-671d-4f1d-a89e-55c19bec7002"