Registration

These API lets you undertake GST registration process with GSTN System

post
Submit a New Registration

https://api.sandbox.co.in/gsp/tax-payer/registration
Submit new registration details to GSTN
Request
Response
Request
Headers
Authorization
required
string
JWT Authorization token
x-api-key
required
string
Public key required to authorize API access.
x-api-version
optional
string
Response
200: OK
Success
Invalid Mobile Number
Success
{
"transaction_id": "8225c376-58b2-49e4-a079-c521b97d8864",
"code": 200,
"data": {
"status_cd": "1",
"error": {}
},
"timestamp": 1620724192345
}
Invalid Mobile Number
{
"transaction_id": "28828716-0e9c-4af8-94da-5367fa8c679d",
"code": 200,
"data": {
"error_code": "REG20142_MSG",
"message": "Invalid Mobile number"
},
"timestamp": 1621510445676
}

BODY Raw

{
"ppbzdtls": {
"add": {
"bnm": "St Main",
"st": "AK street",
"loc": "Sampangirama Nagar",
"bno": "7th",
"stcd": "29",
"dst": "Bengaluru (Bangalore) Rural",
"flno": "jajad",
"lt": "100",
"lg": "100",
"pncd": "560023"
},
"contdtls": {
"fxno": {
"fxNum": "",
"stdCd": ""
},
"mbno": "9999999999",
"tlphno": {
"telNum": "99999999",
"stdCd": "040"
}
},
"psnt": "CON",
"ntbz": [
"BWH",
"ISD"
],
"dcupdtls": [
{
"ct": "image/jpeg",
"id": "118682"
}
]
},
"bkacdtls": [
{
"bknm": "AHMEDABAD MERCANTILE COOPERATIVE BANK",
"acty": "S",
"ifsc": "AMCB0660024",
"brad": "126 NARAYAN DHURU STREET, NAGDEVI, MUMBAI-400 003",
"acno": "156565665665656",
"dcupdtls": [
{
"ct": "image/jpeg",
"ty": "PASB"
}
]
},
],
"aplCd": "4447",
"asgdtls": [
{
"mn": "Jake",
"ln": "Doe",
"dg": "manager",
"mbno": "9999999999",
"fhfn": "Jake",
"ispas": "Y",
"fn": "John",
"din": {
"num": "77777777"
},
"tlphno": {
"telNum": "78945612",
"stdCd": "080"
},
"fhln": "Doe",
"fhmn": "Jacob",
"iscitind": "Y",
"dcupdtls": [
{
"ct": "image/jpeg",
"ty": "PHOT"
},
{
"ct": "image/jpeg",
"ty": "CRBC"
}
],
"rsad": {
"bnm": "St Main",
"st": "AK street",
"loc": "Sampangirama Nagar",
"bno": "7th",
"stcd": "29",
"dst": "Bengaluru (Bangalore) Rural",
"flno": "4",
"pncd": "560023"
},
"dob": "22/10/1980",
"isasg": "Y",
"pan": {
"num": "AAAPD1234A"
},
"gd": "M"
}
],
"gdssvcdtls": {
"bzgddtls": [
{
"hsncd": "16010000",
"gdes": "Polymers of Ethylene"
}
],
"bzsdtls": [
{
"saccd": "44340034",
"sdes": "CALL SERVICES"
}
]
},
"opdtls": [
{
"mn": "Jake",
"ln": "Doe",
"fxno": {
"fxNum": "78945612",
"stdCd": "080"
},
"dg": "manager",
"mbno": "7777777777",
"fhfn": "Jake",
"fn": "John",
"din": {
"num": "77777777"
},
"tlphno": {
"telNum": "78945612",
"stdCd": "080"
},
"fhln": "Doe",
"fhmn": "Jacob",
"iscitind": "Y",
"dcupdtls": [
{
"ct": "image/jpeg",
"ty": "PHOT"
}
],
"uid": {
"isdecl": "Y",
"num": "789658969874"
},
"rsad": {
"bnm": "St Main",
"st": "AK street",
"loc": "Sampangirama Nagar",
"bno": "7th",
"stcd": "29",
"dst": "Bengaluru (Bangalore) Rural",
"flno": "4",
"pncd": "560023"
},
"dob": "22/10/1980",
"isasg": "Y",
"pan": {
"num": "AAAPD1234A"
},
"gd": "M"
}
],
"bzdtls": {
"bzdtlsbz": {
"lgnmbzpan": "John Doe Pvt Ltd",
"cmbzdt": "01/04/2020",
"dcupdtls": [
{
"ct": "image/jpeg",
"ty": "REGC"
}
],
"sj": {
"stjd": "circle",
"stjdno": "KA001"
},
"pan": {
"num": "AAAPD1234A",
"iv": "V"
},
"librgdt": "02/01/2020",
"cobz": "LOC",
"rgtodt": "03/04/2020",
"rgfmdt": "08/04/2020",
"trdnm": "Tradee",
"stcd": "29"
},
"exrgdtls": [
{
"dtreg": "01/04/2018",
"ty": "cst",
"id": "asasf55fsafsa"
}
]
},
"rgdtls": {
"aplst": "PFV",
"mbno": "99999999999",
"aplty": "APLRG"
},
"decdtls": {
"dt": "01/04/2020",
"signty": "DSC",
"asdes": "L1",
"asnm": "AAAPD1234A",
"pl": "Hyderabad"
},
"arepdtls": {
"enrlnum": "AAAPD1234A",
"mn": "Jake",
"ln": "Doe",
"fxno": {
"fxNum": "999999999",
"stdCd": " 040"
},
"sts": "CTA",
"mbno": "9999999999",
"fn": "John",
"tlphno": {
"telNum": "111111111",
"stdCd": "080"
}
},
}

Example Request

cURL
Java
Node.js
Python
cURL
curl --location --request POST 'https://api.sandbox.co.in/gsp/tax-payer/registration' \
--header 'Authorization: eyJhbGciOiJIUzUxMiJ9.eyJhdWQiOiJBUEkiLCJyZWZyZXNoX3Rva2VuIjoiZXlKaGJHY2lPaUpJVXpVeE1pSjkuZXlKaGRXUWlPaUpCVUVraUxDSnpkV0lpT2lKclpYbGZiR2wyWlY5QlpHVXFLaW9xS2lvcUtpb3FLaW9xS2lvcUtpb3FLaW9xS2lvcUtsVjRjeUlzSW1Gd2FWOXJaWGtpT2lKclpYbGZiR2wyWlY5QlpHVXFLaW9xS2lvcUtpb3FLaW9xS2lvcUtpb3FLaW9xS2lvcUtsVjRjeUlzSW1semN5STZJbUZ3YVM1eGRXbGphMjh1WTI5dElpd2laWGh3SWpveE5Ua3dPVFk1TmpBd0xDSnBiblJsYm5RaU9pSlNSVVpTUlZOSVgxUlBTMFZPSWl3aWFXRjBJam94TlRVNU16UTNNakF3ZlEueHNmYkhQTERFRlRvTy1OUWdaUUpLM25OUjFxdlhvWmhaOHRqS3gzSExydjZiVkJaMHpJZEZ5ai1MUTg1YnJZS0xXQnFnZHlzZ1NDSXlDUXNtV2VOYkEiLCJzdWIiOiJqb2huQGRvZS5jb20iLCJhcGlfa2V5Ijoia2V5X2xpdmVfQWRlKioqKioqKioqKioqKioqKioqKioqKioqKipVeHMiLCJpc3MiOiJhcGkucXVpY2tvLmNvbSIsImV4cCI6MTU5MTA1NjAwMCwiaW50ZW50IjoiQUNDRVNTX1RPS0VOIiwiaWF0IjoxNTkwOTY5NjAwfQ.nH23CR5RHGQ0U19I_vq3vyJ_85A1a2iEMQij5QHgJQdDuS9x7FmTidsr1CQabSFF5ujE40SFxHv1gJM20TauUw' \
--header 'x-api-key: key_live_Ade**************************Uxs' \
--header 'x-api-version: 3.1' \
--data-raw '{
"adbzdtls": [
{
"add": {
"bnm": "Thakar Chawl",
"st": "India Market Road",
"loc": "Baman Wada",
"bno": "13",
"stcd": "29",
"dst": "Bengaluru (Bangalore) Rural",
"flno": "10",
"pncd": "533305"
},
"contdtls": {
"fxno": {
"fxNum": "",
"stdCd": ""
},
"mbno": "7777777777",
"tlphno": {
"telNum": "",
"stdCd": ""
}
},
"psnt": "CON",
"ntbz": [
"ESE",
"BWH"
],
"otherNtbz": "ABCDHHE"
}
],
"ppbzdtls": {
"add": {
"bnm": "St Main",
"st": "AK street",
"loc": "Sampangirama Nagar",
"bno": "7th",
"stcd": "29",
"dst": "Bengaluru (Bangalore) Rural",
"flno": "jajad",
"lt": "100",
"lg": "100",
"pncd": "560023"
},
"hasaddl": "Y",
"contdtls": {
"fxno": {
"fxNum": "",
"stdCd": ""
},
"mbno": "9999999999",
"tlphno": {
"telNum": "99999999",
"stdCd": "040"
}
},
"psnt": "CON",
"ntbz": [
"BWH",
"ISD"
],
"otherNtbz": "ABCDHHE",
"dcupdtls": [
{
"ct": "image/jpeg",
"ty": "MAAA",
"id": "118682",
"hash": "hash of document"
}
]
},
"bkacdtls": [
{
"bknm": "AHMEDABAD MERCANTILE COOPERATIVE BANK",
"acty": "S",
"ifsc": "AMCB0660024",
"brad": "126 NARAYAN DHURU STREET, NAGDEVI, MUMBAI-400 003",
"acno": "156565665665656",
"dcupdtls": [
{
"ct": "image/jpeg",
"ty": "PASB",
"id": "118683",
"hash": "hash of document"
}
]
},
{
"bknm": "ALMORA URBAN COOPERATIVE BANK LIMITED",
"acty": "C",
"ifsc": "AUCB0000012",
"brad": "MAIN MARKET, TANAKPUR",
"acno": "416645645664564",
"dcupdtls": [
{
"ct": "image/jpeg",
"ty": "PASB",
"id": "118684",
"hash": "hash of document"
}
]
}
],
"aplCd": "4447",
"asgdtls": [
{
"mn": "Jake",
"ln": "Doe",
"fxno": {
"fxNum": "78945612",
"stdCd": "080"
},
"dg": "manager",
"mbno": "9999999999",
"fhfn": "Jake",
"ispas": "Y",
"fn": "John",
"din": {
"num": "77777777"
},
"tlphno": {
"telNum": "78945612",
"stdCd": "080"
},
"fhln": "Doe",
"fhmn": "Jacob",
"iscitind": "Y",
"dcupdtls": [
{
"ct": "image/jpeg",
"ty": "PHOT",
"id": "118680",
"hash": "hash of document"
},
{
"ct": "image/jpeg",
"ty": "CRBC",
"id": "118681",
"hash": "hash of document"
}
],
"uid": {
"isdecl": "Y",
"num": "789658969874"
},
"rsad": {
"bnm": "St Main",
"st": "AK street",
"loc": "Sampangirama Nagar",
"bno": "7th",
"stcd": "29",
"dst": "Bengaluru (Bangalore) Rural",
"flno": "4",
"pncd": "560023"
},
"ppno": "1564ABNC4561",
"dob": "22/10/1980",
"isasg": "Y",
"pan": {
"num": "AAAPD1234A"
},
"gd": "M"
}
],
"gdssvcdtls": {
"bzgddtls": [
{
"hsncd": "16010000",
"gdes": "Polymers of Ethylene"
}
],
"bzsdtls": [
{
"saccd": "44340034",
"sdes": "CALL SERVICES"
}
]
},
"opdtls": [
{
"mn": "Jake",
"ln": "Doe",
"fxno": {
"fxNum": "78945612",
"stdCd": "080"
},
"dg": "manager",
"mbno": "7777777777",
"fhfn": "Jake",
"fn": "John",
"din": {
"num": "77777777"
},
"tlphno": {
"telNum": "78945612",
"stdCd": "080"
},
"fhln": "Doe",
"fhmn": "Jacob",
"iscitind": "Y",
"dcupdtls": [
{
"ct": "image/jpeg",
"ty": "PHOT",
"id": "118680",
"hash": "hash of document"
}
],
"uid": {
"isdecl": "Y",
"num": "789658969874"
},
"rsad": {
"bnm": "St Main",
"st": "AK street",
"loc": "Sampangirama Nagar",
"bno": "7th",
"stcd": "29",
"dst": "Bengaluru (Bangalore) Rural",
"flno": "4",
"pncd": "560023"
},
"ppno": "1564ABNC4561",
"dob": "22/10/1980",
"isasg": "Y",
"pan": {
"num": "AAAPD1234A"
},
"gd": "M"
}
],
"bzdtls": {
"bzdtlsbz": {
"cesstuovamt": "100000",
"lgnmbzpan": "John Doe Pvt Ltd",
"estcgstamt": "10000",
"cmbzdt": "01/04/2020",
"dcupdtls": [
{
"ct": "image/jpeg",
"ty": "REGC",
"id": "118677",
"hash": "hash of document"
}
],
"estsgstamt": "10000",
"sj": {
"stjd": "circle",
"stjdno": "KA001"
},
"sgsttuovamt": "100000",
"pan": {
"num": "AAAPD1234A",
"iv": "V"
},
"iscmpdecl": "Y",
"estigstamt": "10000",
"librgdt": "02/01/2020",
"isopcmp": "Y",
"cj": {
"rangecd": "030501",
"comrtcd": "03",
"divsncd": "0305"
},
"antoamt": "100000",
"cobz": "LOC",
"rgtodt": "03/04/2020",
"cgsttuovamt": "10000",
"estcessamt": "100000",
"igsttuovamt": "10000",
"rgfmdt": "08/04/2020",
"trdnm": "Tradee",
"stcd": "29",
"iscasdl": "Y",
"otherRsLib": "liab",
"rslibrg": "VOLN"
},
"exrgdtls": [
{
"dtreg": "01/04/2018",
"ty": "cst",
"id": "asasf55fsafsa"
},
{
"dtreg": "01/04/2019",
"ty": "ce",
"id": "asasf55fsafsb"
}
]
},
"rgdtls": {
"aplst": "PFV",
"mbno": "99999999999",
"aplty": "APLRG"
},
"decdtls": {
"dt": "01/04/2020",
"signty": "DSC",
"asdes": "L1",
"asnm": "AAAPD1234A",
"pl": "Hyderabad"
},
"arepdtls": {
"enrlnum": "AAAPD1234A",
"mn": "Jake",
"ln": "Doe",
"fxno": {
"fxNum": "999999999",
"stdCd": " 040"
},
"sts": "CTA",
"mbno": "9999999999",
"fn": "John",
"tlphno": {
"telNum": "111111111",
"stdCd": "080"
}
},
"stsidtls": {
"ptrcnum": "ABC5665",
"stexlcnum": "45566ABCD",
"ptecnum": "4566545FF",
"exlcnm": "John Doe"
}
}'
Java
Unirest.setTimeouts(0, 0);
HttpResponse<String> response = Unirest.post("https://api.sandbox.co.in/gsp/tax-payer/registration")
.header("Authorization", "eyJhbGciOiJIUzUxMiJ9.eyJhdWQiOiJBUEkiLCJyZWZyZXNoX3Rva2VuIjoiZXlKaGJHY2lPaUpJVXpVeE1pSjkuZXlKaGRXUWlPaUpCVUVraUxDSnpkV0lpT2lKclpYbGZiR2wyWlY5QlpHVXFLaW9xS2lvcUtpb3FLaW9xS2lvcUtpb3FLaW9xS2lvcUtsVjRjeUlzSW1Gd2FWOXJaWGtpT2lKclpYbGZiR2wyWlY5QlpHVXFLaW9xS2lvcUtpb3FLaW9xS2lvcUtpb3FLaW9xS2lvcUtsVjRjeUlzSW1semN5STZJbUZ3YVM1eGRXbGphMjh1WTI5dElpd2laWGh3SWpveE5Ua3dPVFk1TmpBd0xDSnBiblJsYm5RaU9pSlNSVVpTUlZOSVgxUlBTMFZPSWl3aWFXRjBJam94TlRVNU16UTNNakF3ZlEueHNmYkhQTERFRlRvTy1OUWdaUUpLM25OUjFxdlhvWmhaOHRqS3gzSExydjZiVkJaMHpJZEZ5ai1MUTg1YnJZS0xXQnFnZHlzZ1NDSXlDUXNtV2VOYkEiLCJzdWIiOiJqb2huQGRvZS5jb20iLCJhcGlfa2V5Ijoia2V5X2xpdmVfQWRlKioqKioqKioqKioqKioqKioqKioqKioqKipVeHMiLCJpc3MiOiJhcGkucXVpY2tvLmNvbSIsImV4cCI6MTU5MTA1NjAwMCwiaW50ZW50IjoiQUNDRVNTX1RPS0VOIiwiaWF0IjoxNTkwOTY5NjAwfQ.nH23CR5RHGQ0U19I_vq3vyJ_85A1a2iEMQij5QHgJQdDuS9x7FmTidsr1CQabSFF5ujE40SFxHv1gJM20TauUw")
.header("x-api-key", "key_live_Ade**************************Uxs")
.header("x-api-version", "3.3")
.body("{\r\n\t\"adbzdtls\": [\r\n\t\t{\r\n\t\t\t\"add\": {\r\n\t\t\t\t\"bnm\": \"Thakar Chawl\",\r\n\t\t\t\t\"st\": \"India Market Road\",\r\n\t\t\t\t\"loc\": \"Baman Wada\",\r\n\t\t\t\t\"bno\": \"13\",\r\n\t\t\t\t\"stcd\": \"29\",\r\n\t\t\t\t\"dst\": \"Bengaluru (Bangalore) Rural\",\r\n\t\t\t\t\"flno\": \"10\",\r\n\t\t\t\t\"pncd\": \"533305\"\r\n\t\t\t},\r\n\t\t\t\"contdtls\": {\r\n\t\t\t\t\"fxno\": {\r\n\t\t\t\t\t\"fxNum\": \"\",\r\n\t\t\t\t\t\"stdCd\": \"\"\r\n\t\t\t\t},\r\n\t\t\t\t\"mbno\": \"7777777777\",\r\n\t\t\t\t\"em\": \"[email protected]\",\r\n\t\t\t\t\"tlphno\": {\r\n\t\t\t\t\t\"telNum\": \"\",\r\n\t\t\t\t\t\"stdCd\": \"\"\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"psnt\": \"CON\",\r\n\t\t\t\"ntbz\": [\r\n\t\t\t\t\"ESE\",\r\n\t\t\t\t\"BWH\"\r\n\t\t\t],\r\n\t\t\t\"otherNtbz\": \"ABCDHHE\"\r\n\t\t}\r\n\t],\r\n\t\"ppbzdtls\": {\r\n\t\t\"add\": {\r\n\t\t\t\"bnm\": \"St Main\",\r\n\t\t\t\"st\": \"AK street\",\r\n\t\t\t\"loc\": \"Sampangirama Nagar\",\r\n\t\t\t\"bno\": \"7th\",\r\n\t\t\t\"stcd\": \"29\",\r\n\t\t\t\"dst\": \"Bengaluru (Bangalore) Rural\",\r\n\t\t\t\"flno\": \"jajad\",\r\n\t\t\t\"lt\": \"100\",\r\n\t\t\t\"lg\": \"100\",\r\n\t\t\t\"pncd\": \"560023\"\r\n\t\t},\r\n\t\t\"hasaddl\": \"Y\",\r\n\t\t\"contdtls\": {\r\n\t\t\t\"fxno\": {\r\n\t\t\t\t\"fxNum\": \"\",\r\n\t\t\t\t\"stdCd\": \"\"\r\n\t\t\t},\r\n\t\t\t\"mbno\": \"9999999999\",\r\n\t\t\t\"em\": \"[email protected]\",\r\n\t\t\t\"tlphno\": {\r\n\t\t\t\t\"telNum\": \"99999999\",\r\n\t\t\t\t\"stdCd\": \"040\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"psnt\": \"CON\",\r\n\t\t\"ntbz\": [\r\n\t\t\t\"BWH\",\r\n\t\t\t\"ISD\"\r\n\t\t],\r\n\t\t\"otherNtbz\": \"ABCDHHE\",\r\n\t\t\"dcupdtls\": [\r\n\t\t\t{\r\n\t\t\t\t\"ct\": \"image/jpeg\",\r\n\t\t\t\t\"ty\": \"MAAA\",\r\n\t\t\t\t\"id\": \"118682\",\r\n\t\t\t\t\"hash\": \"hash of document\"\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\t\"bkacdtls\": [\r\n\t\t{\r\n\t\t\t\"bknm\": \"AHMEDABAD MERCANTILE COOPERATIVE BANK\",\r\n\t\t\t\"acty\": \"S\",\r\n\t\t\t\"ifsc\": \"AMCB0660024\",\r\n\t\t\t\"brad\": \"126 NARAYAN DHURU STREET, NAGDEVI, MUMBAI-400 003\",\r\n\t\t\t\"acno\": \"156565665665656\",\r\n\t\t\t\"dcupdtls\": [\r\n\t\t\t\t{\r\n\t\t\t\t\t\"ct\": \"image/jpeg\",\r\n\t\t\t\t\t\"ty\": \"PASB\",\r\n\t\t\t\t\t\"id\": \"118683\",\r\n\t\t\t\t\t\"hash\": \"hash of document\"\r\n\t\t\t\t}\r\n\t\t\t]\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"bknm\": \"ALMORA URBAN COOPERATIVE BANK LIMITED\",\r\n\t\t\t\"acty\": \"C\",\r\n\t\t\t\"ifsc\": \"AUCB0000012\",\r\n\t\t\t\"brad\": \"MAIN MARKET, TANAKPUR\",\r\n\t\t\t\"acno\": \"416645645664564\",\r\n\t\t\t\"dcupdtls\": [\r\n\t\t\t\t{\r\n\t\t\t\t\t\"ct\": \"image/jpeg\",\r\n\t\t\t\t\t\"ty\": \"PASB\",\r\n\t\t\t\t\t\"id\": \"118684\",\r\n\t\t\t\t\t\"hash\": \"hash of document\"\r\n\t\t\t\t}\r\n\t\t\t]\r\n\t\t}\r\n\t],\r\n\t\"aplCd\": \"4447\",\r\n\t\"asgdtls\": [\r\n\t\t{\r\n\t\t\t\"mn\": \"Jake\",\r\n\t\t\t\"ln\": \"Doe\",\r\n\t\t\t\"fxno\": {\r\n\t\t\t\t\"fxNum\": \"78945612\",\r\n\t\t\t\t\"stdCd\": \"080\"\r\n\t\t\t},\r\n\t\t\t\"dg\": \"manager\",\r\n\t\t\t\"mbno\": \"9999999999\",\r\n\t\t\t\"fhfn\": \"Jake\",\r\n\t\t\t\"ispas\": \"Y\",\r\n\t\t\t\"em\": \"[email protected]\",\r\n\t\t\t\"fn\": \"John\",\r\n\t\t\t\"din\": {\r\n\t\t\t\t\"num\": \"77777777\"\r\n\t\t\t},\r\n\t\t\t\"tlphno\": {\r\n\t\t\t\t\"telNum\": \"78945612\",\r\n\t\t\t\t\"stdCd\": \"080\"\r\n\t\t\t},\r\n\t\t\t\"fhln\": \"Doe\",\r\n\t\t\t\"fhmn\": \"Jacob\",\r\n\t\t\t\"iscitind\": \"Y\",\r\n\t\t\t\"dcupdtls\": [\r\n\t\t\t\t{\r\n\t\t\t\t\t\"ct\": \"image/jpeg\",\r\n\t\t\t\t\t\"ty\": \"PHOT\",\r\n\t\t\t\t\t\"id\": \"118680\",\r\n\t\t\t\t\t\"hash\": \"hash of document\"\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\t\"ct\": \"image/jpeg\",\r\n\t\t\t\t\t\"ty\": \"CRBC\",\r\n\t\t\t\t\t\"id\": \"118681\",\r\n\t\t\t\t\t\"hash\": \"hash of document\"\r\n\t\t\t\t}\r\n\t\t\t],\r\n\t\t\t\"uid\": {\r\n\t\t\t\t\"isdecl\": \"Y\",\r\n\t\t\t\t\"num\": \"789658969874\"\r\n\t\t\t},\r\n\t\t\t\"rsad\": {\r\n\t\t\t\t\"bnm\": \"St Main\",\r\n\t\t\t\t\"st\": \"AK street\",\r\n\t\t\t\t\"loc\": \"Sampangirama Nagar\",\r\n\t\t\t\t\"bno\": \"7th\",\r\n\t\t\t\t\"stcd\": \"29\",\r\n\t\t\t\t\"dst\": \"Bengaluru (Bangalore) Rural\",\r\n\t\t\t\t\"flno\": \"4\",\r\n\t\t\t\t\"pncd\": \"560023\"\r\n\t\t\t},\r\n\t\t\t\"ppno\": \"1564ABNC4561\",\r\n\t\t\t\"dob\": \"22/10/1980\",\r\n\t\t\t\"isasg\": \"Y\",\r\n\t\t\t\"pan\": {\r\n\t\t\t\t\"num\": \"AAAPD1234A\"\r\n\t\t\t},\r\n\t\t\t\"gd\": \"M\"\r\n\t\t}\r\n\t],\r\n\t\"gdssvcdtls\": {\r\n\t\t\"bzgddtls\": [\r\n\t\t\t{\r\n\t\t\t\t\"hsncd\": \"16010000\",\r\n\t\t\t\t\"gdes\": \"Polymers of Ethylene\"\r\n\t\t\t}\r\n\t\t],\r\n\t\t\"bzsdtls\": [\r\n\t\t\t{\r\n\t\t\t\t\"saccd\": \"44340034\",\r\n\t\t\t\t\"sdes\": \"CALL SERVICES\"\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\t\"opdtls\": [\r\n\t\t{\r\n\t\t\t\"mn\": \"Jake\",\r\n\t\t\t\"ln\": \"Doe\",\r\n\t\t\t\"fxno\": {\r\n\t\t\t\t\"fxNum\": \"78945612\",\r\n\t\t\t\t\"stdCd\": \"080\"\r\n\t\t\t},\r\n\t\t\t\"dg\": \"manager\",\r\n\t\t\t\"mbno\": \"7777777777\",\r\n\t\t\t\"fhfn\": \"Jake\",\r\n\t\t\t\"em\": \"[email protected]\",\r\n\t\t\t\"fn\": \"John\",\r\n\t\t\t\"din\": {\r\n\t\t\t\t\"num\": \"77777777\"\r\n\t\t\t},\r\n\t\t\t\"tlphno\": {\r\n\t\t\t\t\"telNum\": \"78945612\",\r\n\t\t\t\t\"stdCd\": \"080\"\r\n\t\t\t},\r\n\t\t\t\"fhln\": \"Doe\",\r\n\t\t\t\"fhmn\": \"Jacob\",\r\n\t\t\t\"iscitind\": \"Y\",\r\n\t\t\t\"dcupdtls\": [\r\n\t\t\t\t{\r\n\t\t\t\t\t\"ct\": \"image/jpeg\",\r\n\t\t\t\t\t\"ty\": \"PHOT\",\r\n\t\t\t\t\t\"id\": \"118680\",\r\n\t\t\t\t\t\"hash\": \"hash of document\"\r\n\t\t\t\t}\r\n\t\t\t],\r\n\t\t\t\"uid\": {\r\n\t\t\t\t\"isdecl\": \"Y\",\r\n\t\t\t\t\"num\": \"789658969874\"\r\n\t\t\t},\r\n\t\t\t\"rsad\": {\r\n\t\t\t\t\"bnm\": \"St Main\",\r\n\t\t\t\t\"st\": \"AK street\",\r\n\t\t\t\t\"loc\": \"Sampangirama Nagar\",\r\n\t\t\t\t\"bno\": \"7th\",\r\n\t\t\t\t\"stcd\": \"29\",\r\n\t\t\t\t\"dst\": \"Bengaluru (Bangalore) Rural\",\r\n\t\t\t\t\"flno\": \"4\",\r\n\t\t\t\t\"pncd\": \"560023\"\r\n\t\t\t},\r\n\t\t\t\"ppno\": \"1564ABNC4561\",\r\n\t\t\t\"dob\": \"22/10/1980\",\r\n\t\t\t\"isasg\": \"Y\",\r\n\t\t\t\"pan\": {\r\n\t\t\t\t\"num\": \"AAAPD1234A\"\r\n\t\t\t},\r\n\t\t\t\"gd\": \"M\"\r\n\t\t}\r\n\t],\r\n\t\"bzdtls\": {\r\n\t\t\"bzdtlsbz\": {\r\n\t\t\t\"cesstuovamt\": \"100000\",\r\n\t\t\t\"lgnmbzpan\": \"John Doe Pvt Ltd\",\r\n\t\t\t\"estcgstamt\": \"10000\",\r\n\t\t\t\"cmbzdt\": \"01/04/2020\",\r\n\t\t\t\"dcupdtls\": [\r\n\t\t\t\t{\r\n\t\t\t\t\t\"ct\": \"image/jpeg\",\r\n\t\t\t\t\t\"ty\": \"REGC\",\r\n\t\t\t\t\t\"id\": \"118677\",\r\n\t\t\t\t\t\"hash\": \"hash of document\"\r\n\t\t\t\t}\r\n\t\t\t],\r\n\t\t\t\"estsgstamt\": \"10000\",\r\n\t\t\t\"sj\": {\r\n\t\t\t\t\"stjd\": \"circle\",\r\n\t\t\t\t\"stjdno\": \"KA001\"\r\n\t\t\t},\r\n\t\t\t\"sgsttuovamt\": \"100000\",\r\n\t\t\t\"pan\": {\r\n\t\t\t\t\"num\": \"AAAPD1234A\",\r\n\t\t\t\t\"iv\": \"V\"\r\n\t\t\t},\r\n\t\t\t\"iscmpdecl\": \"Y\",\r\n\t\t\t\"estigstamt\": \"10000\",\r\n\t\t\t\"librgdt\": \"02/01/2020\",\r\n\t\t\t\"isopcmp\": \"Y\",\r\n\t\t\t\"cj\": {\r\n\t\t\t\t\"rangecd\": \"030501\",\r\n\t\t\t\t\"comrtcd\": \"03\",\r\n\t\t\t\t\"divsncd\": \"0305\"\r\n\t\t\t},\r\n\t\t\t\"antoamt\": \"100000\",\r\n\t\t\t\"cobz\": \"LOC\",\r\n\t\t\t\"rgtodt\": \"03/04/2020\",\r\n\t\t\t\"cgsttuovamt\": \"10000\",\r\n\t\t\t\"estcessamt\": \"100000\",\r\n\t\t\t\"igsttuovamt\": \"10000\",\r\n\t\t\t\"rgfmdt\": \"08/04/2020\",\r\n\t\t\t\"trdnm\": \"Tradee\",\r\n\t\t\t\"stcd\": \"29\",\r\n\t\t\t\"iscasdl\": \"Y\",\r\n\t\t\t\"otherRsLib\": \"liab\",\r\n\t\t\t\"rslibrg\": \"VOLN\"\r\n\t\t},\r\n\t\t\"exrgdtls\": [\r\n\t\t\t{\r\n\t\t\t\t\"dtreg\": \"01/04/2018\",\r\n\t\t\t\t\"ty\": \"cst\",\r\n\t\t\t\t\"id\": \"asasf55fsafsa\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\t\"dtreg\": \"01/04/2019\",\r\n\t\t\t\t\"ty\": \"ce\",\r\n\t\t\t\t\"id\": \"asasf55fsafsb\"\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\t\"rgdtls\": {\r\n\t\t\"aplst\": \"PFV\",\r\n\t\t\"mbno\": \"99999999999\",\r\n\t\t\"em\": \"[email protected]\",\r\n\t\t\"aplty\": \"APLRG\"\r\n\t},\r\n\t\"decdtls\": {\r\n\t\t\"dt\": \"01/04/2020\",\r\n\t\t\"signty\": \"DSC\",\r\n\t\t\"asdes\": \"L1\",\r\n\t\t\"asnm\": \"AAAPD1234A\",\r\n\t\t\"pl\": \"Hyderabad\"\r\n\t},\r\n\t\"arepdtls\": {\r\n\t\t\"enrlnum\": \"AAAPD1234A\",\r\n\t\t\"mn\": \"Jake\",\r\n\t\t\"ln\": \"Doe\",\r\n\t\t\"fxno\": {\r\n\t\t\t\"fxNum\": \"999999999\",\r\n\t\t\t\"stdCd\": \" 040\"\r\n\t\t},\r\n\t\t\"sts\": \"CTA\",\r\n\t\t\"mbno\": \"9999999999\",\r\n\t\t\"em\": \"[email protected]\",\r\n\t\t\"fn\": \"John\",\r\n\t\t\"tlphno\": {\r\n\t\t\t\"telNum\": \"111111111\",\r\n\t\t\t\"stdCd\": \"080\"\r\n\t\t}\r\n\t},\r\n\t\"stsidtls\": {\r\n\t\t\"ptrcnum\": \"ABC5665\",\r\n\t\t\"stexlcnum\": \"45566ABCD\",\r\n\t\t\"ptecnum\": \"4566545FF\",\r\n\t\t\"exlcnm\": \"John Doe\"\r\n\t}\r\n}")
.asString();
Node.js
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'api.sandbox.co.in',
'path': '/gsp/tax-payer/registration',
'headers': {
'Authorization': 'eyJhbGciOiJIUzUxMiJ9.eyJhdWQiOiJBUEkiLCJyZWZyZXNoX3Rva2VuIjoiZXlKaGJHY2lPaUpJVXpVeE1pSjkuZXlKaGRXUWlPaUpCVUVraUxDSnpkV0lpT2lKclpYbGZiR2wyWlY5QlpHVXFLaW9xS2lvcUtpb3FLaW9xS2lvcUtpb3FLaW9xS2lvcUtsVjRjeUlzSW1Gd2FWOXJaWGtpT2lKclpYbGZiR2wyWlY5QlpHVXFLaW9xS2lvcUtpb3FLaW9xS2lvcUtpb3FLaW9xS2lvcUtsVjRjeUlzSW1semN5STZJbUZ3YVM1eGRXbGphMjh1WTI5dElpd2laWGh3SWpveE5Ua3dPVFk1TmpBd0xDSnBiblJsYm5RaU9pSlNSVVpTUlZOSVgxUlBTMFZPSWl3aWFXRjBJam94TlRVNU16UTNNakF3ZlEueHNmYkhQTERFRlRvTy1OUWdaUUpLM25OUjFxdlhvWmhaOHRqS3gzSExydjZiVkJaMHpJZEZ5ai1MUTg1YnJZS0xXQnFnZHlzZ1NDSXlDUXNtV2VOYkEiLCJzdWIiOiJqb2huQGRvZS5jb20iLCJhcGlfa2V5Ijoia2V5X2xpdmVfQWRlKioqKioqKioqKioqKioqKioqKioqKioqKipVeHMiLCJpc3MiOiJhcGkucXVpY2tvLmNvbSIsImV4cCI6MTU5MTA1NjAwMCwiaW50ZW50IjoiQUNDRVNTX1RPS0VOIiwiaWF0IjoxNTkwOTY5NjAwfQ.nH23CR5RHGQ0U19I_vq3vyJ_85A1a2iEMQij5QHgJQdDuS9x7FmTidsr1CQabSFF5ujE40SFxHv1gJM20TauUw',
'x-api-key': 'key_live_Ade**************************Uxs',
'x-api-version': '3.3'
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "{\r\n\t\"adbzdtls\": [\r\n\t\t{\r\n\t\t\t\"add\": {\r\n\t\t\t\t\"bnm\": \"Thakar Chawl\",\r\n\t\t\t\t\"st\": \"India Market Road\",\r\n\t\t\t\t\"loc\": \"Baman Wada\",\r\n\t\t\t\t\"bno\": \"13\",\r\n\t\t\t\t\"stcd\": \"29\",\r\n\t\t\t\t\"dst\": \"Bengaluru (Bangalore) Rural\",\r\n\t\t\t\t\"flno\": \"10\",\r\n\t\t\t\t\"pncd\": \"533305\"\r\n\t\t\t},\r\n\t\t\t\"contdtls\": {\r\n\t\t\t\t\"fxno\": {\r\n\t\t\t\t\t\"fxNum\": \"\",\r\n\t\t\t\t\t\"stdCd\": \"\"\r\n\t\t\t\t},\r\n\t\t\t\t\"mbno\": \"7777777777\",\r\n\t\t\t\t\"em\": \"[email protected]\",\r\n\t\t\t\t\"tlphno\": {\r\n\t\t\t\t\t\"telNum\": \"\",\r\n\t\t\t\t\t\"stdCd\": \"\"\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"psnt\": \"CON\",\r\n\t\t\t\"ntbz\": [\r\n\t\t\t\t\"ESE\",\r\n\t\t\t\t\"BWH\"\r\n\t\t\t],\r\n\t\t\t\"otherNtbz\": \"ABCDHHE\"\r\n\t\t}\r\n\t],\r\n\t\"ppbzdtls\": {\r\n\t\t\"add\": {\r\n\t\t\t\"bnm\": \"St Main\",\r\n\t\t\t\"st\": \"AK street\",\r\n\t\t\t\"loc\": \"Sampangirama Nagar\",\r\n\t\t\t\"bno\": \"7th\",\r\n\t\t\t\"stcd\": \"29\",\r\n\t\t\t\"dst\": \"Bengaluru (Bangalore) Rural\",\r\n\t\t\t\"flno\": \"jajad\",\r\n\t\t\t\"lt\": \"100\",\r\n\t\t\t\"lg\": \"100\",\r\n\t\t\t\"pncd\": \"560023\"\r\n\t\t},\r\n\t\t\"hasaddl\": \"Y\",\r\n\t\t\"contdtls\": {\r\n\t\t\t\"fxno\": {\r\n\t\t\t\t\"fxNum\": \"\",\r\n\t\t\t\t\"stdCd\": \"\"\r\n\t\t\t},\r\n\t\t\t\"mbno\": \"9999999999\",\r\n\t\t\t\"em\": \"[email protected]\",\r\n\t\t\t\"tlphno\": {\r\n\t\t\t\t\"telNum\": \"99999999\",\r\n\t\t\t\t\"stdCd\": \"040\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"psnt\": \"CON\",\r\n\t\t\"ntbz\": [\r\n\t\t\t\"BWH\",\r\n\t\t\t\"ISD\"\r\n\t\t],\r\n\t\t\"otherNtbz\": \"ABCDHHE\",\r\n\t\t\"dcupdtls\": [\r\n\t\t\t{\r\n\t\t\t\t\"ct\": \"image/jpeg\",\r\n\t\t\t\t\"ty\": \"MAAA\",\r\n\t\t\t\t\"id\": \"118682\",\r\n\t\t\t\t\"hash\": \"hash of document\"\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\t\"bkacdtls\": [\r\n\t\t{\r\n\t\t\t\"bknm\": \"AHMEDABAD MERCANTILE COOPERATIVE BANK\",\r\n\t\t\t\"acty\": \"S\",\r\n\t\t\t\"ifsc\": \"AMCB0660024\",\r\n\t\t\t\"brad\": \"126 NARAYAN DHURU STREET, NAGDEVI, MUMBAI-400 003\",\r\n\t\t\t\"acno\": \"156565665665656\",\r\n\t\t\t\"dcupdtls\": [\r\n\t\t\t\t{\r\n\t\t\t\t\t\"ct\": \"image/jpeg\",\r\n\t\t\t\t\t\"ty\": \"PASB\",\r\n\t\t\t\t\t\"id\": \"118683\",\r\n\t\t\t\t\t\"hash\": \"hash of document\"\r\n\t\t\t\t}\r\n\t\t\t]\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"bknm\": \"ALMORA URBAN COOPERATIVE BANK LIMITED\",\r\n\t\t\t\"acty\": \"C\",\r\n\t\t\t\"ifsc\": \"AUCB0000012\",\r\n\t\t\t\"brad\": \"MAIN MARKET, TANAKPUR\",\r\n\t\t\t\"acno\": \"416645645664564\",\r\n\t\t\t\"dcupdtls\": [\r\n\t\t\t\t{\r\n\t\t\t\t\t\"ct\": \"image/jpeg\",\r\n\t\t\t\t\t\"ty\": \"PASB\",\r\n\t\t\t\t\t\"id\": \"118684\",\r\n\t\t\t\t\t\"hash\": \"hash of document\"\r\n\t\t\t\t}\r\n\t\t\t]\r\n\t\t}\r\n\t],\r\n\t\"aplCd\": \"4447\",\r\n\t\"asgdtls\": [\r\n\t\t{\r\n\t\t\t\"mn\": \"Jake\",\r\n\t\t\t\"ln\": \"Doe\",\r\n\t\t\t\"fxno\": {\r\n\t\t\t\t\"fxNum\": \"78945612\",\r\n\t\t\t\t\"stdCd\": \"080\"\r\n\t\t\t},\r\n\t\t\t\"dg\": \"manager\",\r\n\t\t\t\"mbno\": \"9999999999\",\r\n\t\t\t\"fhfn\": \"Jake\",\r\n\t\t\t\"ispas\": \"Y\",\r\n\t\t\t\"em\": \"[email protected]\",\r\n\t\t\t\"fn\": \"John\",\r\n\t\t\t\"din\": {\r\n\t\t\t\t\"num\": \"77777777\"\r\n\t\t\t},\r\n\t\t\t\"tlphno\": {\r\n\t\t\t\t\"telNum\": \"78945612\",\r\n\t\t\t\t\"stdCd\": \"080\"\r\n\t\t\t},\r\n\t\t\t\"fhln\": \"Doe\",\r\n\t\t\t\"fhmn\": \"Jacob\",\r\n\t\t\t\"iscitind\": \"Y\",\r\n\t\t\t\"dcupdtls\": [\r\n\t\t\t\t{\r\n\t\t\t\t\t\"ct\": \"image/jpeg\",\r\n\t\t\t\t\t\"ty\": \"PHOT\",\r\n\t\t\t\t\t\"id\": \"118680\",\r\n\t\t\t\t\t\"hash\": \"hash of document\"\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\t\"ct\": \"image/jpeg\",\r\n\t\t\t\t\t\"ty\": \"CRBC\",\r\n\t\t\t\t\t\"id\": \"118681\",\r\n\t\t\t\t\t\"hash\": \"hash of document\"\r\n\t\t\t\t}\r\n\t\t\t],\r\n\t\t\t\"uid\": {\r\n\t\t\t\t\"isdecl\": \"Y\",\r\n\t\t\t\t\"num\": \"789658969874\"\r\n\t\t\t},\r\n\t\t\t\"rsad\": {\r\n\t\t\t\t\"bnm\": \"St Main\",\r\n\t\t\t\t\"st\": \"AK street\",\r\n\t\t\t\t\"loc\": \"Sampangirama Nagar\",\r\n\t\t\t\t\"bno\": \"7th\",\r\n\t\t\t\t\"stcd\": \"29\",\r\n\t\t\t\t\"dst\": \"Bengaluru (Bangalore) Rural\",\r\n\t\t\t\t\"flno\": \"4\",\r\n\t\t\t\t\"pncd\": \"560023\"\r\n\t\t\t},\r\n\t\t\t\"ppno\": \"1564ABNC4561\",\r\n\t\t\t\"dob\": \"22/10/1980\",\r\n\t\t\t\"isasg\": \"Y\",\r\n\t\t\t\"pan\": {\r\n\t\t\t\t\"num\": \"AAAPD1234A\"\r\n\t\t\t},\r\n\t\t\t\"gd\": \"M\"\r\n\t\t}\r\n\t],\r\n\t\"gdssvcdtls\": {\r\n\t\t\"bzgddtls\": [\r\n\t\t\t{\r\n\t\t\t\t\"hsncd\": \"16010000\",\r\n\t\t\t\t\"gdes\": \"Polymers of Ethylene\"\r\n\t\t\t}\r\n\t\t],\r\n\t\t\"bzsdtls\": [\r\n\t\t\t{\r\n\t\t\t\t\"saccd\": \"44340034\",\r\n\t\t\t\t\"sdes\": \"CALL SERVICES\"\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\t\"opdtls\": [\r\n\t\t{\r\n\t\t\t\"mn\": \"Jake\",\r\n\t\t\t\"ln\": \"Doe\",\r\n\t\t\t\"fxno\": {\r\n\t\t\t\t\"fxNum\": \"78945612\",\r\n\t\t\t\t\"stdCd\": \"080\"\r\n\t\t\t},\r\n\t\t\t\"dg\": \"manager\",\r\n\t\t\t\"mbno\": \"7777777777\",\r\n\t\t\t\"fhfn\": \"Jake\",\r\n\t\t\t\"em\": \"[email protected]\",\r\n\t\t\t\"fn\": \"John\",\r\n\t\t\t\"din\": {\r\n\t\t\t\t\"num\": \"77777777\"\r\n\t\t\t},\r\n\t\t\t\"tlphno\": {\r\n\t\t\t\t\"telNum\": \"78945612\",\r\n\t\t\t\t\"stdCd\": \"080\"\r\n\t\t\t},\r\n\t\t\t\"fhln\": \"Doe\",\r\n\t\t\t\"fhmn\": \"Jacob\",\r\n\t\t\t\"iscitind\": \"Y\",\r\n\t\t\t\"dcupdtls\": [\r\n\t\t\t\t{\r\n\t\t\t\t\t\"ct\": \"image/jpeg\",\r\n\t\t\t\t\t\"ty\": \"PHOT\",\r\n\t\t\t\t\t\"id\": \"118680\",\r\n\t\t\t\t\t\"hash\": \"hash of document\"\r\n\t\t\t\t}\r\n\t\t\t],\r\n\t\t\t\"uid\": {\r\n\t\t\t\t\"isdecl\": \"Y\",\r\n\t\t\t\t\"num\": \"789658969874\"\r\n\t\t\t},\r\n\t\t\t\"rsad\": {\r\n\t\t\t\t\"bnm\": \"St Main\",\r\n\t\t\t\t\"st\": \"AK street\",\r\n\t\t\t\t\"loc\": \"Sampangirama Nagar\",\r\n\t\t\t\t\"bno\": \"7th\",\r\n\t\t\t\t\"stcd\": \"29\",\r\n\t\t\t\t\"dst\": \"Bengaluru (Bangalore) Rural\",\r\n\t\t\t\t\"flno\": \"4\",\r\n\t\t\t\t\"pncd\": \"560023\"\r\n\t\t\t},\r\n\t\t\t\"ppno\": \"1564ABNC4561\",\r\n\t\t\t\"dob\": \"22/10/1980\",\r\n\t\t\t\"isasg\": \"Y\",\r\n\t\t\t\"pan\": {\r\n\t\t\t\t\"num\": \"AAAPD1234A\"\r\n\t\t\t},\r\n\t\t\t\"gd\": \"M\"\r\n\t\t}\r\n\t],\r\n\t\"bzdtls\": {\r\n\t\t\"bzdtlsbz\": {\r\n\t\t\t\"cesstuovamt\": \"100000\",\r\n\t\t\t\"lgnmbzpan\": \"John Doe Pvt Ltd\",\r\n\t\t\t\"estcgstamt\": \"10000\",\r\n\t\t\t\"cmbzdt\": \"01/04/2020\",\r\n\t\t\t\"dcupdtls\": [\r\n\t\t\t\t{\r\n\t\t\t\t\t\"ct\": \"image/jpeg\",\r\n\t\t\t\t\t\"ty\": \"REGC\",\r\n\t\t\t\t\t\"id\": \"118677\",\r\n\t\t\t\t\t\"hash\": \"hash of document\"\r\n\t\t\t\t}\r\n\t\t\t],\r\n\t\t\t\"estsgstamt\": \"10000\",\r\n\t\t\t\"sj\": {\r\n\t\t\t\t\"stjd\": \"circle\",\r\n\t\t\t\t\"stjdno\": \"KA001\"\r\n\t\t\t},\r\n\t\t\t\"sgsttuovamt\": \"100000\",\r\n\t\t\t\"pan\": {\r\n\t\t\t\t\"num\": \"AAAPD1234A\",\r\n\t\t\t\t\"iv\": \"V\"\r\n\t\t\t},\r\n\t\t\t\"iscmpdecl\": \"Y\",\r\n\t\t\t\"estigstamt\": \"10000\",\r\n\t\t\t\"librgdt\": \"02/01/2020\",\r\n\t\t\t\"isopcmp\": \"Y\",\r\n\t\t\t\"cj\": {\r\n\t\t\t\t\"rangecd\": \"030501\",\r\n\t\t\t\t\"comrtcd\": \"03\",\r\n\t\t\t\t\"divsncd\": \"0305\"\r\n\t\t\t},\r\n\t\t\t\"antoamt\": \"100000\",\r\n\t\t\t\"cobz\": \"LOC\",\r\n\t\t\t\"rgtodt\": \"03/04/2020\",\r\n\t\t\t\"cgsttuovamt\": \"10000\",\r\n\t\t\t\"estcessamt\": \"100000\",\r\n\t\t\t\"igsttuovamt\": \"10000\",\r\n\t\t\t\"rgfmdt\": \"08/04/2020\",\r\n\t\t\t\"trdnm\": \"Tradee\",\r\n\t\t\t\"stcd\": \"29\",\r\n\t\t\t\"iscasdl\": \"Y\",\r\n\t\t\t\"otherRsLib\": \"liab\",\r\n\t\t\t\"rslibrg\": \"VOLN\"\r\n\t\t},\r\n\t\t\"exrgdtls\": [\r\n\t\t\t{\r\n\t\t\t\t\"dtreg\": \"01/04/2018\",\r\n\t\t\t\t\"ty\": \"cst\",\r\n\t\t\t\t\"id\": \"asasf55fsafsa\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\t\"dtreg\": \"01/04/2019\",\r\n\t\t\t\t\"ty\": \"ce\",\r\n\t\t\t\t\"id\": \"asasf55fsafsb\"\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\t\"rgdtls\": {\r\n\t\t\"aplst\": \"PFV\",\r\n\t\t\"mbno\": \"99999999999\",\r\n\t\t\"em\": \"[email protected]\",\r\n\t\t\"aplty\": \"APLRG\"\r\n\t},\r\n\t\"decdtls\": {\r\n\t\t\"dt\": \"01/04/2020\",\r\n\t\t\"signty\": \"DSC\",\r\n\t\t\"asdes\": \"L1\",\r\n\t\t\"asnm\": \"AAAPD1234A\",\r\n\t\t\"pl\": \"Hyderabad\"\r\n\t},\r\n\t\"arepdtls\": {\r\n\t\t\"enrlnum\": \"AAAPD1234A\",\r\n\t\t\"mn\": \"Jake\",\r\n\t\t\"ln\": \"Doe\",\r\n\t\t\"fxno\": {\r\n\t\t\t\"fxNum\": \"999999999\",\r\n\t\t\t\"stdCd\": \" 040\"\r\n\t\t},\r\n\t\t\"sts\": \"CTA\",\r\n\t\t\"mbno\": \"9999999999\",\r\n\t\t\"em\": \"[email protected]\",\r\n\t\t\"fn\": \"John\",\r\n\t\t\"tlphno\": {\r\n\t\t\t\"telNum\": \"111111111\",\r\n\t\t\t\"stdCd\": \"080\"\r\n\t\t}\r\n\t},\r\n\t\"stsidtls\": {\r\n\t\t\"ptrcnum\": \"ABC5665\",\r\n\t\t\"stexlcnum\": \"45566ABCD\",\r\n\t\t\"ptecnum\": \"4566545FF\",\r\n\t\t\"exlcnm\": \"John Doe\"\r\n\t}\r\n}";
req.write(postData);
req.end();
Python
import requests
url = "https://api.sandbox.co.in/gsp/tax-payer/registration"
payload = "{\r\n\t\"adbzdtls\": [\r\n\t\t{\r\n\t\t\t\"add\": {\r\n\t\t\t\t\"bnm\": \"Thakar Chawl\",\r\n\t\t\t\t\"st\": \"India Market Road\",\r\n\t\t\t\t\"loc\": \"Baman Wada\",\r\n\t\t\t\t\"bno\": \"13\",\r\n\t\t\t\t\"stcd\": \"29\",\r\n\t\t\t\t\"dst\": \"Bengaluru (Bangalore) Rural\",\r\n\t\t\t\t\"flno\": \"10\",\r\n\t\t\t\t\"pncd\": \"533305\"\r\n\t\t\t},\r\n\t\t\t\"contdtls\": {\r\n\t\t\t\t\"fxno\": {\r\n\t\t\t\t\t\"fxNum\": \"\",\r\n\t\t\t\t\t\"stdCd\": \"\"\r\n\t\t\t\t},\r\n\t\t\t\t\"mbno\": \"7777777777\",\r\n\t\t\t\t\"em\": \"[email protected]\",\r\n\t\t\t\t\"tlphno\": {\r\n\t\t\t\t\t\"telNum\": \"\",\r\n\t\t\t\t\t\"stdCd\": \"\"\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"psnt\": \"CON\",\r\n\t\t\t\"ntbz\": [\r\n\t\t\t\t\"ESE\",\r\n\t\t\t\t\"BWH\"\r\n\t\t\t],\r\n\t\t\t\"otherNtbz\": \"ABCDHHE\"\r\n\t\t}\r\n\t],\r\n\t\"ppbzdtls\": {\r\n\t\t\"add\": {\r\n\t\t\t\"bnm\": \"St Main\",\r\n\t\t\t\"st\": \"AK street\",\r\n\t\t\t\"loc\": \"Sampangirama Nagar\",\r\n\t\t\t\"bno\": \"7th\",\r\n\t\t\t\"stcd\": \"29\",\r\n\t\t\t\"dst\": \"Bengaluru (Bangalore) Rural\",\r\n\t\t\t\"flno\": \"jajad\",\r\n\t\t\t\"lt\": \"100\",\r\n\t\t\t\"lg\": \"100\",\r\n\t\t\t\"pncd\": \"560023\"\r\n\t\t},\r\n\t\t\"hasaddl\": \"Y\",\r\n\t\t\"contdtls\": {\r\n\t\t\t\"fxno\": {\r\n\t\t\t\t\"fxNum\": \"\",\r\n\t\t\t\t\"stdCd\": \"\"\r\n\t\t\t},\r\n\t\t\t\"mbno\": \"9999999999\",\r\n\t\t\t\"em\": \"[email protected]\",\r\n\t\t\t\"tlphno\": {\r\n\t\t\t\t\"telNum\": \"99999999\",\r\n\t\t\t\t\"stdCd\": \"040\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"psnt\": \"CON\",\r\n\t\t\"ntbz\": [\r\n\t\t\t\"BWH\",\r\n\t\t\t\"ISD\"\r\n\t\t],\r\n\t\t\"otherNtbz\": \"ABCDHHE\",\r\n\t\t\"dcupdtls\": [\r\n\t\t\t{\r\n\t\t\t\t\"ct\": \"image/jpeg\",\r\n\t\t\t\t\"ty\": \"MAAA\",\r\n\t\t\t\t\"id\": \"118682\",\r\n\t\t\t\t\"hash\": \"hash of document\"\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\t\"bkacdtls\": [\r\n\t\t{\r\n\t\t\t\"bknm\": \"AHMEDABAD MERCANTILE COOPERATIVE BANK\",\r\n\t\t\t\"acty\": \"S\",\r\n\t\t\t\"ifsc\": \"AMCB0660024\",\r\n\t\t\t\"brad\": \"126 NARAYAN DHURU STREET, NAGDEVI, MUMBAI-400 003\",\r\n\t\t\t\"acno\": \"156565665665656\",\r\n\t\t\t\"dcupdtls\": [\r\n\t\t\t\t{\r\n\t\t\t\t\t\"ct\": \"image/jpeg\",\r\n\t\t\t\t\t\"ty\": \"PASB\",\r\n\t\t\t\t\t\"id\": \"118683\",\r\n\t\t\t\t\t\"hash\": \"hash of document\"\r\n\t\t\t\t}\r\n\t\t\t]\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"bknm\": \"ALMORA URBAN COOPERATIVE BANK LIMITED\",\r\n\t\t\t\"acty\": \"C\",\r\n\t\t\t\"ifsc\": \"AUCB0000012\",\r\n\t\t\t\"brad\": \"MAIN MARKET, TANAKPUR\",\r\n\t\t\t\"acno\": \"416645645664564\",\r\n\t\t\t\"dcupdtls\": [\r\n\t\t\t\t{\r\n\t\t\t\t\t\"ct\": \"image/jpeg\",\r\n\t\t\t\t\t\"ty\": \"PASB\",\r\n\t\t\t\t\t\"id\": \"118684\",\r\n\t\t\t\t\t\"hash\": \"hash of document\"\r\n\t\t\t\t}\r\n\t\t\t]\r\n\t\t}\r\n\t],\r\n\t\"aplCd\": \"4447\",\r\n\t\"asgdtls\": [\r\n\t\t{\r\n\t\t\t\"mn\": \"Jake\",\r\n\t\t\t\"ln\": \"Doe\",\r\n\t\t\t\"fxno\": {\r\n\t\t\t\t\"fxNum\": \"78945612\",\r\n\t\t\t\t\"stdCd\": \"080\"\r\n\t\t\t},\r\n\t\t\t\"dg\": \"manager\",\r\n\t\t\t\"mbno\": \"9999999999\",\r\n\t\t\t\"fhfn\": \"Jake\",\r\n\t\t\t\"ispas\": \"Y\",\r\n\t\t\t\"em\": \"[email protected]\",\r\n\t\t\t\"fn\": \"John\",\r\n\t\t\t\"din\": {\r\n\t\t\t\t\"num\": \"77777777\"\r\n\t\t\t},\r\n\t\t\t\"tlphno\": {\r\n\t\t\t\t\"telNum\": \"78945612\",\r\n\t\t\t\t\"stdCd\": \"080\"\r\n\t\t\t},\r\n\t\t\t\"fhln\": \"Doe\",\r\n\t\t\t\"fhmn\": \"Jacob\",\r\n\t\t\t\"iscitind\": \"Y\",\r\n\t\t\t\"dcupdtls\": [\r\n\t\t\t\t{\r\n\t\t\t\t\t\"ct\": \"image/jpeg\",\r\n\t\t\t\t\t\"ty\": \"PHOT\",\r\n\t\t\t\t\t\"id\": \"118680\",\r\n\t\t\t\t\t\"hash\": \"hash of document\"\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\t\"ct\": \"image/jpeg\",\r\n\t\t\t\t\t\"ty\": \"CRBC\",\r\n\t\t\t\t\t\"id\": \"118681\",\r\n\t\t\t\t\t\"hash\": \"hash of document\"\r\n\t\t\t\t}\r\n\t\t\t],\r\n\t\t\t\"uid\": {\r\n\t\t\t\t\"isdecl\": \"Y\",\r\n\t\t\t\t\"num\": \"789658969874\"\r\n\t\t\t},\r\n\t\t\t\"rsad\": {\r\n\t\t\t\t\"bnm\": \"St Main\",\r\n\t\t\t\t\"st\": \"AK street\",\r\n\t\t\t\t\"loc\": \"Sampangirama Nagar\",\r\n\t\t\t\t\"bno\": \"7th\",\r\n\t\t\t\t\"stcd\": \"29\",\r\n\t\t\t\t\"dst\": \"Bengaluru (Bangalore) Rural\",\r\n\t\t\t\t\"flno\": \"4\",\r\n\t\t\t\t\"pncd\": \"560023\"\r\n\t\t\t},\r\n\t\t\t\"ppno\": \"1564ABNC4561\",\r\n\t\t\t\"dob\": \"22/10/1980\",\r\n\t\t\t\"isasg\": \"Y\",\r\n\t\t\t\"pan\": {\r\n\t\t\t\t\"num\": \"AAAPD1234A\"\r\n\t\t\t},\r\n\t\t\t\"gd\": \"M\"\r\n\t\t}\r\n\t],\r\n\t\"gdssvcdtls\": {\r\n\t\t\"bzgddtls\": [\r\n\t\t\t{\r\n\t\t\t\t\"hsncd\": \"16010000\",\r\n\t\t\t\t\"gdes\": \"Polymers of Ethylene\"\r\n\t\t\t}\r\n\t\t],\r\n\t\t\"bzsdtls\": [\r\n\t\t\t{\r\n\t\t\t\t\"saccd\": \"44340034\",\r\n\t\t\t\t\"sdes\": \"CALL SERVICES\"\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\t\"opdtls\": [\r\n\t\t{\r\n\t\t\t\"mn\": \"Jake\",\r\n\t\t\t\"ln\": \"Doe\",\r\n\t\t\t\"fxno\": {\r\n\t\t\t\t\"fxNum\": \"78945612\",\r\n\t\t\t\t\"stdCd\": \"080\"\r\n\t\t\t},\r\n\t\t\t\"dg\": \"manager\",\r\n\t\t\t\"mbno\": \"7777777777\",\r\n\t\t\t\"fhfn\": \"Jake\",\r\n\t\t\t\"em\": \"[email protected]\",\r\n\t\t\t\"fn\": \"John\",\r\n\t\t\t\"din\": {\r\n\t\t\t\t\"num\": \"77777777\"\r\n\t\t\t},\r\n\t\t\t\"tlphno\": {\r\n\t\t\t\t\"telNum\": \"78945612\",\r\n\t\t\t\t\"stdCd\": \"080\"\r\n\t\t\t},\r\n\t\t\t\"fhln\": \"Doe\",\r\n\t\t\t\"fhmn\": \"Jacob\",\r\n\t\t\t\"iscitind\": \"Y\",\r\n\t\t\t\"dcupdtls\": [\r\n\t\t\t\t{\r\n\t\t\t\t\t\"ct\": \"image/jpeg\",\r\n\t\t\t\t\t\"ty\": \"PHOT\",\r\n\t\t\t\t\t\"id\": \"118680\",\r\n\t\t\t\t\t\"hash\": \"hash of document\"\r\n\t\t\t\t}\r\n\t\t\t],\r\n\t\t\t\"uid\": {\r\n\t\t\t\t\"isdecl\": \"Y\",\r\n\t\t\t\t\"num\": \"789658969874\"\r\n\t\t\t},\r\n\t\t\t\"rsad\": {\r\n\t\t\t\t\"bnm\": \"St Main\",\r\n\t\t\t\t\"st\": \"AK street\",\r\n\t\t\t\t\"loc\": \"Sampangirama Nagar\",\r\n\t\t\t\t\"bno\": \"7th\",\r\n\t\t\t\t\"stcd\": \"29\",\r\n\t\t\t\t\"dst\": \"Bengaluru (Bangalore) Rural\",\r\n\t\t\t\t\"flno\": \"4\",\r\n\t\t\t\t\"pncd\": \"560023\"\r\n\t\t\t},\r\n\t\t\t\"ppno\": \"1564ABNC4561\",\r\n\t\t\t\"dob\": \"22/10/1980\",\r\n\t\t\t\"isasg\": \"Y\",\r\n\t\t\t\"pan\": {\r\n\t\t\t\t\"num\": \"AAAPD1234A\"\r\n\t\t\t},\r\n\t\t\t\"gd\": \"M\"\r\n\t\t}\r\n\t],\r\n\t\"bzdtls\": {\r\n\t\t\"bzdtlsbz\": {\r\n\t\t\t\"cesstuovamt\": \"100000\",\r\n\t\t\t\"lgnmbzpan\": \"John Doe Pvt Ltd\",\r\n\t\t\t\"estcgstamt\": \"10000\",\r\n\t\t\t\"cmbzdt\": \"01/04/2020\",\r\n\t\t\t\"dcupdtls\": [\r\n\t\t\t\t{\r\n\t\t\t\t\t\"ct\": \"image/jpeg\",\r\n\t\t\t\t\t\"ty\": \"REGC\",\r\n\t\t\t\t\t\"id\": \"118677\",\r\n\t\t\t\t\t\"hash\": \"hash of document\"\r\n\t\t\t\t}\r\n\t\t\t],\r\n\t\t\t\"estsgstamt\": \"10000\",\r\n\t\t\t\"sj\": {\r\n\t\t\t\t\"stjd\": \"circle\",\r\n\t\t\t\t\"stjdno\": \"KA001\"\r\n\t\t\t},\r\n\t\t\t\"sgsttuovamt\": \"100000\",\r\n\t\t\t\"pan\": {\r\n\t\t\t\t\"num\": \"AAAPD1234A\",\r\n\t\t\t\t\"iv\": \"V\"\r\n\t\t\t},\r\n\t\t\t\"iscmpdecl\": \"Y\",\r\n\t\t\t\"estigstamt\": \"10000\",\r\n\t\t\t\"librgdt\": \"02/01/2020\",\r\n\t\t\t\"isopcmp\": \"Y\",\r\n\t\t\t\"cj\": {\r\n\t\t\t\t\"rangecd\": \"030501\",\r\n\t\t\t\t\"comrtcd\": \"03\",\r\n\t\t\t\t\"divsncd\": \"0305\"\r\n\t\t\t},\r\n\t\t\t\"antoamt\": \"100000\",\r\n\t\t\t\"cobz\": \"LOC\",\r\n\t\t\t\"rgtodt\": \"03/04/2020\",\r\n\t\t\t\"cgsttuovamt\": \"10000\",\r\n\t\t\t\"estcessamt\": \"100000\",\r\n\t\t\t\"igsttuovamt\": \"10000\",\r\n\t\t\t\"rgfmdt\": \"08/04/2020\",\r\n\t\t\t\"trdnm\": \"Tradee\",\r\n\t\t\t\"stcd\": \"29\",\r\n\t\t\t\"iscasdl\": \"Y\",\r\n\t\t\t\"otherRsLib\": \"liab\",\r\n\t\t\t\"rslibrg\": \"VOLN\"\r\n\t\t},\r\n\t\t\"exrgdtls\": [\r\n\t\t\t{\r\n\t\t\t\t\"dtreg\": \"01/04/2018\",\r\n\t\t\t\t\"ty\": \"cst\",\r\n\t\t\t\t\"id\": \"asasf55fsafsa\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\t\"dtreg\": \"01/04/2019\",\r\n\t\t\t\t\"ty\": \"ce\",\r\n\t\t\t\t\"id\": \"asasf55fsafsb\"\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\t\"rgdtls\": {\r\n\t\t\"aplst\": \"PFV\",\r\n\t\t\"mbno\": \"99999999999\",\r\n\t\t\"em\": \"[email protected]\",\r\n\t\t\"aplty\": \"APLRG\"\r\n\t},\r\n\t\"decdtls\": {\r\n\t\t\"dt\": \"01/04/2020\",\r\n\t\t\"signty\": \"DSC\",\r\n\t\t\"asdes\": \"L1\",\r\n\t\t\"asnm\": \"AAAPD1234A\",\r\n\t\t\"pl\": \"Hyderabad\"\r\n\t},\r\n\t\"arepdtls\": {\r\n\t\t\"enrlnum\": \"AAAPD1234A\",\r\n\t\t\"mn\": \"Jake\",\r\n\t\t\"ln\": \"Doe\",\r\n\t\t\"fxno\": {\r\n\t\t\t\"fxNum\": \"999999999\",\r\n\t\t\t\"stdCd\": \" 040\"\r\n\t\t},\r\n\t\t\"sts\": \"CTA\",\r\n\t\t\"mbno\": \"9999999999\",\r\n\t\t\"em\": \"[email protected]\",\r\n\t\t\"fn\": \"John\",\r\n\t\t\"tlphno\": {\r\n\t\t\t\"telNum\": \"111111111\",\r\n\t\t\t\"stdCd\": \"080\"\r\n\t\t}\r\n\t},\r\n\t\"stsidtls\": {\r\n\t\t\"ptrcnum\": \"ABC5665\",\r\n\t\t\"stexlcnum\": \"45566ABCD\",\r\n\t\t\"ptecnum\": \"4566545FF\",\r\n\t\t\"exlcnm\": \"John Doe\"\r\n\t}\r\n}"
headers = {
'Authorization': 'eyJhbGciOiJIUzUxMiJ9.eyJhdWQiOiJBUEkiLCJyZWZyZXNoX3Rva2VuIjoiZXlKaGJHY2lPaUpJVXpVeE1pSjkuZXlKaGRXUWlPaUpCVUVraUxDSnpkV0lpT2lKclpYbGZiR2wyWlY5QlpHVXFLaW9xS2lvcUtpb3FLaW9xS2lvcUtpb3FLaW9xS2lvcUtsVjRjeUlzSW1Gd2FWOXJaWGtpT2lKclpYbGZiR2wyWlY5QlpHVXFLaW9xS2lvcUtpb3FLaW9xS2lvcUtpb3FLaW9xS2lvcUtsVjRjeUlzSW1semN5STZJbUZ3YVM1eGRXbGphMjh1WTI5dElpd2laWGh3SWpveE5Ua3dPVFk1TmpBd0xDSnBiblJsYm5RaU9pSlNSVVpTUlZOSVgxUlBTMFZPSWl3aWFXRjBJam94TlRVNU16UTNNakF3ZlEueHNmYkhQTERFRlRvTy1OUWdaUUpLM25OUjFxdlhvWmhaOHRqS3gzSExydjZiVkJaMHpJZEZ5ai1MUTg1YnJZS0xXQnFnZHlzZ1NDSXlDUXNtV2VOYkEiLCJzdWIiOiJqb2huQGRvZS5jb20iLCJhcGlfa2V5Ijoia2V5X2xpdmVfQWRlKioqKioqKioqKioqKioqKioqKioqKioqKipVeHMiLCJpc3MiOiJhcGkucXVpY2tvLmNvbSIsImV4cCI6MTU5MTA1NjAwMCwiaW50ZW50IjoiQUNDRVNTX1RPS0VOIiwiaWF0IjoxNTkwOTY5NjAwfQ.nH23CR5RHGQ0U19I_vq3vyJ_85A1a2iEMQij5QHgJQdDuS9x7FmTidsr1CQabSFF5ujE40SFxHv1gJM20TauUw',
'x-api-key': 'key_live_Ade**************************Uxs',
'x-api-version': '3.3'
}
response = requests.request("POST", url, headers=headers, data = payload)
print(response.text.encode('utf8'))