---
updatedAt: 2026-06-01T05:07:22.000Z
agentTools:
  projectIndex: https://developer.peachpayments.com/llms.txt
---

# Initiate checkout

Create a checkout to use in Embedded Checkout or redirect the customer to the `redirectUrl` for Hosted Checkout.
For more information, see the [Embedded Checkout](https://developer.peachpayments.com/docs/checkout-embedded-tutorial#tutorial) or [Hosted Checkout](https://developer.peachpayments.com/docs/v2-checkout-hosted) documentation, and for sample calls, see the [public Postman collection](https://www.postman.com/peachpayments/peach-payments-public-workspace/request/hdj5dir/generate-checkout-id?action=share&source=copy-link&creator=20323380&ctx=documentation).

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "version": "1.0.0",
    "title": "Checkout",
    "description": "Checkout by Peach Payments is a ready to use payment experience securely hosted and managed by Peach Payments. With Checkout, merchants have the ability to accept a full range of payment methods with only a single developer integration. Support for card, EFT, BNPL (buy now, pay later), QR code, digital wallet, voucher, and mobile money are available straight out the box and can be customised by the merchant through the Peach Payments Console. Checkout is secure and provides both the merchant and customer confidence in the security of web payments.\n\nThis specification helps developers to easily integrate Checkout into payment pages for web using the Checkout API.",
    "contact": {
      "name": "Peach Payments Support",
      "url": "https://support.peachpayments.com/support/home",
      "email": "support@peachpayments.com"
    },
    "license": {
      "name": "Proprietary",
      "url": "https://peachpayments.com/legal"
    }
  },
  "servers": [
    {
      "url": "https://testsecure.peachpayments.com",
      "description": "Sandbox testing environment."
    },
    {
      "url": "https://secure.peachpayments.com",
      "description": "Live production environment."
    }
  ],
  "security": [],
  "tags": [
    {
      "name": "V2",
      "description": "Uses JWT Bearer authentication and JSON for requests and responses."
    }
  ],
  "paths": {
    "/v2/checkout": {
      "post": {
        "summary": "Initiate checkout",
        "description": "Create a checkout to use in Embedded Checkout or redirect the customer to the `redirectUrl` for Hosted Checkout.\nFor more information, see the [Embedded Checkout](https://developer.peachpayments.com/docs/checkout-embedded-tutorial#tutorial) or [Hosted Checkout](https://developer.peachpayments.com/docs/v2-checkout-hosted) documentation, and for sample calls, see the [public Postman collection](https://www.postman.com/peachpayments/peach-payments-public-workspace/request/hdj5dir/generate-checkout-id?action=share&source=copy-link&creator=20323380&ctx=documentation).",
        "tags": [
          "V2"
        ],
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "header",
            "name": "Referer",
            "description": "An allowlisted domain for the merchant.",
            "required": true,
            "schema": {
              "type": "string",
              "example": "https://example.com"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/CheckoutV2"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CheckoutV2"
              },
              "examples": {
                "Basic payment": {
                  "summary": "Basic payment",
                  "description": "Standard debit (DB) checkout that lets the customer choose from any enabled payment method.",
                  "value": {
                    "authentication.entityId": "8ac7a4ca94809723019482814def011f",
                    "merchantTransactionId": "OrderNo453432",
                    "amount": 1010,
                    "currency": "ZAR",
                    "paymentType": "DB",
                    "nonce": "UNQ00012345678",
                    "shopperResultUrl": "https://example.com/OrderNo453432"
                  }
                },
                "Force default payment method": {
                  "summary": "Force default payment method",
                  "description": "Opens checkout on a specific payment method.",
                  "value": {
                    "authentication.entityId": "8ac7a4ca94809723019482814def011f",
                    "merchantTransactionId": "OrderNo453432",
                    "amount": 1010,
                    "currency": "ZAR",
                    "paymentType": "DB",
                    "nonce": "UNQ00012345679",
                    "shopperResultUrl": "https://example.com/OrderNo453432",
                    "forceDefaultMethod": true,
                    "defaultPaymentMethod": "CARD"
                  }
                },
                "Basic tokenisation": {
                  "summary": "Basic tokenisation (card only)",
                  "description": "Tokenises the customer's card during the initial debit so it can be reused for subsequent one-click or recurring payments.",
                  "value": {
                    "authentication.entityId": "8ac7a4ca94809723019482814def011f",
                    "merchantTransactionId": "OrderNo453432",
                    "amount": 1010,
                    "currency": "ZAR",
                    "paymentType": "DB",
                    "nonce": "UNQ00012345670",
                    "shopperResultUrl": "https://example.com/OrderNo453432",
                    "forceDefaultMethod": true,
                    "defaultPaymentMethod": "CARD",
                    "createRegistration": true,
                    "standingInstruction": {
                      "type": "UNSCHEDULED",
                      "mode": "INITIAL"
                    }
                  }
                },
                "Wallet tokenisation": {
                  "summary": "Wallet tokenisation (Apple Pay, Google Pay, Samsung Pay)",
                  "description": "Tokenises Apple Pay, Google Pay, or Samsung Pay during a debit for later recurring payments. Wallets require `createRegistration=true`.",
                  "value": {
                    "authentication.entityId": "8ac7a4ca94809723019482814def011f",
                    "merchantTransactionId": "OrderNo453432",
                    "amount": 1010,
                    "currency": "ZAR",
                    "paymentType": "DB",
                    "nonce": "UNQ00012345673",
                    "shopperResultUrl": "https://example.com/OrderNo453432",
                    "createRegistration": true,
                    "standingInstruction": {
                      "type": "UNSCHEDULED",
                      "mode": "INITIAL"
                    }
                  }
                },
                "One-click card transaction": {
                  "summary": "One-click card transaction",
                  "description": "Charges a previously tokenised card by passing its registration ID in `cardTokens`, so the customer does not need to re-enter card details.",
                  "value": {
                    "authentication.entityId": "8ac7a4ca94809723019482814def011f",
                    "merchantTransactionId": "OrderNo453432",
                    "amount": 1010,
                    "currency": "ZAR",
                    "paymentType": "DB",
                    "nonce": "UNQ00012345671",
                    "shopperResultUrl": "https://example.com/OrderNo453432",
                    "cardTokens": [
                      "8ac7a4a2871b8b9b01871bcd1f6a0b2d"
                    ],
                    "allowStoringDetails": true,
                    "standingInstruction": {
                      "type": "UNSCHEDULED",
                      "mode": "REPEATED"
                    }
                  }
                },
                "Basic preauthorisation": {
                  "summary": "Basic preauthorisation (card only)",
                  "description": "Places a preauthorisation (PA) on the customer's card. A PA reserves funds but does not settle you; you must capture it for funds to move and for you to receive settlement, or reverse it. Only supported when `forceDefaultMethod` is `true` and `defaultPaymentMethod` is `CARD`.",
                  "value": {
                    "authentication.entityId": "8ac7a4ca94809723019482814def011f",
                    "merchantTransactionId": "OrderNo453432",
                    "amount": 1010,
                    "currency": "ZAR",
                    "paymentType": "PA",
                    "nonce": "UNQ00012345672",
                    "shopperResultUrl": "https://example.com/OrderNo453432",
                    "forceDefaultMethod": true,
                    "defaultPaymentMethod": "CARD"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Checkout successfully created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "checkoutId": {
                      "type": "string",
                      "example": "948cc8dec52a11eb85290242ac130003",
                      "description": "Checkout ID for use by subsequent calls and for Embedded Checkout."
                    },
                    "redirectUrl": {
                      "type": "string",
                      "example": "https://secure.peachpayments.com/checkout?plugin=session&checkoutId=948cc8dec52a11eb85290242ac130003",
                      "description": "Redirect URL for use by the merchant to redirect the customer to the checkout page."
                    }
                  },
                  "required": [
                    "checkoutId",
                    "redirectUrl"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "A validation error has occurred with Checkout.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MessageResponse"
                }
              }
            }
          },
          "401": {
            "description": "Request lacks valid authentication, message in response contains specifics.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MessageResponse"
                }
              }
            }
          },
          "404": {
            "description": "Invalid entity ID passed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MessageResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MessageResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "MessageResponse": {
        "type": "object",
        "description": "Generic response message for successful operations.",
        "required": [
          "message"
        ],
        "properties": {
          "message": {
            "type": "string"
          }
        }
      },
      "CheckoutV2": {
        "type": "object",
        "description": "Request body for creating a V2 checkout session.",
        "properties": {
          "authentication.entityId": {
            "description": "The entity for the request. By default, this is the channel ID.",
            "type": "string",
            "maxLength": 32,
            "example": "8ac7a4ca94809723019482814def011f"
          },
          "merchantTransactionId": {
            "description": "Merchant-provided reference number unique for your transactions.",
            "type": "string",
            "maxLength": 16,
            "minLength": 8,
            "format": "8-16",
            "example": "OrderNo453432"
          },
          "amount": {
            "description": "The amount of the payment request. The period is used as the decimal separator.\nAn amount of 0 is only supported when the `paymentType` is `PA` and `createRegistration` is set to `true`.\nM-PESA does not support decimal amounts, so Checkout automatically rounds them up.",
            "type": "number",
            "minimum": 0,
            "maximum": 99999999.99,
            "format": "^[0-9]{1,8}(\\\\.[0-9]{2})?$",
            "example": 1010
          },
          "currency": {
            "description": "The currency code of the payment request amount.",
            "type": "string",
            "enum": [
              "ZAR",
              "USD",
              "KES",
              "MUR",
              "GBP",
              "EUR"
            ],
            "example": "ZAR"
          },
          "paymentType": {
            "description": "The payment type for the request.\nDoes not accept `RG`, but you can tokenise: - A card by performing a DB or PA and setting `createRegistration` to `true`. - Apple Pay, Google Pay, or Samsung Pay by performing a DB and setting `createRegistration` to `true`.\nPA is only supported when `forceDefaultMethod` is set to `true` and `defaultPaymentMethod` is `CARD`. A PA reserves funds but does not transfer funds or settle you. You must [capture](https://developer.peachpayments.com/docs/card-manage-payments#capture-a-preauthorisation) the PA for funds to move and for you to receive settlement. An uncaptured PA does not appear in settlement. Alternatively, you can [reverse](https://developer.peachpayments.com/docs/card-manage-payments#reverse-a-preauthorisation) the PA.\nRefund transactions through the Dashboard or as described in the [documentation](https://developer.peachpayments.com/docs/checkout-refund).",
            "type": "string",
            "enum": [
              "DB",
              "PA"
            ],
            "example": "DB"
          },
          "nonce": {
            "description": "Unique value to represent each request.",
            "type": "string",
            "example": "UNQ00012345678",
            "maxLength": 64,
            "minLength": 1,
            "format": "string (1-64)"
          },
          "shopperResultUrl": {
            "description": "Checkout uses a POST request to redirect the customer to this URL after the customer completes checkout.\nEmbedded Checkout allows you to override the redirect behaviour by using the [`onCompleted`](https://developer.peachpayments.com/docs/checkout-embedded-sdk-reference#event-handlers) event.\nNote: Must be a valid URL that can be accessed through a browser.",
            "type": "string",
            "format": "string (6-2048)",
            "example": "https://example.com/OrderNo453432"
          },
          "defaultPaymentMethod": {
            "description": "Checkout opens in this payment method. Customers can choose to go back and select a different payment method.",
            "type": "string",
            "enum": [
              "CARD",
              "MASTERPASS",
              "MOBICRED",
              "MPESA",
              "1FORYOU",
              "APLUS",
              "PAYPAL",
              "ZEROPAY",
              "PAYFLEX",
              "BLINKBYEMTEL",
              "CAPITECPAY",
              "PAYBYBANK",
              "MCBJUICE",
              "RCS",
              "FLOAT",
              "HAPPYPAY",
              "APPLE PAY",
              "GOOGLEPAY",
              "SAMSUNGPAY",
              "MAUCAS",
              "MONEYBADGER",
              "PAYSHAP",
              "PAYJUSTNOW"
            ],
            "example": "CARD"
          },
          "forceDefaultMethod": {
            "description": "Force the default payment method to be the only payment method available.",
            "type": "boolean",
            "example": true,
            "default": false
          },
          "merchantInvoiceId": {
            "description": "Merchant-provided invoice number unique for your transactions. Truncated to 17 characters for FNB, SBSA, MCB, and SBM acquiring.",
            "type": "string",
            "minLength": 8,
            "maxLength": 255,
            "format": "string (8-255)",
            "example": "INV-00001"
          },
          "cancelUrl": {
            "description": "The customer is redirected to this URL if they cancel checkout. To enable the `cancelUrl` parameter, [contact support](https://support.peachpayments.com/support/tickets/new).\nNote: It must be a valid URL that can be reached through a browser.",
            "type": "string",
            "format": "string (6-2048)",
            "example": "https://example.com/OrderNo453432/cancelled"
          },
          "notificationUrl": {
            "description": "Checkout sends a webhook to this URL for any changes to the checkout, in addition to the webhook sent to the Dashboard-configured webhook URL.",
            "type": "string",
            "format": "string (6-2048)",
            "example": "https://example.com/OrderNo453432/webhook"
          },
          "customParameters": {
            "description": "A name value pair used for sending custom information. Account Funding Transaction (AFT) fields, such as `transactionBai` or `sender.givenName`, are forwarded to the acquirer as normal fields rather than as custom parameters, and are not returned in webhooks. To display custom parameters in the Peach Payments Dashboard > transaction details panel > **More details** tab, use the `\"customParameters\":{\"auxData\":\"{\\\"user_id\\\":\\\"12345\\\",\\\"paymentId\\\":\\\"98765\\\"}\"}` format, changing the parameters as required.",
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "minLength": 0,
              "maxLength": 2048
            }
          },
          "customer": {
            "type": "object",
            "properties": {
              "merchantCustomerId": {
                "description": "An identifier for this customer. Typically this is the ID that identifies the shopper in the shop's system.",
                "type": "string",
                "maxLength": 48,
                "minLength": 0,
                "format": "[\\s\\S]{0,48}",
                "example": "971020"
              },
              "givenName": {
                "description": "The customer's first name or given name. Required if you send in any other customer parameters, also required for some risk checks and payment providers. Truncated after 48 characters.\nPeach Payments recommends including the name so that it displays in the Peach Dashboard and is available for subsequent queries.",
                "type": "string",
                "maxLength": 48,
                "minLength": 0,
                "format": "[\\s\\S]{0,48}",
                "example": "John"
              },
              "surname": {
                "description": "The customer's last name or surname. Required if you send in any other customer parameters, also required for some risk checks and payment providers. Truncated after 48 characters.\nPeach Payments recommends including the surname so that it displays in the Peach Dashboard and is available for subsequent queries.",
                "type": "string",
                "maxLength": 48,
                "minLength": 0,
                "format": "[\\s\\S]{0,48}",
                "example": "Smith"
              },
              "mobile": {
                "description": "The customer's mobile number.",
                "type": "string",
                "maxLength": 24,
                "minLength": 5,
                "format": "[+0-9][0-9 \\.()/-]{5,24}",
                "example": "+27123456789"
              },
              "email": {
                "description": "The customer's email address.",
                "type": "string",
                "maxLength": 128,
                "minLength": 6,
                "format": "[\\s\\S]{6,128}",
                "example": "johnsmith@example.com"
              },
              "idNumber": {
                "description": "The customer's ID number, required for high-risk merchants supporting Capitec Pay.",
                "type": "string",
                "maxLength": 13,
                "minLength": 13,
                "format": "[\\s\\S]{13,13}",
                "example": "9001010000084"
              }
            }
          },
          "billing": {
            "type": "object",
            "properties": {
              "street1": {
                "description": "The door number, floor, building number, building name, and/or street name of the billing address.",
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "format": "[\\s\\S]{1,100}",
                "example": "1 Example Road"
              },
              "street2": {
                "description": "The adjoining road or locality, if required, of the billing address.",
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "format": "[\\s\\S]{1,100}",
                "example": "LocalityA"
              },
              "city": {
                "description": "The town, district, or city of the billing address.",
                "type": "string",
                "maxLength": 80,
                "minLength": 1,
                "format": "[\\s\\S]{1,80}",
                "example": "Cape Town"
              },
              "company": {
                "description": "The company of the billing address.",
                "type": "string",
                "maxLength": 64,
                "minLength": 1,
                "format": "[\\s\\S]{1,64}",
                "example": "CompanyA"
              },
              "country": {
                "description": "The country of the billing address (ISO 3166-1 alpha-2).",
                "type": "string",
                "maxLength": 2,
                "minLength": 2,
                "format": "ISO 3166-1 alpha-2",
                "example": "ZA"
              },
              "state": {
                "description": "The county, state, or region of the billing address.",
                "type": "string",
                "maxLength": 50,
                "minLength": 1,
                "format": "[\\s\\S]{1,50}",
                "example": "Western Cape"
              },
              "postcode": {
                "description": "The postal code or ZIP code of the billing address.",
                "type": "string",
                "maxLength": 30,
                "minLength": 1,
                "format": "[\\s\\S]{1,30}",
                "example": "1234"
              }
            }
          },
          "shipping": {
            "type": "object",
            "properties": {
              "street1": {
                "description": "The door number, floor, building number, building name, and/or street name of the shipping address.",
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "format": "[\\s\\S]{1,100}",
                "example": "1 Example Road"
              },
              "street2": {
                "description": "The adjoining road or locality, if required, of the shipping address.",
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "format": "[\\s\\S]{1,100}",
                "example": "LocalityA"
              },
              "city": {
                "description": "The town, district, or city of the shipping address.",
                "type": "string",
                "maxLength": 80,
                "minLength": 1,
                "format": "[\\s\\S]{1,80}",
                "example": "Cape Town"
              },
              "company": {
                "description": "The company of the shipping address.",
                "type": "string",
                "maxLength": 64,
                "minLength": 1,
                "format": "[\\s\\S]{1,64}",
                "example": "CompanyA"
              },
              "postcode": {
                "description": "The postal code or ZIP code of the shipping address.",
                "type": "string",
                "maxLength": 30,
                "minLength": 1,
                "format": "[\\s\\S]{1,30}",
                "example": "1234"
              },
              "country": {
                "description": "The country of the shipping address (ISO 3166-1 alpha-2).",
                "type": "string",
                "maxLength": 2,
                "minLength": 2,
                "format": "ISO 3166-1 alpha-2",
                "example": "ZA"
              },
              "state": {
                "description": "The county, state, or region of the shipping address.",
                "type": "string",
                "maxLength": 50,
                "minLength": 1,
                "format": "[\\s\\S]{1,50}",
                "example": "Western Cape"
              }
            }
          },
          "createRegistration": {
            "description": "Used to enable [tokenisation](https://developer.peachpayments.com/docs/checkout-tokenisation) for cards and digital wallets (Apple Pay, Google Pay, and Samsung Pay). You must get permission from your customer before tokenising their payment data.\nCannot be `true` if `allowStoringDetails` is true.",
            "type": "boolean",
            "example": true
          },
          "originator": {
            "description": "Used to provide a name for the application that is creating the checkout instance.",
            "type": "string",
            "maxLength": 100,
            "example": "Webstore"
          },
          "returnTo": {
            "description": "Text to display on \"Return to Store\" button on completing checkout.",
            "type": "string",
            "enum": [
              "STORE",
              "INVOICE"
            ],
            "example": "STORE"
          },
          "cardTokens": {
            "description": "List of card tokens. The card tokens must be linked to the customer as they enable one-click payment support for the customer. See the [documentation](https://developer.peachpayments.com/docs/checkout-tokenisation) for more information.",
            "type": "array",
            "items": {
              "type": "string",
              "example": "8ac7a49f8e9f15d2018ea09b285f0eaa"
            }
          },
          "allowStoringDetails": {
            "description": "Allow the customer to store their card details for future use. When this is set, the customer is given an option to tokenise their card during checkout.\nIf the customer chooses to store their card details, a `registrationId` is returned in the response from checkout. Similar to `createRegistration`.\nCannot be `true` if `createRegistration` is true.\nSee the [documentation](https://developer.peachpayments.com/docs/checkout-tokenisation) for more information.",
            "type": "boolean",
            "example": false
          },
          "standingInstruction": {
            "type": "object",
            "description": "Standing instruction parameters for credential-on-file payments. Use them with `createRegistration` to set constraints for credential-on-file tokenisation.",
            "properties": {
              "expiry": {
                "description": "Expiry date for recurring payments.\nThis parameter is conditional; mandatory when processing 3-D Secure on recurring transactions and optional for other transactions.\nIf provided, the saved card expires on this date. If not provided, the saved card has no expiry constraint.\nMust be a future date. Commonly set to 1-3 years from the present date.",
                "type": "string",
                "format": "date",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                "example": "2026-12-31"
              },
              "frequency": {
                "description": "Number of days between recurring payment authorisations (1-9999).\nThis parameter is conditional; mandatory when processing 3-D Secure on recurring transactions and optional for other transactions.\nCommon values: 7 (weekly), 30 (monthly), 90 (quarterly), 365 (yearly).\nIf not provided, the saved card has no frequency constraint.",
                "type": "integer",
                "minimum": 1,
                "maximum": 9999,
                "example": 30
              },
              "recurringType": {
                "description": "Conditional type of recurring MIT (Merchant Initiated Transaction) agreement. Indicates whether payments are for fixed or variable amounts.\n- **SUBSCRIPTION**: Fixed amount and fixed frequency (for example, monthly newspaper subscription at R99.99/month). - **STANDING_ORDER**: Variable amount and fixed frequency (for example, monthly utility payment where amount varies).\n**Requirements**: - Required for all Mastercard CIT (Cardholder Initiated Transaction) and MIT (Merchant Initiated Transaction) transactions. - Required for Visa recurring transactions executed with cards issued in India.\nIf not provided, this parameter is not sent to the payment gateway.",
                "type": "string",
                "enum": [
                  "SUBSCRIPTION",
                  "STANDING_ORDER"
                ],
                "example": "SUBSCRIPTION"
              },
              "type": {
                "description": "Category of the transaction for credential-on-file payments.\n- **RECURRING**: Transactions processed at regular fixed intervals for pre-agreed amounts. No fixed duration. - **INSTALLMENT**: Transactions processed at regular fixed intervals for pre-agreed amounts with a fixed duration for a single purchase. - **UNSCHEDULED**: Credential-on-file transactions triggered by events (for example, minimum balance threshold), not at pre-agreed intervals.\nIf not provided, the system auto-determines the type based on other parameters.",
                "type": "string",
                "enum": [
                  "UNSCHEDULED",
                  "INSTALLMENT",
                  "RECURRING"
                ],
                "example": "RECURRING"
              },
              "mode": {
                "description": "Mode indicating the payment transaction stage.\n- **INITIAL**: First payment in a series. Must contain authentication data (CVV, 3DS). - **REPEATED**: Subsequent payment without shopper present. No authentication data required.\nIf not provided, the system auto-sets based on context (INITIAL for new registrations, REPEATED for token payments).",
                "type": "string",
                "enum": [
                  "INITIAL",
                  "REPEATED"
                ],
                "example": "INITIAL"
              },
              "industryPractice": {
                "description": "MIT type for business practice follow-ups to original cardholder interactions.\n- **INCREMENTAL_AUTH**: Increase total amount authorised (for example, hotel incidentals). - **RESUBMISSION**: Retry authorisation after initial decline for insufficient funds. - **REAUTHORIZATION**: Re-authorise after cardholder has left (for example, split shipment). - **DELAYED_CHARGES**: Charges processed after service completion (for example, hotel checkout, car rental). - **NO_SHOW**: Charge for missed reservation or appointment.",
                "type": "string",
                "enum": [
                  "INCREMENTAL_AUTH",
                  "RESUBMISSION",
                  "REAUTHORIZATION",
                  "DELAYED_CHARGES",
                  "NO_SHOW"
                ],
                "example": "DELAYED_CHARGES"
              },
              "numberOfInstallments": {
                "description": "Maximum number of authorisations permitted for installment payments (1-999).\nRequired when merchant and cardholder have agreed to installment payments with EMV 3-D Secure authentication configured (that is, when `standingInstruction.type=INSTALLMENT`).\nOmit if not an installment payment.",
                "type": "integer",
                "minimum": 1,
                "maximum": 999,
                "example": 12
              }
            }
          },
          "cardRemovalUrl": {
            "description": "If a customer removes a stored card, you must remove it from their profile, and ensure that you do **not** provide the removed card's token when using the `cardTokens` parameter.\nCheckout sends a POST request to this URL when the customer removes a card from Hosted Checkout so that you know which token to remove from your customer's profile.\nCheckout sends the following parameters in the POST request:\n - `checkoutId` - ID of the checkout instance.\n - `registrationId` - ID of the card token removed.\n - `signature` - Signature of the request.\n\nIf you are using Embedded Checkout, please use the [`onRemoveCard`](https://developer.peachpayments.com/docs/checkout-embedded-sdk-reference#onremovecard) callback instead.",
            "type": "string",
            "format": "string (6-2048)",
            "example": "https://example.com/users/1234567890/remove-card"
          },
          "descriptor": {
            "description": "Override a portion of the descriptor displayed on the customer's bank statement.",
            "type": "string",
            "maxLength": 127,
            "format": "[\\s\\S]{1,127}",
            "example": "CompanyA"
          },
          "merchant.name": {
            "description": "Override the descriptor displayed on the customer's bank statement. Only applicable to card payments; does not affect other payment methods.",
            "type": "string",
            "maxLength": 100,
            "format": "[\\s\\S]{1,100}",
            "example": "CompanyA"
          },
          "enableAddNewCard": {
            "description": "Whether to enable the \"Add New Card\" button.",
            "type": "boolean",
            "example": true
          },
          "hideAddNewCard": {
            "description": "Whether to hide the \"Add new card\" button. When true, the customer can still pay with a stored card. When omitted, Checkout leaves the button visible unless Embedded Checkout sets customisations.card.hideAddCard. This does not change enableAddNewCard. Set enableAddNewCard to false to show a visible, disabled button.",
            "type": "boolean",
            "example": true
          },
          "cardSubmitButtonText": {
            "description": "Custom text for the card submit button. Defaults to \"Pay Now\" if not provided.",
            "type": "string",
            "maxLength": 50,
            "example": "Pay Now"
          },
          "cardHeadingText": {
            "description": "Custom heading text for the card form. Defaults to \"Please enter your card details below to complete the payment.\" if not provided.",
            "type": "string",
            "maxLength": 255,
            "example": "Please enter your card details below to complete the payment."
          },
          "cardHeadingSavedCardsText": {
            "description": "Custom heading text for the header section when there are cards saved.",
            "type": "string",
            "maxLength": 255,
            "example": "Select a card to pay with"
          }
        },
        "required": [
          "authentication.entityId",
          "merchantTransactionId",
          "amount",
          "currency",
          "nonce",
          "shopperResultUrl"
        ]
      }
    },
    "securitySchemes": {
      "BearerAuth": {
        "description": "Merchant-level authentication (https://developer.peachpayments.com/docs/checkout-embedded-authentication).",
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true,
    "samples-enabled": true
  }
}
```