Card validation based on the Zero Auth method
POST/cards/verification
The purpose of this endpoint is to validate the authenticity of a credit card provided by the cardholder. A valid card is one that is not canceled, blocked or subject to restrictions. This verification ensures the integrity of the card, contributing to secure and hassle-free transactions.
Request​
Header Parameters
Include the 'caller-origin' property as a string in the header of REST requests only if the application is an e-commerce platform, otherwise, don't include it.
- application/json
Body
required
Possible values: [CREDIT
]
Possible values: >= 13 characters
and <= 16 characters
, Value must match regular expression ^\d+$
Possible values: >= 3 characters
and <= 4 characters
, Value must match regular expression ^\d+$
Possible values: Value must match regular expression ^\d{11}$|^\d{14}$|^[A-Z0-9]{8,9}$
Possible values: >= 1
and <= 12
Accepted year ranges are between current year and current year +19
One time token generated by our SDK on seller's front-end to be used in the transaction. It's useful to avoid sending card data to the seller's backend. When using this field, the card data is not necessary.
Responses​
- 200
- 400
- 401
- 415
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
{
"authorization": "string",
"nsu": "string",
"acquirerErrorCode": "string",
"acquirerErrorMessage": "string",
"isValid": true,
"cardId": "string"
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
errors
object[]
{
"message": "string",
"success": true,
"businessCode": "string",
"errors": [
{
"message": "must be a well-formed UUID string",
"field": "merchantChargeId"
}
]
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
Array [
]
errors
object[]
{
"message": "string",
"success": true,
"businessCode": "string",
"errors": [
{
"message": "must be a well-formed UUID string",
"field": "merchantChargeId"
}
]
}
{
"message": "Authorization token not found.",
"success": false,
"errors": {
"message": "Authorization token not found",
"field": "Authorization Token"
}
}
Unsupported Media Type
- application/json
- Schema
- Example (from schema)
- Example
Schema
Array [
]
errors
object[]
{
"message": "string",
"success": true,
"businessCode": "string",
"errors": [
{
"message": "must be a well-formed UUID string",
"field": "merchantChargeId"
}
]
}
{
"message": "Request object is invalid or incorrectly formatted",
"success": false,
"errors": null
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
errors
object[]
{
"message": "string",
"success": true,
"businessCode": "string",
"errors": [
{
"message": "must be a well-formed UUID string",
"field": "merchantChargeId"
}
]
}