Validate Card Details
POST
https://{base_url}/v2/merchant/cartValidation
The Request Body must be an array containing exactly one object. This object includes the details of the transaction and payment information.
This endpoint is used to validate the transaction details provided in a cart. It performs both general validation and mandatory field checks on the transaction data. The endpoint returns a success message if all validations pass, or detailed error messages if any validations fail.
Headers
Name | Value |
---|---|
Content-Type |
|
Body
Name | Type | Required | Description |
---|---|---|---|
| String | False | Alphanumeric string with a maximum length of 24 characters. |
| String | False | Order ID with a maximum length of 25 characters. |
| String | False | The date of the order in ISO 8601 format. Must be a string and cannot exceed 20 characters. |
| String | False | Descriptor for the payment, with a maximum length of 25 characters. |
| String | False | Alphanumeric code with a maximum length of 6 characters. |
| String | False | The date of authorization in ISO 8601 format. Must be a string and cannot exceed 25 characters. |
| String | False | The currency of the authorization. Must be a string and cannot exceed 3 characters. |
| Number | False | The amount of the authorization. Must be a decimal value with up to 2 decimal places, and cannot exceed 13 characters. |
| String | False | The date of settlement in ISO 8601 format. Must be a string and cannot exceed 25 characters. |
| String | False | The currency of the settlement. Must be a string and cannot exceed 3 characters. |
| Number | False | The amount of the settlement. Must be a decimal value with up to 2 decimal places, and cannot exceed 13 characters. |
| String | False | The first 6 digits of the credit card number. Must be exactly 6 characters. |
| String | False | The last 4 digits of the credit card number. Must be exactly 4 characters. |
| Object | False | Additional details related to the transaction. |
| Object | False | Specific transaction details. |
| Array | False | Array containing tax amounts. |
| Array | False | Array containing tax amount currencies. |
| Array | False | Array containing shipping and handling amounts. |
| Array | False | Array containing shipping and handling amount currencies. |
| Number | False | The total amount of the transaction. |
| String | False | The currency of the total amount. |
| Object | False | Object containing billing address details. |
| Array | False | Array containing billing address lines. |
| String | False | The city of the billing address. |
| String | False | The state of the billing address. |
| String | False | The ZIP code of the billing address. |
| String | False | The country of the billing address. |
| Array | False | Array containing shipping address details. |
| Boolean | False | Whether AVS was checked or not. |
| Boolean | False | Whether CVV was checked or not. |
| Number | False | The amount refunded. |
| String | False | The currency of the refund amount. |
| String | False | The date of the refund in ISO 8601 format. |
| String | False | The name of the device used for the transaction. |
| String | False | The ID of the device used for the transaction. |
| String | False | The IP address of the device used for the transaction. |
| String | False | URL to the terms and conditions. |
| Object | False | Object containing customer information. |
| String | False | The first name of the customer. |
| String | False | The last name of the customer. |
| String | False | The length of the relationship with the customer. |
| String | False | The email address of the customer. |
| Array | False | Array containing information about the products purchased. |
| String | False | The name of the product purchased. |
| String | False | The URL of the product purchased. |
| String | False | The currency of the unit price. |
| Object | False | Object containing the unit price amount and currency. |
| Number | False | The unit price amount of the product. |
| String | False | The currency of the unit price. |
| String | False | The quantity of the product purchased. |
| Object | False | Object containing industry-specific details such as flight or hotel details. |
| Array | False | Array containing flight-related details. |
| Array | False | Array containing hotel-related details. |
| Object | False | Object containing delivery-related details. |
| Array | False | Array containing physical fulfillment details, such as shipment and delivery information. |
| String | False | The URL of the shipping carrier's tracking page. |
| String | False | The tracking number provided by the shipping carrier. |
| String | False | The date the item was shipped. |
| String | False | The date the item was delivered. |
| Array | False | Array containing customer relationship management (CRM) details. |
| String | False | Notes about the interaction. |
| Array | False | Array containing attachments related to the transaction. |
| String | False | The ID of the attachment. |
| String | False | The file name of the attachment. |
| String | False | The friendly name of the attachment. |
| String | False | The MIME type of the attachment. |
| String | False | The date the attachment was received. |
| String | False | The source of the file. |
| String | False | The base64 encoded data of the attachment |
Last updated