---
updatedAt: 2026-07-30T10:10:46.000Z
agentTools:
  projectIndex: https://developer.peachpayments.com/llms.txt
---

# Payment

Initiate a debit transaction.

Certain parameters are required for specific payment methods and certain parameters act differently depending on the payment method.

- For PayShap, `virtualAccount.bank` (the customer's bank: `FIRSTNATIONALBANK`, `DISCOVERYBANK`, `NEDBANK`, `TYMEBANK`, or `ABSABANK`), `virtualAccount.type` (the customer's identifier type: `CELLPHONE`), `virtualAccount.accountId` (the customer's phone number in the `+27-123456789` format), and `shopperResultUrl` are required.
- For Capitec Pay, `virtualAccount.type` (the customer's identifier type: `IDNUMBER`, `CELLPHONE`, or `ACCOUNTNUMBER`), `virtualAccount.accountId` (the customer's 13-digit ID number, 10-digit phone number starting with `0`, or up to 64-digit, alphanumeric bank account number), and `shopperResultUrl` are required. High-risk merchants must provide the verified `IDNUMBER` and cannot use the `CELLPHONE` or `ACCOUNTNUMBER` account types.
- For Peach EFT, the `shopperResultUrl` is required. Absa categorises merchants as either low risk or high risk. Low-risk merchants support paying with ID; high-risk merchants must supply a merchant-verified ID that the customer cannot edit. For high-risk merchants using the Payments API, supply the verified ID in `virtualAccount` as an array.
- For 1Voucher, `customer.mobile` (the customer's phone number for receiving change vouchers and refunds) and `virtualAccount.password` (the voucher PIN) are required.
- For Mobicred, `virtualAccount.accountId` (the customer's Mobicred email address), `virtualAccount.password` (the customer's Mobicred password), and `shopperResultUrl` are required.
- For RCS cards, `card.number` (the customer's RCS card number) and `shopperResultUrl` are required.
- For M-PESA, `virtualAccount.accountId` (the customer's 12-digit phone number) and `shopperResultUrl` are required. M-PESA only accepts integer amounts, not decimals, so round up your amount.
- For blink by Emtel and MCB Juice, `virtualAccount.accountId` (the customer's 8-digit phone number) and `shopperResultUrl` are required.
- For Payflex, ZeroPay, Float, Happy Pay, Scan to Pay, MoneyBadger, and MauCAS, the `shopperResultUrl` is required.

For more information, see the [documentation](https://developer.peachpayments.com/docs/payments-api-flows#payment-flow), and for sample calls, see our [public Postman collection](https://www.postman.com/peachpayments/peach-payments-public-workspace/request/yblmbqd/payments-public?action=share&creator=20323380&ctx=documentation&active-environment=13324425-9345d747-fcdd-4a5c-83e4-6f637771b28b).


# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "version": "2.0.0",
    "title": "Payments API",
    "description": "The Payments API enables you to do a custom integration with Peach Payments and thereby support multiple payment methods.",
    "termsOfService": "https://swagger.io/terms/",
    "contact": {
      "name": "Peach Payments Support",
      "email": "support@peachpayments.com",
      "url": "https://support.peachpayments.com/support/home"
    },
    "license": {
      "name": "MIT",
      "url": "https://mit-license.org"
    }
  },
  "servers": [
    {
      "url": "https://testapi-v2.peachpayments.com",
      "description": "Sandbox testing environment."
    },
    {
      "url": "https://api-v2.peachpayments.com",
      "description": "Live production environment."
    }
  ],
  "paths": {
    "/payments": {
      "post": {
        "tags": [
          "Payment or refund"
        ],
        "summary": "Payment",
        "description": "Initiate a debit transaction.\n\nCertain parameters are required for specific payment methods and certain parameters act differently depending on the payment method.\n\n- For PayShap, `virtualAccount.bank` (the customer's bank: `FIRSTNATIONALBANK`, `DISCOVERYBANK`, `NEDBANK`, `TYMEBANK`, or `ABSABANK`), `virtualAccount.type` (the customer's identifier type: `CELLPHONE`), `virtualAccount.accountId` (the customer's phone number in the `+27-123456789` format), and `shopperResultUrl` are required.\n- For Capitec Pay, `virtualAccount.type` (the customer's identifier type: `IDNUMBER`, `CELLPHONE`, or `ACCOUNTNUMBER`), `virtualAccount.accountId` (the customer's 13-digit ID number, 10-digit phone number starting with `0`, or up to 64-digit, alphanumeric bank account number), and `shopperResultUrl` are required. High-risk merchants must provide the verified `IDNUMBER` and cannot use the `CELLPHONE` or `ACCOUNTNUMBER` account types.\n- For Peach EFT, the `shopperResultUrl` is required. Absa categorises merchants as either low risk or high risk. Low-risk merchants support paying with ID; high-risk merchants must supply a merchant-verified ID that the customer cannot edit. For high-risk merchants using the Payments API, supply the verified ID in `virtualAccount` as an array.\n- For 1Voucher, `customer.mobile` (the customer's phone number for receiving change vouchers and refunds) and `virtualAccount.password` (the voucher PIN) are required.\n- For Mobicred, `virtualAccount.accountId` (the customer's Mobicred email address), `virtualAccount.password` (the customer's Mobicred password), and `shopperResultUrl` are required.\n- For RCS cards, `card.number` (the customer's RCS card number) and `shopperResultUrl` are required.\n- For M-PESA, `virtualAccount.accountId` (the customer's 12-digit phone number) and `shopperResultUrl` are required. M-PESA only accepts integer amounts, not decimals, so round up your amount.\n- For blink by Emtel and MCB Juice, `virtualAccount.accountId` (the customer's 8-digit phone number) and `shopperResultUrl` are required.\n- For Payflex, ZeroPay, Float, Happy Pay, Scan to Pay, MoneyBadger, and MauCAS, the `shopperResultUrl` is required.\n\nFor more information, see the [documentation](https://developer.peachpayments.com/docs/payments-api-flows#payment-flow), and for sample calls, see our [public Postman collection](https://www.postman.com/peachpayments/peach-payments-public-workspace/request/yblmbqd/payments-public?action=share&creator=20323380&ctx=documentation&active-environment=13324425-9345d747-fcdd-4a5c-83e4-6f637771b28b).\n",
        "operationId": "payment",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PaymentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse"
                    },
                    {
                      "$ref": "#/components/schemas/PaymentResponse"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error400Response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "UserId": {
        "description": "Authentication userId.",
        "type": "string",
        "pattern": "^[0-9a-f]{32}$",
        "minLength": 32,
        "maxLength": 32,
        "example": "5fb5e392d6fa11ef9b3002f694e28f55"
      },
      "Password": {
        "description": "Authentication password.",
        "type": "string",
        "example": "OMydSc7ewVmEKPZCAj2WxHoik"
      },
      "EntityId": {
        "description": "Authentication entityId",
        "type": "string",
        "pattern": "^[0-9a-f]{32}$",
        "minLength": 32,
        "maxLength": 32,
        "example": "8ac7a4c894809722019482d1df62029d"
      },
      "MerchantTransactionId": {
        "description": "Merchant-provided reference number, often used for reconciliation.",
        "type": "string",
        "pattern": "^[a-zA-Z0-9]{8,16}$",
        "minLength": 8,
        "maxLength": 16,
        "example": "test12345"
      },
      "Code": {
        "description": "The unique code that indicates the result status of the request.",
        "type": "string",
        "pattern": "^([0-9]{3}.[0-9]{3}.[0-9]{3})$",
        "minLength": 11,
        "maxLength": 11,
        "example": "800.100.152"
      },
      "Result": {
        "description": "The result object.",
        "type": "object",
        "required": [
          "code",
          "description"
        ],
        "properties": {
          "code": {
            "$ref": "#/components/schemas/Code"
          },
          "description": {
            "type": "string",
            "example": "Request successfully processed."
          }
        }
      },
      "Timestamp": {
        "description": "The timestamp of the transaction.",
        "type": "string",
        "format": "date-time",
        "example": "2021-04-23T07:41:25.519947Z"
      },
      "UniqueId": {
        "description": "The unique transaction ID provided by Peach Payments.",
        "type": "string",
        "pattern": "^[0-9a-f]{32}$",
        "minLength": 32,
        "maxLength": 32,
        "example": "41a57893d4a44191be8cd410398464e6"
      },
      "PaymentType": {
        "description": "Payment type of the transaction. See the [payment methods documentation](https://developer.peachpayments.com/docs/pp-payment-methods#south-africa) for details on which payment methods support the RF payment type.",
        "type": "string",
        "enum": [
          "DB",
          "RF"
        ],
        "example": "DB"
      },
      "PaymentBrand": {
        "description": "The payment brand specifies the method of payment for the request.",
        "type": "string",
        "enum": [
          "PAYFLEX",
          "ZEROPAY",
          "1FORYOU",
          "MASTERPASS",
          "MPESA",
          "BLINKBYEMTEL",
          "MOBICRED",
          "CAPITECPAY",
          "PEACHEFT",
          "MCBJUICE",
          "RCS",
          "FLOAT",
          "HAPPYPAY",
          "MAUCAS",
          "MONEYBADGER",
          "PAYSHAP"
        ],
        "example": "PEACHEFT"
      },
      "Amount": {
        "description": "The payment request amount.",
        "type": "string",
        "pattern": "(?!0+$)(?!0+\\.00)^\\d{1,8}(\\.\\d{2})?$",
        "minLength": 1,
        "maxLength": 11,
        "example": "22.50"
      },
      "Currency": {
        "description": "The currency code of the payment request amount as defined by ISO-4217.",
        "type": "string",
        "format": "iso-4217",
        "pattern": "^[A-Z]{3}$",
        "minLength": 3,
        "maxLength": 3,
        "example": "ZAR"
      },
      "ResultDetails": {
        "description": "Additional details that can provide information about the status or result of the transaction.",
        "type": "object",
        "properties": {
          "ExtendedDescription": {
            "type": "string",
            "example": "Purchase Approved OK"
          },
          "AcquirerResponse": {
            "type": "string",
            "example": "Approved"
          },
          "UserDisplayMessage": {
            "type": "string",
            "example": "Message 16 - Your session was created."
          }
        }
      },
      "ConnectorTxID1": {
        "description": "The unique transaction identifier provided by the payment service provider.",
        "type": "string",
        "pattern": "^[\\S]{1,64}$",
        "minLength": 1,
        "maxLength": 64,
        "example": "8ac7a49f7921f2fd0179230196ec4bbe"
      },
      "CustomParameters": {
        "description": "A JSON object depicting custom information sent by the merchant. Echoed back in the response.",
        "type": "object"
      },
      "MerchantInvoiceId": {
        "description": "The merchant's invoice ID.",
        "type": "string",
        "pattern": "^[a-zA-Z0-9]{8,255}$",
        "minLength": 8,
        "maxLength": 255,
        "example": "20170630407200"
      },
      "ParameterErrors": {
        "description": "Error details of the request parameters which failed validation.",
        "type": "array",
        "items": {
          "type": "object",
          "required": [
            "value",
            "name",
            "message"
          ],
          "properties": {
            "value": {
              "description": "The value of the parameter which failed validation. Can be any value - string, number, boolean, array, or object.",
              "nullable": true
            },
            "name": {
              "type": "string",
              "description": "The name of the parameter."
            },
            "message": {
              "type": "string",
              "description": "A message describing the error."
            }
          }
        },
        "example": [
          {
            "value": "null",
            "name": "authenticationValue",
            "message": "Payments API requires authenticationValue."
          }
        ]
      },
      "Error400Result": {
        "description": "Error result object describing the error code and parameter errors.",
        "type": "object",
        "required": [
          "code",
          "parameterErrors",
          "description"
        ],
        "properties": {
          "code": {
            "$ref": "#/components/schemas/Code"
          },
          "parameterErrors": {
            "$ref": "#/components/schemas/ParameterErrors"
          },
          "description": {
            "type": "string",
            "example": "Errors in the processed request."
          }
        }
      },
      "Error400Response": {
        "description": "Error object describing the 400 status code error.",
        "type": "object",
        "required": [
          "result",
          "timestamp"
        ],
        "properties": {
          "result": {
            "$ref": "#/components/schemas/Error400Result"
          },
          "resultDetails": {
            "$ref": "#/components/schemas/ResultDetails"
          },
          "timestamp": {
            "$ref": "#/components/schemas/Timestamp"
          }
        }
      },
      "ErrorResponse": {
        "description": "Error object describing the error.",
        "type": "object",
        "required": [
          "result",
          "timestamp"
        ],
        "properties": {
          "result": {
            "$ref": "#/components/schemas/Result"
          },
          "resultDetails": {
            "$ref": "#/components/schemas/ResultDetails"
          },
          "timestamp": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "id": {
            "$ref": "#/components/schemas/UniqueId"
          },
          "paymentType": {
            "$ref": "#/components/schemas/PaymentType"
          },
          "paymentBrand": {
            "$ref": "#/components/schemas/PaymentBrand"
          },
          "customParameters": {
            "$ref": "#/components/schemas/CustomParameters"
          },
          "amount": {
            "$ref": "#/components/schemas/Amount"
          },
          "currency": {
            "$ref": "#/components/schemas/Currency"
          }
        }
      },
      "Authentication": {
        "description": "Authenticate requests using the userId, password, and entityId.",
        "type": "object",
        "required": [
          "userId",
          "password",
          "entityId"
        ],
        "properties": {
          "userId": {
            "$ref": "#/components/schemas/UserId"
          },
          "password": {
            "$ref": "#/components/schemas/Password"
          },
          "entityId": {
            "$ref": "#/components/schemas/EntityId"
          }
        }
      },
      "VirtualAccount": {
        "description": "The virtual account object.",
        "type": "object",
        "properties": {
          "accountId": {
            "description": "The account ID.",
            "type": "string",
            "pattern": "^[\\w .\\-'\"?,~!@#$%^&*()=+\\/\\\\]{1,64}$",
            "minLength": 1,
            "maxLength": 64,
            "example": "80d41ee71ee011e98e81067b75644abf"
          },
          "password": {
            "description": "The virtual account password.",
            "type": "string",
            "example": "xDZWEIefSkyibutsU3"
          },
          "token": {
            "description": "The virtual account token.",
            "type": "string",
            "example": "fd81f6ccabec11eba6e102d14de18c00"
          },
          "type": {
            "description": "The virtual account type.",
            "type": "string",
            "enum": [
              "CELLPHONE",
              "IDNUMBER",
              "ACCOUNTNUMBER"
            ]
          },
          "bank": {
            "description": "The virtual account bank. Only applicable to PayShap.",
            "type": "string",
            "enum": [
              "FIRSTNATIONALBANK",
              "DISCOVERYBANK",
              "NEDBANK",
              "TYMEBANK",
              "ABSABANK"
            ]
          }
        }
      },
      "VirtualAccountProcessor": {
        "description": "A processor-based virtual account entry. Used for payment methods that route through a named processor (for example, `ABSAEFT`).\n",
        "type": "object",
        "required": [
          "processor",
          "identifier"
        ],
        "properties": {
          "processor": {
            "description": "The payment processor identifier.",
            "type": "string",
            "enum": [
              "ABSAEFT"
            ],
            "example": "ABSAEFT"
          },
          "identifier": {
            "description": "A list of customer identifiers required by the processor.",
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "object",
              "required": [
                "type",
                "accountId"
              ],
              "properties": {
                "type": {
                  "description": "The identifier type.",
                  "type": "string",
                  "enum": [
                    "IDNUMBER"
                  ],
                  "example": "IDNUMBER"
                },
                "accountId": {
                  "description": "The customer's identifier value. For IDNUMBER, this is the customer's 13-digit South African ID number.\n",
                  "type": "string",
                  "minLength": 13,
                  "maxLength": 13,
                  "example": "9999999999999"
                }
              }
            }
          }
        }
      },
      "Customer": {
        "description": "Optional object sent if customer data is required.",
        "type": "object",
        "properties": {
          "email": {
            "description": "The customer's email  address.",
            "format": "email",
            "type": "string",
            "pattern": "^[\\s\\S]{6,128}$",
            "minLength": 6,
            "maxLength": 128,
            "example": "name@example.com"
          },
          "fax": {
            "description": "The customer's fax number, if provided.",
            "type": "string",
            "pattern": "^[+0-9][0-9 \\.()/-]{7,25}$",
            "minLength": 8,
            "maxLength": 26,
            "example": "2919392022"
          },
          "givenName": {
            "description": "The customer's first name or given name. Peach Payments recommends including the name so that it displays in the Peach Dashboard and is available for subsequent queries.",
            "type": "string",
            "pattern": "^[\\w'\\-,.][^0-9_!¡?÷?¿/\\\\+=@#$%ˆ&*(){}|~<>;:[\\]]{2,127}$",
            "minLength": 3,
            "maxLength": 128,
            "example": "Jane"
          },
          "surname": {
            "description": "The customer's last name or surname. Peach Payments recommends including the surname so that it displays in the Peach Dashboard and is available for subsequent queries.",
            "type": "string",
            "pattern": "^[\\w'\\-,.][^0-9_!¡?÷?¿/\\\\+=@#$%ˆ&*(){}|~<>;:[\\]]{2,127}$",
            "minLength": 3,
            "maxLength": 128,
            "example": "Doe"
          },
          "mobile": {
            "description": "The customer's mobile phone number.",
            "type": "string",
            "pattern": "^[+0-9][0-9 \\.()/-]{5,25}$",
            "minLength": 6,
            "maxLength": 26,
            "example": "27610107822"
          },
          "phone": {
            "description": "The customer's phone number.",
            "type": "string",
            "pattern": "^[+0-9][0-9 \\.()/-]{7,25}$",
            "minLength": 8,
            "maxLength": 26,
            "example": "27210030000"
          },
          "ip": {
            "description": "The customer's IP address.",
            "type": "string",
            "pattern": "^[\\s\\S]{1,255}$",
            "minLength": 1,
            "maxLength": 255,
            "example": "0.0.0.0"
          },
          "merchantCustomerLanguage": {
            "description": "The language used for the customer on the merchant's site.",
            "type": "string",
            "pattern": "^[\\s\\S]{1,128}$",
            "minLength": 1,
            "maxLength": 128,
            "example": "EN"
          },
          "status": {
            "description": "Used to determine if this is a new or returning customer.",
            "type": "string",
            "pattern": "^[\\s\\S]{1,255}$",
            "minLength": 1,
            "maxLength": 255,
            "example": "NEW"
          },
          "merchantCustomerId": {
            "description": "The customer's ID on the merchant's site.",
            "type": "string",
            "pattern": "^[\\s\\S]{1,255}$",
            "minLength": 1,
            "maxLength": 255,
            "example": "sxxopjqy"
          },
          "taxId": {
            "description": "The customer's tax ID, if required.",
            "type": "string",
            "pattern": "^[\\s\\S]{1,128}$",
            "minLength": 1,
            "maxLength": 128,
            "example": "4550045030303"
          },
          "taxType": {
            "description": "The customer's tax type, if required.",
            "type": "string",
            "pattern": "^[\\s\\S]{1,128}$",
            "minLength": 1,
            "maxLength": 128,
            "example": "tax type"
          },
          "birthDate": {
            "description": "The customer's birth date.",
            "type": "string",
            "pattern": "^(19|20)([0-9]{2})-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$",
            "minLength": 10,
            "maxLength": 10,
            "example": "1996-08-07"
          },
          "browser": {
            "type": "object",
            "description": "The customer's browser details.",
            "properties": {
              "acceptHeader": {
                "description": "The value of the accept header sent from the customer's browser.",
                "type": "string",
                "pattern": "^[\\s\\S]{1,2048}$",
                "minLength": 1,
                "maxLength": 2048,
                "example": "application/json"
              },
              "language": {
                "description": "The value representing the browser language as defined in IETF BCP47.",
                "type": "string",
                "pattern": "^[\\s\\S]{1,8}$",
                "minLength": 1,
                "maxLength": 8,
                "example": "EN"
              },
              "screenHeight": {
                "description": "The total height of the customer's screen in pixels.",
                "type": "string",
                "pattern": "^[\\s\\S]{1,6}$",
                "minLength": 1,
                "maxLength": 6,
                "example": "1080"
              },
              "screenWidth": {
                "description": "The total width of the customer's screen in pixels.",
                "type": "string",
                "pattern": "^[\\s\\S]{1,6}$",
                "minLength": 1,
                "maxLength": 6,
                "example": "1920"
              },
              "timezone": {
                "description": "The time-zone offset in minutes between UTC and the local time of the customer's browser.",
                "type": "string",
                "pattern": "^[\\s\\S]{1,5}$",
                "minLength": 1,
                "maxLength": 5,
                "example": "30"
              },
              "userAgent": {
                "description": "The exact content of the HTTP user-agent header.",
                "type": "string",
                "pattern": "^[\\s\\S]{1,2048}$",
                "minLength": 1,
                "maxLength": 2048,
                "example": "Mozilla/5.0 (Android 4.4; Mobile; rv:41.0) Gecko/41.0 Firefox/41.0"
              },
              "javaEnabled": {
                "description": "The boolean that represents the ability of the customer's browser to execute Java.",
                "type": "string",
                "pattern": "^(true|false)$",
                "minLength": 4,
                "maxLength": 5,
                "example": "false"
              },
              "javascriptEnabled": {
                "description": "The boolean that represents the ability of the customer's browser to execute JavaScript.",
                "type": "string",
                "pattern": "^(true|false)$",
                "minLength": 4,
                "maxLength": 5,
                "example": "true"
              },
              "screenColorDepth": {
                "description": "The value representing the bit depth of the colour palette for displaying images in bits per pixel.",
                "type": "string",
                "pattern": "^[0-9]{1,2}$",
                "minLength": 1,
                "maxLength": 2,
                "example": "24"
              },
              "challengeWindow": {
                "description": "The dimensions of the challenge window that has been displayed to the customer.",
                "type": "string",
                "pattern": "^[0-9]{1,2}$",
                "minLength": 1,
                "maxLength": 2,
                "example": "01"
              }
            }
          }
        }
      },
      "Address": {
        "description": "Optional object that can be used for billing or shipping information.",
        "type": "object",
        "properties": {
          "city": {
            "description": "The town, district, or city linked to billing or shipping.",
            "type": "string",
            "pattern": "^[\\s\\S]{1,48}$",
            "minLength": 1,
            "maxLength": 48,
            "example": "Cape Town"
          },
          "company": {
            "description": "The customer's company name.",
            "type": "string",
            "pattern": "^[\\s\\S]{1,60}$",
            "minLength": 1,
            "maxLength": 60,
            "example": "Business Mosaics Ltd"
          },
          "country": {
            "description": "The country linked to billing or shipping as defined by ISO-3166-1 alpha-2.",
            "type": "string",
            "format": "iso-3166-1 alpha-2",
            "pattern": "^[A-Z]{2}$",
            "minLength": 2,
            "maxLength": 2,
            "example": "ZA"
          },
          "houseNumber1": {
            "description": "Primary house number of the billing or shipping address.",
            "type": "string",
            "pattern": "^[\\s\\S]{1,100}$",
            "minLength": 1,
            "maxLength": 100,
            "example": "25567"
          },
          "postcode": {
            "description": "The postal code or zip code of the billing or shipping address.",
            "type": "string",
            "pattern": "^[\\s\\S]{1,16}$",
            "minLength": 1,
            "maxLength": 16,
            "example": "8001"
          },
          "state": {
            "description": "The county, state, or region of the billing address.",
            "type": "string",
            "pattern": "^[a-zA-Z0-9\\.\\- ]{1,50}$",
            "minLength": 1,
            "maxLength": 50,
            "example": "Nasarawa"
          },
          "street1": {
            "description": "The door number, floor, building number, building name, and/or street name of the billing or shipping address.",
            "type": "string",
            "pattern": "^[\\s\\S]{1,100}$",
            "minLength": 1,
            "maxLength": 100,
            "example": "Langtree Lane"
          },
          "street2": {
            "description": "Secondary house number of the billing or shipping address. Used when more addresses are bundled to the same primary house number. If present, houseNumber1 is required.",
            "type": "string",
            "pattern": "^[\\s\\S]{1,100}$",
            "minLength": 1,
            "maxLength": 100,
            "example": "Loe Street"
          },
          "customer": {
            "$ref": "#/components/schemas/Customer"
          }
        }
      },
      "Shopify": {
        "description": "The Shopify object.",
        "type": "object",
        "properties": {
          "orderId": {
            "type": "string",
            "description": "The Shopify order ID.",
            "pattern": "^[\\s\\S]{1,64}$",
            "minLength": 1,
            "maxLength": 64,
            "example": "1234567891234"
          },
          "accountId": {
            "type": "string",
            "description": "The Shopify account ID.",
            "pattern": "^[\\s\\S]{1,64}$",
            "minLength": 1,
            "maxLength": 64,
            "example": "6370"
          },
          "signature": {
            "type": "string",
            "description": "The Shopify signature.",
            "pattern": "^[\\s\\S]{1,64}$",
            "minLength": 1,
            "maxLength": 64,
            "example": "7292b834263177afa7fddbea3fa7a81f20818ee7cf05d1c4b4cac1677dc7a8f7"
          },
          "testMode": {
            "type": "string",
            "description": "Shopify test mode.",
            "pattern": "^[\\s\\S]{1,64}$",
            "minLength": 1,
            "maxLength": 64,
            "example": "false"
          }
        }
      },
      "Cart": {
        "description": "Customer cart data.",
        "type": "object",
        "properties": {
          "cartItems": {
            "type": "array",
            "description": "List of details of the items in the cart.",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "description": "The name of the item in the shopping cart.",
                  "type": "string",
                  "pattern": "^[\\s\\S]{1,255}$",
                  "minLength": 1,
                  "maxLength": 255,
                  "example": "Laptop"
                },
                "merchantItemId": {
                  "description": "The unique identifier of the item in the shopping cart.",
                  "type": "string",
                  "pattern": "^[\\s\\S]{1,255}$",
                  "minLength": 1,
                  "maxLength": 255,
                  "example": "item123"
                },
                "quantity": {
                  "description": "The number of items in the shopping cart.",
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 999999,
                  "example": "125"
                },
                "price": {
                  "description": "The price of the item in the shopping cart.",
                  "type": "string",
                  "pattern": "^[0-9]{1,10}\\.[0-9]{2}$",
                  "minLength": 4,
                  "maxLength": 13,
                  "example": "05.25"
                },
                "description": {
                  "description": "The description of the item in the shopping cart.",
                  "type": "string",
                  "pattern": "^[\\s\\S]{1,2048}$",
                  "minLength": 1,
                  "maxLength": 2048,
                  "example": "Gaming laptop"
                },
                "weightInKg": {
                  "description": "The weight (in kg) of the item in the shopping cart.",
                  "type": "number",
                  "minimum": 0.01,
                  "maximum": 999999.99,
                  "example": "05.25"
                },
                "category": {
                  "description": "The category of the item in the shopping cart.",
                  "type": "string",
                  "pattern": "^[\\s\\S]{1,256}$",
                  "minLength": 1,
                  "maxLength": 256,
                  "example": "electronics"
                }
              }
            }
          },
          "tax": {
            "description": "The tax percentage or amount applied to the price of the items in the shopping cart.",
            "type": "string",
            "pattern": "^[0-9]{1,8}(\\.[0-9]{2})?$",
            "minLength": 1,
            "maxLength": 11,
            "example": "15.00"
          },
          "shippingAmount": {
            "description": "The shipping amount applied to the items in the shopping cart.",
            "$ref": "#/components/schemas/Amount"
          },
          "discount": {
            "description": "The discount percentage applied to the price of the items in the shopping cart.",
            "type": "string",
            "pattern": "^0(\\.00?)?$|^100$|^100.00$|^100.0$|^\\d{1,2}(\\.\\d{1,2})?$",
            "minLength": 1,
            "maxLength": 6,
            "example": "02.25"
          }
        }
      },
      "ShopperResultUrl": {
        "description": "The Payments API redirects the user to this URL after processing the payment request.",
        "type": "string",
        "format": "uri",
        "minLength": 6,
        "maxLength": 2048,
        "example": "https://example.com/redirect"
      },
      "PaymentRequest": {
        "description": "Initiate a debit transaction.",
        "type": "object",
        "required": [
          "authentication",
          "merchantTransactionId",
          "amount",
          "currency",
          "paymentBrand",
          "paymentType"
        ],
        "properties": {
          "authentication": {
            "$ref": "#/components/schemas/Authentication"
          },
          "merchantTransactionId": {
            "$ref": "#/components/schemas/MerchantTransactionId"
          },
          "amount": {
            "$ref": "#/components/schemas/Amount"
          },
          "currency": {
            "$ref": "#/components/schemas/Currency"
          },
          "paymentBrand": {
            "$ref": "#/components/schemas/PaymentBrand"
          },
          "paymentType": {
            "$ref": "#/components/schemas/PaymentType"
          },
          "virtualAccount": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/VirtualAccount"
              },
              {
                "description": "Applicable for `PEACHEFT`. Array of processor-based virtual account entries.\n",
                "type": "array",
                "minItems": 1,
                "items": {
                  "$ref": "#/components/schemas/VirtualAccountProcessor"
                }
              }
            ]
          },
          "shipping": {
            "$ref": "#/components/schemas/Address"
          },
          "billing": {
            "$ref": "#/components/schemas/Address"
          },
          "shopify": {
            "$ref": "#/components/schemas/Shopify"
          },
          "customer": {
            "$ref": "#/components/schemas/Customer"
          },
          "cart": {
            "$ref": "#/components/schemas/Cart"
          },
          "merchantInvoiceId": {
            "$ref": "#/components/schemas/MerchantInvoiceId"
          },
          "shopperResultUrl": {
            "$ref": "#/components/schemas/ShopperResultUrl"
          }
        }
      },
      "Redirect": {
        "description": "The URL that the merchant must redirect the user to after the transaction has been created and is in a pending state. When the user is redirected, they can complete any actions required for that specific payment method.",
        "type": "object",
        "required": [
          "url",
          "method",
          "parameters"
        ],
        "properties": {
          "url": {
            "description": "The URL that the shopper must be redirected to in order to proceed.",
            "type": "string",
            "format": "uri",
            "example": "https://test.yourdomain.com/link?"
          },
          "parameters": {
            "description": "Array of parameter names and values for the redirect URL.",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "value": {
                  "type": "string"
                }
              }
            },
            "example": [
              {
                "name": "MD",
                "value": "8ac7a49f7921f2fd0179230196ec4bbe"
              },
              {
                "name": "TermUrl",
                "value": "https://test.yourdomain.com/connectors/asyncresponse_simulator;jsessionid=021942B282D8.uat01-vm-con01?asyncsource=THREEDSECURE"
              }
            ]
          },
          "method": {
            "description": "REST method used for redirection.",
            "type": "string",
            "enum": [
              "GET",
              "POST"
            ],
            "example": "POST"
          }
        }
      },
      "ConnectorTxID2": {
        "description": "Another unique transaction identifier provided by the payment service provider.",
        "type": "string",
        "pattern": "^[\\s\\S]{1,64}$",
        "minLength": 1,
        "maxLength": 64,
        "example": "ws_CO_21072022171719580123456790"
      },
      "TransactionExpiryTimestamp": {
        "description": "The expiry timestamp of the transaction.",
        "type": "string",
        "format": "date-time",
        "example": "2021-04-23T07:41:25.519947Z"
      },
      "PaymentResponse": {
        "type": "object",
        "required": [
          "id",
          "amount",
          "currency",
          "customParameters",
          "paymentBrand",
          "paymentType",
          "result",
          "timestamp"
        ],
        "properties": {
          "amount": {
            "$ref": "#/components/schemas/Amount"
          },
          "currency": {
            "$ref": "#/components/schemas/Currency"
          },
          "paymentBrand": {
            "$ref": "#/components/schemas/PaymentBrand"
          },
          "paymentType": {
            "$ref": "#/components/schemas/PaymentType"
          },
          "result": {
            "$ref": "#/components/schemas/Result"
          },
          "resultDetails": {
            "$ref": "#/components/schemas/ResultDetails"
          },
          "redirect": {
            "$ref": "#/components/schemas/Redirect"
          },
          "connectorTxID1": {
            "$ref": "#/components/schemas/ConnectorTxID1"
          },
          "connectorTxID2": {
            "$ref": "#/components/schemas/ConnectorTxID2"
          },
          "customParameters": {
            "$ref": "#/components/schemas/CustomParameters"
          },
          "timestamp": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "id": {
            "$ref": "#/components/schemas/UniqueId"
          },
          "merchantTransactionId": {
            "$ref": "#/components/schemas/MerchantTransactionId"
          },
          "merchantInvoiceId": {
            "$ref": "#/components/schemas/MerchantInvoiceId"
          },
          "shopperResultUrl": {
            "$ref": "#/components/schemas/ShopperResultUrl"
          },
          "virtualAccount": {
            "$ref": "#/components/schemas/VirtualAccount"
          },
          "transactionExpiryTimestamp": {
            "$ref": "#/components/schemas/TransactionExpiryTimestamp"
          }
        }
      }
    },
    "responses": {
      "Unauthorized": {
        "description": "Unauthorised.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "InternalServerError": {
        "description": "Internal server error.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      }
    }
  }
}
```