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 (format: Bearer YOUR_TOKEN ) |
Content-Type | Yes | Must be set to application/json |
Parameter | Type | Required | Description |
---|---|---|---|
hsn | String | Yes | The HSN (Harmonized System Nomenclature) code to be mapped to an MCC |
{
"hsn": "0101"
}
Parameter | Type | Description |
---|---|---|
data | Object | Container for the response data |
data.client_id | String | Unique identifier for the API request |
data.hsn | String | The HSN code that was submitted in the request |
data.mcc_code | String | The mapped Merchant Category Code (MCC) |
data.confidence | String | Confidence level of the mapping (High/Medium/Low) |
data.justification | String | Detailed explanation of why the HSN maps to the given MCC |
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 |
{
"data": {
"client_id": "hsn_to_mcc_COhgTtVTHpfSuWSDtsgK",
"hsn": "0101",
"mcc_code": "0742",
"confidence": "Medium",
"justification": "This HSN code represents live horses, asses, mules, and hinnies. This falls under agricultural services, specifically livestock. MCC 0742 is designated for Veterinary Services, which is closely related to the care and maintenance of live animals, especially livestock. While not a direct sale of the animals themselves, it's the closest applicable MCC."
},
"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/hsn-to-mcc' \
--header 'Content-Type: application/json' \
--data-raw '{
"hsn": "0101"
}'
{
"data": {
"client_id": "hsn_to_mcc_COhgTtVTHpfSuWSDtsgK",
"hsn": "0101",
"mcc_code": "0742",
"confidence": "Medium",
"justification": "This HSN code represents live horses, asses, mules, and hinnies. This falls under agricultural services, specifically livestock. MCC 0742 is designated for Veterinary Services, which is closely related to the care and maintenance of live animals, especially livestock. While not a direct sale of the animals themselves, it's the closest applicable MCC."
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}