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 authentication using JWT token |
Content-Type | Yes | application/json |
Parameter | Type | Required | Description |
---|---|---|---|
start_date | String | Yes | Start date for the usage report in YYYY-MM-DD format |
end_date | String | Yes | End date for the usage report in YYYY-MM-DD format |
recipient_email | String | Yes | Email address where the usage summary will be sent |
{
"start_date": "2019-01-01",
"end_date": "2020-03-06",
"recipient_email": "sample@example.com"
}
Parameter | Type | Description |
---|---|---|
status | String | Status of the request (success/failure) |
message | String | Descriptive message about the result of the operation |
data | Object | Contains additional information about the report generation |
{
"status": "success",
"message": "Usage summary report has been generated and sent to sample@example.com",
"data": {
"report_id": "usr_20230615_123456",
"period": "2019-01-01 to 2020-03-06",
"recipient": "sample@example.com",
"generated_at": "2023-06-15T14:30:45Z"
}
}
{
"status": "error",
"message": "Invalid date format. Please use YYYY-MM-DD format.",
"error_code": "INVALID_DATE_FORMAT"
}
curl --location --request POST 'https://kyc-api.surepass.app/api/v1/utils/usage/usage-summary' \
--header 'Content-Type: application/json' \
--data-raw '{
"start_date": "2019-01-01",
"end_date": "2020-03-06",
"recipient_email": "sample@example.com"
}'
{}