Feel free to reach techsupport@surepass.io for any technical support or guidance.
Authorization
header as Bearer TOKEN
.https://sandbox.surepass.io
https://kyc-api.surepass.io
Header | Required | Description |
---|---|---|
Authorization | Yes | JWT Bearer token for authentication |
Content-Type | Yes | Must be set to application/json |
Parameter | Type | Required | Description |
---|---|---|---|
gstin | String | Yes | Valid GST Identification Number of the business to be categorized |
{
"gstin": "32ABCPU7961K1YY"
}
Parameter | Type | Description |
---|---|---|
data | Object | Contains the mapping results |
data.client_id | String | Unique identifier for the request |
data.gstin | String | The GSTIN that was provided in the request |
data.goods | Array | List of goods classifications with MCC codes |
data.services | Array | List of services classifications with MCC codes |
status_code | Integer | HTTP status code of the response |
success | Boolean | Indicates if the request was successful |
message | String | Human-readable status message |
message_code | String | Machine-readable status code |
Parameter | Type | Description |
---|---|---|
mcc_code | String | Merchant Category Code assigned to the business |
justification | String | Explanation of why this MCC was assigned |
confidence | String | Confidence level of the mapping (High, Medium, Low) |
related_hsn | Array | List of HSN codes related to this classification |
{
"data": {
"client_id": "gstin_to_mcc_kpiYdmkbOngxYStvuixb",
"gstin": "32ABCPU7961K1YY",
"goods": [
{
"mcc_code": "5311",
"justification": "Retail business generally falls under department stores if selling a variety of goods. This is a common MCC for general retail.",
"confidence": "High",
"related_hsn": [
"4202",
"4203",
"4205"
]
},
{
"mcc_code": "5941",
"justification": "Sporting Goods Stores are common retail outlets. HSN codes related to sporting goods are relevant.",
"confidence": "Medium",
"related_hsn": [
"9506",
"9507"
]
}
],
"services": [
{
"mcc_code": "7299",
"justification": "This MCC covers miscellaneous services not elsewhere classified, which could be relevant for a retail business offering minor services.",
"confidence": "Low",
"related_hsn": [
"9985",
"9986"
]
}
]
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}
{
"error": null,
"message": "Your token is invalid. Please ensure that correct token is being used.",
"status_code": 401,
"success": false,
"message_code": "invalid_token"
}
curl --location --request POST 'https://kyc-api.surepass.app/api/v1/mcc-mapping/gstin-to-mcc' \
--header 'Content-Type: application/json' \
--data-raw '{
"gstin": "32ABCPU7961K1YY"
}'
{
"data": {
"client_id": "gstin_to_mcc_kpiYdmkbOngxYStvuixb",
"gstin": "32ABCPU7961K1YY",
"goods": [
{
"mcc_code": "5311",
"justification": "Retail business generally falls under department stores if selling a variety of goods. This is a common MCC for general retail.",
"confidence": "High",
"related_hsn": [
"4202",
"4203",
"4205"
]
},
{
"mcc_code": "5941",
"justification": "Sporting Goods Stores are common retail outlets. HSN codes related to sporting goods are relevant.",
"confidence": "Medium",
"related_hsn": [
"9506",
"9507"
]
}
],
"services": [
{
"mcc_code": "7299",
"justification": "This MCC covers miscellaneous services not elsewhere classified, which could be relevant for a retail business offering minor services.",
"confidence": "Low",
"related_hsn": [
"9985",
"9986"
]
}
]
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}