V2
Validate checkout request
Validate a request before trying to initiate a checkout. For sample calls, see the public Postman collection.
post/v2/checkout/validate
Headers
Refererstring required
Example:https://example.com
An allowlisted domain for the merchant.
Request body
Example request
{
"authentication.entityId": "8ac7a4ca94809723019482814def011f",
"merchantTransactionId": "OrderNo453432",
"amount": 1010,
"currency": "ZAR",
"paymentType": "DB",
"nonce": "UNQ00012345678",
"shopperResultUrl": "https://example.com/OrderNo453432",
"defaultPaymentMethod": "CARD",
"forceDefaultMethod": true,
"merchantInvoiceId": "INV-00001",
"cancelUrl": "https://example.com/OrderNo453432/cancelled",
"notificationUrl": "https://example.com/OrderNo453432/webhook",
"customer": {
"merchantCustomerId": "971020",
"givenName": "John",
"surname": "Smith",
"mobile": "+27123456789",
"email": "johnsmith@example.com",
"idNumber": "9001010000084"
},
"billing": {
"street1": "1 Example Road",
"street2": "LocalityA",
"city": "Cape Town",
"company": "CompanyA",
"country": "ZA",
"state": "Western Cape",
"postcode": "1234"
},
"shipping": {
"street1": "1 Example Road",
"street2": "LocalityA",
"city": "Cape Town",
"company": "CompanyA",
"postcode": "1234",
"country": "ZA",
"state": "Western Cape"
},
"createRegistration": true,
"originator": "Webstore",
"returnTo": "STORE",
"cardTokens": [
"8ac7a49f8e9f15d2018ea09b285f0eaa"
],
"standingInstruction": {
"expiry": "2026-12-31",
"frequency": 30,
"recurringType": "SUBSCRIPTION",
"type": "RECURRING",
"mode": "INITIAL",
"industryPractice": "DELAYED_CHARGES",
"numberOfInstallments": 12
},
"cardRemovalUrl": "https://example.com/users/1234567890/remove-card",
"descriptor": "CompanyA",
"merchant.name": "CompanyA",
"enableAddNewCard": true,
"cardSubmitButtonText": "Pay Now",
"cardHeadingText": "Please enter your card details below to complete the payment.",
"cardHeadingSavedCardsText": "Select a card to pay with"
}Response
Checkout successfully validated.
Example response
{
"message": "Valid request"
}