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 | Bearer token for authentication (JWT format) |
Content-Type | Yes | multipart/form-data |
Parameter | Type | Required | Description |
---|---|---|---|
file | File | Yes | The invoice document to be verified (PDF or Image format) |
base64 | String | No | Base64 image |
Link | String | No | Image Link |
use_pdf | Boolean | No | Set to true if the uploaded file is a PDF document |
'file=@/path/to/invoice.pdf' \
'use_pdf=true'
Parameter | Type | Description |
---|---|---|
data | Object | Contains the extracted invoice information |
data.client_id | String | Unique identifier for the verification request |
data.seller_gstin | String | GSTIN (Goods and Services Tax Identification Number) of the seller |
data.buyer_gstin | String | GSTIN of the buyer |
data.document_no | String | Invoice document number |
data.document_type | String | Type of document (e.g., INV for Invoice) |
data.document_issue_date | String | Date when the invoice was issued (YYYY-MM-DD format) |
data.invoice_amount | String | Total invoice amount including taxes |
data.total_item | Number | Number of items included in the invoice |
data.hsn_code | String | Harmonized System of Nomenclature code for the goods/services |
data.irn_number | String | Invoice Reference Number (IRN) generated for the invoice |
data.irn_issue_date | String | Date and time when the IRN was generated (YYYY-MM-DD HH:MM:SS format) |
status_code | Number | HTTP status code of the response |
success | Boolean | Indicates if the API call was successful |
message | String | Human-readable status message |
message_code | String | Machine-readable status code |
{
"data": {
"client_id": "einvoice_irn_kzCkdFnyjlqDOxdbwzfz",
"seller_gstin": "07ABCCS1234R2ZT",
"buyer_gstin": "07AUJPS1234P2ZX",
"document_no": "INV-301112345",
"document_type": "INV",
"document_issue_date": "2024-11-30",
"invoice_amount": "11800.0",
"total_item": 1,
"hsn_code": "997331",
"irn_number": "b6a05e2db7cef123456bb8d4253c30b89c7097f513bdfc3138b9f176fd7841",
"irn_issue_date": "2024-11-30 12:02:00"
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}
{
"status_code": 400,
"success": false,
"message": "Invalid file format. Please upload a PDF or image file.",
"message_code": "invalid_file_format"
}
curl --location --request POST 'https://kyc-api.surepass.app/api/v1/corporate/einvoice-irn' \
--form 'file=@""' \
--form 'use_pdf="true"'
{
"data": {
"client_id": "einvoice_irn_kzCkdFnyjlqDOxdbwzfz",
"seller_gstin": "07ABCCS1234R2ZT",
"buyer_gstin": "07AUJPS1234P2ZX",
"document_no": "INV-301112345",
"document_type": "INV",
"document_issue_date": "2024-11-30",
"invoice_amount": "11800.0",
"total_item": 1,
"hsn_code": "997331",
"irn_number": "b6a05e2db7cef123456bb8d4253c30b89c7097f513bdfc3138b9f176fd7841",
"irn_issue_date": "2024-11-30 12:02:00"
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}