---
updatedAt: 2025-06-18T12:39:16.000Z
agentTools:
  projectIndex: https://developer.pay.nl/llms.txt
---

# authorize

API handles the calls for starting and completing the transaction in one go. The
merchant calls this API with the same parameters as the Transaction Start V16 with
the necessary card data appended to it. For existing transactions the orderId and
entranceCode can be passed on instead of the transaction details.

Note: this API can only handle:
1. NON 3DS transactions - no fallback to 3DS auth
2. 3DS transactions where the merchant provides the 3DS data (using 3rd party 3DSecure provider)
3. 3DS transactions where the merchant adds the transaction ID of the integrated 3DSecure provider
4. Wallet transactions (e.g. Apple Pay / Google Pay)

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "PAY. Card Payment API - v1.2.3",
    "termsOfService": "https://www.pay.nl/algemene-voorwaarden",
    "contact": {
      "email": "support@pay.nl"
    },
    "version": "1.2"
  },
  "servers": [
    {
      "url": "https://payment.pay.nl/"
    }
  ],
  "paths": {
    "/v1/Payment/authorize/json": {
      "post": {
        "tags": [
          "Card Payments"
        ],
        "summary": "authorize",
        "description": "API handles the calls for starting and completing the transaction in one go. The\nmerchant calls this API with the same parameters as the Transaction Start V16 with\nthe necessary card data appended to it. For existing transactions the orderId and\nentranceCode can be passed on instead of the transaction details.\n\nNote: this API can only handle:\n1. NON 3DS transactions - no fallback to 3DS auth\n2. 3DS transactions where the merchant provides the 3DS data (using 3rd party 3DSecure provider)\n3. 3DS transactions where the merchant adds the transaction ID of the integrated 3DSecure provider\n4. Wallet transactions (e.g. Apple Pay / Google Pay)",
        "operationId": "d8a03bda20cafdf5fb63243c496b614a",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Authorize"
              },
              "examples": {
                "AuthorizeRequestExampleCard": {
                  "$ref": "#/components/examples/AuthorizeRequestExampleCard"
                },
                "AuthorizeRequestExampleSimpleCard": {
                  "$ref": "#/components/examples/AuthorizeRequestExampleSimpleCard"
                },
                "AuthorizeRequestExampleSimpleExistingTransactionCard": {
                  "$ref": "#/components/examples/AuthorizeRequestExampleSimpleCard"
                },
                "AuthorizeRequestExampleSimpleCSE": {
                  "$ref": "#/components/examples/AuthorizeRequestExampleSimpleCSE"
                },
                "AuthorizeRequestExampleApplePay": {
                  "$ref": "#/components/examples/AuthorizeRequestExampleApplePay"
                },
                "AuthorizeRequestExampleExistingTransactionCard": {
                  "$ref": "#/components/examples/AuthorizeRequestExampleExistingTransactionCard"
                },
                "AuthorizeRequestExampleExistingTransactionCardIntegratedThreeDS": {
                  "$ref": "#/components/examples/AuthorizeRequestExampleExistingTransactionCardIntegratedThreeDS"
                },
                "AuthorizeRequestExampleSimpleCardWith3DS": {
                  "$ref": "#/components/examples/AuthorizeRequestExampleSimpleCardWith3DS"
                },
                "AuthorizeRequestExampleSimpleThirdPartyCard": {
                  "$ref": "#/components/examples/AuthorizeRequestExampleSimpleThirdPartyCard"
                },
                "AuthorizeRequestExampleTokenID": {
                  "$ref": "#/components/examples/AuthorizeRequestExampleTokenID"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthorizationResponse"
                },
                "examples": {
                  "AuthorizeResponseSuccessNon3DS": {
                    "$ref": "#/components/examples/AuthorizeResponseSuccessNon3DS"
                  },
                  "AuthorizeResponseSuccess": {
                    "$ref": "#/components/examples/AuthorizeResponseSuccess"
                  },
                  "InvalidAmount": {
                    "$ref": "#/components/examples/InvalidAmount"
                  },
                  "InvalidCardNumber": {
                    "$ref": "#/components/examples/InvalidCardNumber"
                  },
                  "InsufficientFunds": {
                    "$ref": "#/components/examples/InsufficientFunds"
                  },
                  "InvalidCardToken": {
                    "$ref": "#/components/examples/InvalidCardToken"
                  },
                  "DoNotHonour": {
                    "$ref": "#/components/examples/DoNotHonour"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. See response for details."
          },
          "401": {
            "description": "Unauthorized."
          },
          "403": {
            "description": "Forbidden."
          },
          "404": {
            "description": "Not found."
          }
        },
        "security": [
          {
            "basicAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "Authorize": {
        "required": [
          "transaction",
          "payment"
        ],
        "properties": {
          "transaction": {
            "$ref": "#/components/schemas/Transaction"
          },
          "options": {
            "$ref": "#/components/schemas/Options"
          },
          "payment": {
            "$ref": "#/components/schemas/PaymentAuthorize"
          },
          "stats": {
            "$ref": "#/components/schemas/Stats"
          },
          "customer": {
            "$ref": "#/components/schemas/Customer"
          },
          "order": {
            "$ref": "#/components/schemas/Order"
          }
        },
        "type": "object"
      },
      "AuthorizationResponse": {
        "title": "Successfully completed transaction",
        "properties": {
          "request": {
            "$ref": "#/components/schemas/RequestResponse"
          },
          "payment": {
            "$ref": "#/components/schemas/PaymentResponse"
          },
          "transaction": {
            "$ref": "#/components/schemas/TransactionResponse"
          }
        },
        "type": "object"
      },
      "PaymentResponse": {
        "properties": {
          "bankCode": {
            "description": "Response code returned from the issuer indicating the outcome of the authorization.",
            "type": "string",
            "example": "00"
          },
          "bankMessage": {
            "description": "Description of the response code.",
            "type": "string",
            "example": "Approved"
          },
          "approvalCode": {
            "description": "",
            "type": "string",
            "example": ""
          },
          "schemeTransactionId": {
            "description": "",
            "type": "string",
            "example": ""
          },
          "cvcCheck": {
            "description": "",
            "type": "string",
            "example": ""
          },
          "threeDs": {
            "description": "",
            "type": "string",
            "example": ""
          },
          "avsResult": {
            "description": "",
            "type": "string",
            "example": ""
          }
        },
        "type": "object",
        "example": [
          {
            "bankCode": "00",
            "bankMessage": "Approved",
            "approvalCode": "",
            "schemeTransactionId": "",
            "cvcCheck": "",
            "threeDs": "",
            "avsResult": ""
          },
          {
            "bankCode": "05",
            "bankMessage": "Do not honour"
          }
        ]
      },
      "RequestResponse": {
        "properties": {
          "result": {
            "description": "Indicates whether the request was successfully processed (`1`) or some error has occurred (`0`).",
            "type": "integer"
          },
          "errorId": {
            "description": "If the request was not successfully processed this parameter holds the ID of the error that has occurred. ",
            "type": "string"
          },
          "errorTag": {
            "description": "The error tag can be used to generate an error response for the customer.",
            "type": "string"
          },
          "errorMessage": {
            "description": "Description of the error that occurred. This message is returned in the language (if available) in which the transaction is/was submitted.",
            "type": "string"
          }
        },
        "type": "object",
        "example": [
          {
            "result": 1,
            "errorId": "",
            "errorTag": "",
            "errorMessage": ""
          },
          {
            "result": 0,
            "errorId": "PAY-2011",
            "errorTag": "invalidRequest",
            "errorMessage": "Invalid request; amount is missing in payload or value is not accepted. Amount must be a positive integer."
          }
        ]
      },
      "TransactionResponse": {
        "properties": {
          "transactionId": {
            "description": "The Id of the transaction.",
            "type": "string",
            "example": "EX-6582-4371-5560"
          },
          "orderId": {
            "description": "The orderId of the transaction.",
            "type": "string",
            "example": "1606895211Xcfe87"
          },
          "entranceCode": {
            "description": "The orderId of the transaction.",
            "type": "string",
            "example": "af1a538cbb2b1790b989ac0ce31cee6e5c998efb"
          },
          "paymentProfileId": {
            "description": "The payment profile identifier.",
            "type": "integer",
            "example": "706"
          },
          "state": {
            "description": "",
            "type": "integer",
            "example": ""
          },
          "stateName": {
            "description": "",
            "type": "string",
            "example": ""
          },
          "amount": {
            "$ref": "#/components/schemas/MonetaryAmount"
          },
          "created": {
            "description": "",
            "type": "number",
            "example": ""
          },
          "identifierName": {
            "description": "",
            "type": "string",
            "example": ""
          },
          "identifierPublic": {
            "description": "",
            "type": "string",
            "example": ""
          },
          "identifierHash": {
            "description": "",
            "type": "string",
            "example": ""
          },
          "startIpAddress": {
            "description": "",
            "type": "string",
            "example": "139.130.4.5"
          },
          "completedIpAddress": {
            "description": "",
            "type": "string",
            "example": "139.130.4.5"
          },
          "orderNumber": {
            "description": "The merchants reference for the transaction, eg. an order number or invoice id.",
            "type": "string",
            "example": ""
          },
          "amountOriginal": {
            "$ref": "#/components/schemas/MonetaryAmount"
          },
          "amountPaidOriginal": {
            "$ref": "#/components/schemas/MonetaryAmount"
          },
          "amountPaid": {
            "$ref": "#/components/schemas/MonetaryAmount"
          },
          "amountRefundOriginal": {
            "$ref": "#/components/schemas/MonetaryAmount"
          },
          "amountRefund": {
            "$ref": "#/components/schemas/MonetaryAmount"
          }
        },
        "type": "object",
        "example": {
          "transactionId": "EX-6532-1534-0587",
          "orderId": "1663945736X5c76a",
          "entranceCode": "38d52645890884bbddb89d6d8a3156951dac648b",
          "paymentProfileId": "706",
          "state": "20",
          "stateName": "PENDING",
          "amount": {
            "value": "1235",
            "currency": "EUR"
          },
          "created": "1636560362",
          "identifierName": "R. van der Werf",
          "identifierPublic": "420000******0001",
          "identifierHash": "8755dd8126cc62de1af07e63a9bf2765a00d32bef2c519f61fb0aa1c18ae4f63629716fc1f523cc09d6e02f4ea52049b4b3ed7fd413ae9d7d94568adb08ee952",
          "startIpAddress": "10.20.30.40",
          "completedIpAddress": "10.40.60.80",
          "orderNumber": "210709461",
          "amountOriginal": {
            "value": "1235",
            "currency": "EUR"
          },
          "amountPaidOriginal": {
            "value": "1235",
            "currency": "EUR"
          },
          "amountPaid": {
            "value": "0",
            "currency": "EUR"
          },
          "amountRefundOriginal": {
            "value": "0",
            "currency": "EUR"
          },
          "amountRefund": {
            "value": "0",
            "currency": "EUR"
          }
        }
      },
      "MonetaryAmount": {
        "properties": {
          "amount": {
            "description": "The amount in cents.",
            "type": "integer",
            "example": 10
          },
          "currency": {
            "description": "The currency in ISO-4217 format, e.g.: EUR, USD, CHF",
            "type": "string",
            "example": "EUR"
          }
        },
        "type": "object"
      },
      "Options": {
        "properties": {
          "tokenization": {
            "description": "Include the `tokenize` option in the options array and set the value to override the default settings for this payment. Possible values are: `-1` = disable, `1` = enable or `0` = use default.",
            "type": "number",
            "enum": [
              -1,
              0,
              1
            ],
            "example": ""
          }
        },
        "type": "object"
      },
      "Order": {
        "properties": {
          "deliveryDate": {
            "description": "The date of delivery.",
            "format": "date",
            "example": "2006-02-01"
          },
          "invoiceDate": {
            "description": "The date of the invoice",
            "format": "date",
            "example": "2006-02-01"
          },
          "products": {
            "description": "",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Product"
            }
          }
        },
        "type": "object"
      },
      "Product": {
        "properties": {
          "id": {
            "description": "The product identifier.",
            "type": "string"
          },
          "type": {
            "description": "The type of product.",
            "type": "string",
            "default": "article",
            "enum": [
              "shipping",
              "article",
              "discount",
              "rounding",
              "handling",
              "payment",
              "credit",
              "giftcard",
              "emoney",
              "crypto"
            ]
          },
          "description": {
            "description": "The description of the product.",
            "type": "string"
          },
          "amount": {
            "description": "The amount in cents.",
            "type": "number",
            "format": "float"
          },
          "quantity": {
            "description": "The quantity.",
            "type": "number",
            "format": "float"
          },
          "vatPercentage": {
            "description": "",
            "type": "number",
            "format": "float"
          }
        },
        "type": "object"
      },
      "Auth": {
        "description": "Provide the data that you have received from your 3DS provider to process the transaction 3DSecure. The payment will be processed without 3DSecure if no data is provided.",
        "properties": {
          "dsTransactionId": {
            "description": "The identifier of the 3DS2 authentication session",
            "type": "string",
            "example": "a60ac4c8-a49e-4768-8db6-dff2125d4af9"
          },
          "cryptogram": {
            "description": "Authentication value/cryptogram received from your 3DSecure or Wallet provider",
            "type": "string",
            "example": "AABBCCDDEEFFAABBCCDDEEFFAAA="
          },
          "eci": {
            "description": "ECI (Electronic Commerce Indicator) returned by 3DSecure provider indicating the outcome of authentication attempted.",
            "type": "number",
            "example": "05"
          },
          "status": {
            "description": "3DSecure status returned by the provider indicating the outcome of authentication attempted.",
            "type": "string",
            "example": "Y"
          },
          "version": {
            "description": "Provide the protocol version returned by your 3DSecure provider",
            "type": "string",
            "example": "2.1.0"
          },
          "type": {
            "description": "The type of 3DSecure authentication; eg. `challenged`, `frictionless`, `wallet`",
            "type": "string",
            "enum": [
              "challenged",
              "frictionless",
              "wallet"
            ],
            "example": ""
          },
          "walletProvider": {
            "description": "When processing Wallet payments like Apple Pay or Google Pay the corresponding value must be selected. Submitting Wallet cryptograms without the wallet provider correctly set, can result in declines or non-3ds processed transactions.",
            "type": "string",
            "enum": [
              "applepay",
              "googlepay"
            ],
            "example": ""
          },
          "payTdsTransactionId": {
            "description": "",
            "type": "string",
            "example": "c3abc449-3c1e-4833-9d0a-fc2c42fb600a"
          },
          "payTdsAcquirerId": {
            "description": "",
            "type": "number",
            "example": "178"
          }
        },
        "type": "object"
      },
      "Card": {
        "required": [
          "number",
          "expire_month",
          "expire_year",
          "name"
        ],
        "properties": {
          "number": {
            "description": "The customer's card number",
            "type": "string",
            "example": "4200000000000001"
          },
          "expire_month": {
            "description": "Expire month of the card in MM format (2 digits).",
            "type": "string",
            "example": "02"
          },
          "expire_year": {
            "description": "Year the card expires in YY format (2 digits).",
            "type": "string",
            "example": "06"
          },
          "cvc": {
            "description": "Card verification code / safekey code of the card used",
            "type": "string",
            "example": "111"
          },
          "name": {
            "description": "The name of the customer as printed on his/her card",
            "type": "string",
            "example": "R. van der Werf"
          }
        },
        "type": "object"
      },
      "Cse": {
        "required": [
          "data",
          "identifier"
        ],
        "properties": {
          "data": {
            "description": "The encrypted card details, base64 encoded. See the `card` option for the fields that should be part of the encrypted card data.",
            "type": "string",
            "example": "TG9yZW0lMjBpcHN1bSUyMGRvbG9yJTIwc2l0JTIwYW1ldCwlMjBjb25zZWN0ZXR1ciUyMGFkaXBpc2NpbmclMjBlbGl0Lg=="
          },
          "identifier": {
            "description": "ID of the public key that is used to encrypt the card details.",
            "type": "string",
            "example": "68D761BBE5FF9593EDAE76143846D3D2ABA03143BDEA12761F5E50F7A8D19B8A"
          }
        },
        "type": "object"
      },
      "Token": {
        "required": [
          "id"
        ],
        "properties": {
          "id": {
            "description": "",
            "type": "string",
            "example": "VY-1002-3004-5006"
          }
        },
        "type": "object"
      },
      "PaymentAuthorize": {
        "description": "Afhankelijk van de keuze voor CSE of CARD, kies hier de bijbehorende data",
        "required": [
          "method"
        ],
        "properties": {
          "method": {
            "description": "Defines the method in which the card details are submitted. Choose CSE when submitting the details in `cse` format, `card` when submitting plain card data. Note: the corresponding array must be included in the request.",
            "type": "string",
            "default": "card",
            "enum": [
              "cse",
              "card",
              "token"
            ],
            "example": "card"
          },
          "cse": {
            "$ref": "#/components/schemas/Cse"
          },
          "card": {
            "$ref": "#/components/schemas/Card"
          },
          "token": {
            "$ref": "#/components/schemas/Token"
          },
          "auth": {
            "$ref": "#/components/schemas/Auth"
          }
        },
        "type": "object"
      },
      "Service": {
        "properties": {
          "id": {
            "description": "The service id of your service starting with SL.",
            "type": "string",
            "example": "SL-1234-5678"
          }
        },
        "type": "object"
      },
      "Stats": {
        "properties": {
          "info": {
            "description": "The used info code which can be tracked in the stats.",
            "type": "string",
            "maxLength": 64,
            "minLength": 1
          },
          "tool": {
            "description": "The used tool code which can be tracked in the stats.",
            "type": "string",
            "maxLength": 64,
            "minLength": 1
          },
          "object": {
            "description": "The object which can be tracked in stats.",
            "type": "string",
            "maxLength": 64,
            "minLength": 1
          },
          "extra1": {
            "description": "The first free value which can be tracked in the stats.",
            "type": "string",
            "maxLength": 64,
            "minLength": 1
          },
          "extra2": {
            "description": "The second free value which can be tracked in the stats.",
            "type": "string",
            "maxLength": 64,
            "minLength": 1
          },
          "extra3": {
            "description": "The third free value which can be tracked in the stats.",
            "type": "string",
            "maxLength": 64,
            "minLength": 1
          }
        },
        "type": "object"
      },
      "Transaction": {
        "required": [
          "type",
          "serviceId",
          "amount",
          "ipAddress"
        ],
        "properties": {
          "type": {
            "description": "Defines the type of the transaction. Possible values are: `CIT` = Customer initiated simple e-com transaction, `MIT` = Merchant initiated transaction, `MOTO` = Customer initiated payment where card number entered manually, `POS` = Point of sale, `ECOM` ",
            "type": "string",
            "default": "ECOM",
            "enum": [
              "POS",
              "CIT",
              "MIT",
              "MOTO",
              "ECOM"
            ],
            "example": "CIT"
          },
          "serviceId": {
            "$ref": "#/components/schemas/Service/properties/id"
          },
          "description": {
            "description": "The description of the transaction.",
            "type": "string",
            "maxLength": 32,
            "minLength": 1,
            "example": "Example description."
          },
          "reference": {
            "description": "The merchants reference for the transaction, eg. an order number or invoice id.",
            "type": "string",
            "example": ""
          },
          "amount": {
            "description": "The amount in cents.",
            "type": "integer",
            "minimum": 1,
            "example": 10
          },
          "currency": {
            "description": "The currency in ISO-4217 format, e.g.: EUR, USD, CHF",
            "type": "string",
            "example": "EUR"
          },
          "ipAddress": {
            "description": "An ip address",
            "type": "string",
            "example": "139.130.4.5"
          },
          "language": {
            "description": "The language code consisting of 2 uppercase letters.",
            "type": "string",
            "example": "NL"
          },
          "exchangeUrl": {
            "description": "The URL of the exchange that needs to be called.",
            "type": "string",
            "format": "uri",
            "example": "https://my-website.com/exchange"
          },
          "expireDate": {
            "description": "Timestamp of the date the transaction should expire.",
            "type": "number",
            "example": "1636396628"
          }
        },
        "type": "object"
      },
      "Address": {
        "properties": {
          "streetName": {
            "description": "The name of the street.",
            "type": "string",
            "maxLength": 128,
            "minLength": 1,
            "example": "Fifth Avenue"
          },
          "streetNumber": {
            "description": "The street number.",
            "type": "string",
            "maxLength": 32,
            "minLength": 1,
            "example": "10"
          },
          "streetNumberExtension": {
            "description": "A house number extension is required to deal with apartments or other addresses sharing the same front door.",
            "type": "string",
            "maxLength": 32,
            "minLength": 1,
            "example": "b1"
          },
          "zipCode": {
            "description": "A zip/postal code. see https://en.wikipedia.org/wiki/List_of_postal_codes for a list of formats per country.",
            "type": "string",
            "maxLength": 16,
            "minLength": 1,
            "example": "1234 AB"
          },
          "city": {
            "description": "The name of a city.",
            "type": "string",
            "maxLength": 128,
            "minLength": 1,
            "example": "Amsterdam"
          },
          "regionCode": {
            "description": "Region code (iso-3166-2).",
            "type": "string",
            "example": "NH"
          },
          "countryCode": {
            "description": "The country code consisting of 2 uppercase letters.",
            "type": "string",
            "maxLength": 2,
            "minLength": 2,
            "example": "NL"
          }
        },
        "type": "object"
      },
      "Company": {
        "properties": {
          "name": {
            "description": "Name of the company when processing a business order.",
            "type": "string",
            "example": "Classic Carparts BV"
          },
          "cocNumber": {
            "description": "The Chamber of commerce registration number of the business for which this payment is processed. This format differs per country.",
            "type": "string",
            "example": ""
          },
          "vatNumber": {
            "description": "VAT number of the business for which this payment is processed.",
            "type": "string",
            "example": ""
          }
        },
        "type": "object"
      },
      "Customer": {
        "properties": {
          "reference": {
            "description": "The reference for the customer, eg. a customer ID or account identification number.",
            "type": "string",
            "maxLength": 64,
            "minLength": 1,
            "example": "ACNT.9700182"
          },
          "trust": {
            "description": "Indicates whether you trust the customer, scale -10 -> 10 (10 Reliable, -10 Unreliable).",
            "type": "integer",
            "maximum": 10,
            "minimum": -10,
            "example": 8
          },
          "firstName": {
            "description": "The forename (also known as a given name, Christian name or a first name).",
            "type": "string",
            "maxLength": 32,
            "minLength": 1,
            "example": "Robert"
          },
          "lastName": {
            "description": "The surname (also known as a family name or a last name).",
            "type": "string",
            "maxLength": 64,
            "minLength": 2,
            "example": "Van der Werf"
          },
          "gender": {
            "description": "The subject's gender. Choose either M for male or F for female.",
            "type": "string",
            "enum": [
              "M",
              "F",
              "X"
            ],
            "example": "M"
          },
          "dob": {
            "description": "Date of birth.",
            "type": "string",
            "format": "date",
            "example": "2006-02-01"
          },
          "phoneNumber": {
            "description": "The subject's phone number.",
            "type": "string",
            "example": "088 88 666 22"
          },
          "emailAddress": {
            "description": "An email address.",
            "type": "string",
            "format": "email",
            "example": "example@domain.com"
          },
          "company": {
            "$ref": "#/components/schemas/Company"
          },
          "address": {
            "$ref": "#/components/schemas/Address"
          },
          "invoice": {
            "$ref": "#/components/schemas/Invoice"
          }
        },
        "type": "object"
      },
      "Invoice": {
        "properties": {
          "firstName": {
            "$ref": "#/components/schemas/Customer/properties/firstName"
          },
          "lastName": {
            "$ref": "#/components/schemas/Customer/properties/lastName"
          },
          "gender": {
            "$ref": "#/components/schemas/Customer/properties/gender"
          },
          "company": {
            "$ref": "#/components/schemas/Company"
          },
          "address": {
            "$ref": "#/components/schemas/Address"
          }
        },
        "type": "object"
      }
    },
    "examples": {
      "AuthorizeRequestExampleSimpleCSE": {
        "summary": "Basic CSE example - non 3DSecure",
        "value": {
          "transaction": {
            "type": "cit",
            "serviceId": "SL-1234-5678",
            "description": "Order 2021.0002513",
            "reference": "REF.210709461",
            "amount": 1542,
            "currency": "EUR",
            "ipAddress": "139.130.4.5",
            "language": "EN",
            "exchangeUrl": "https://my-website.com/exchange",
            "expireDate": 1637997211
          },
          "payment": {
            "method": "cse",
            "cse": {
              "identifier": "BEE465225E6E13A7BAFAF7F2AA133063414B96D057E83BA4F5E6C48CDC84B5F5",
              "data": "bk1rgSsujtz/N3AKNHiEyjqdIccJ/E+XtRQyB6SabUKKa27+6KtbJhf1nGc2s4ioEaaqX8w76YHZ+XUaDzgq4/wjkizSqyw7aGvhFnGgDPnS3A0DthbGAwqj/6Bp8I8WpzV29tSBoaZXnGsZOkuFjjm8n0fUFbv5RWz/2zC/Pq0r5HgwP0qHiamI90/2eDFTstyzpr3914NHWWU5R6Yud3oJBS4+14B6mqRSnvDq+zO/NkZzeQ6aRJwJvQ="
            }
          }
        }
      },
      "AuthorizeRequestExampleSimpleCard": {
        "summary": "Basic Card example - non 3DSecure",
        "value": {
          "transaction": {
            "type": "cit",
            "serviceId": "SL-1234-5678",
            "description": "Order 2021.0002513",
            "reference": "REF.210709461",
            "amount": 1542,
            "currency": "EUR",
            "ipAddress": "139.130.4.5",
            "language": "EN",
            "exchangeUrl": "https://my-website.com/exchange",
            "expireDate": 1637997211
          },
          "payment": {
            "method": "card",
            "card": {
              "expire_month": "02",
              "expire_year": "06",
              "cvc": "111",
              "name": "R. van der Werf",
              "number": "4200000000000001"
            }
          }
        }
      },
      "AuthorizeRequestExampleExistingTransactionCardIntegratedThreeDS": {
        "summary": "Basic Card Example - 3DSecure - existing transaction",
        "value": {
          "transaction": {
            "type": "cit",
            "orderId": "1606895211Xcfe87",
            "entranceCode": "af1a538cbb2b1790b989ac0ce31cee6e5c998efb"
          },
          "payment": {
            "method": "card",
            "card": {
              "expire_month": "02",
              "expire_year": "06",
              "cvc": "111",
              "name": "R. van der Werf",
              "number": "4200000000000001"
            },
            "auth": {
              "payTdsTransactionId": "c3abc449-3c1e-4833-9d0a-fc2c42fb600a",
              "payTdsAcquirerId": "178"
            }
          }
        }
      },
      "AuthorizeRequestExampleExistingTransactionCard": {
        "summary": "Basic Card example - non 3DSecure - existing transaction",
        "value": {
          "transaction": {
            "type": "cit",
            "orderId": "1606895211Xcfe87",
            "entranceCode": "af1a538cbb2b1790b989ac0ce31cee6e5c998efb"
          },
          "payment": {
            "method": "card",
            "card": {
              "expire_month": "02",
              "expire_year": "06",
              "cvc": "111",
              "name": "R. van der Werf",
              "number": "4200000000000001"
            }
          }
        }
      },
      "AuthorizeRequestExampleSimpleThirdPartyCard": {
        "summary": "Basic Card example - using 3rd party 3DSecure",
        "value": {
          "transaction": {
            "type": "cit",
            "serviceId": "SL-1234-5678",
            "description": "Order 2021.0002513",
            "reference": "REF.210709461",
            "amount": 1542,
            "currency": "EUR",
            "ipAddress": "139.130.4.5",
            "language": "EN",
            "exchangeUrl": "https://my-website.com/exchange",
            "expireDate": 1637997211
          },
          "payment": {
            "method": "card",
            "card": {
              "expire_month": "02",
              "expire_year": "06",
              "cvc": "111",
              "name": "R. van der Werf",
              "number": "4200000000000001"
            },
            "auth": {
              "dsTransactionId": "c3abc449-3c1e-4833-9d0a-fc2c42fb600a",
              "cryptogram": "TG9yZW0lMjBpcHN1bSUyMGRvbG9=",
              "eci": "05",
              "status": "Y",
              "version": "2.1.0",
              "type": "challenged"
            }
          }
        }
      },
      "AuthorizeRequestExampleSimpleCardWith3DS": {
        "summary": "Basic Card example - using integrated 3DSecure",
        "value": {
          "transaction": {
            "type": "cit",
            "serviceId": "SL-1234-5678",
            "description": "Order 2021.0002513",
            "reference": "REF.210709461",
            "amount": 1542,
            "currency": "EUR",
            "ipAddress": "139.130.4.5",
            "language": "EN",
            "exchangeUrl": "https://my-website.com/exchange",
            "expireDate": 1637997211
          },
          "payment": {
            "method": "card",
            "card": {
              "expire_month": "02",
              "expire_year": "06",
              "cvc": "111",
              "name": "R. van der Werf",
              "number": "4200000000000001"
            },
            "auth": {
              "payTdsTransactionId": "c3abc449-3c1e-4833-9d0a-fc2c42fb600a",
              "payTdsAcquirerId": "178"
            }
          }
        }
      },
      "AuthorizeRequestExampleCard": {
        "summary": "Complete Card example",
        "value": {
          "transaction": {
            "type": "cit",
            "serviceId": "SL-1234-5678",
            "description": "Order 2021.0002513",
            "reference": "REF.210709461",
            "amount": 1542,
            "currency": "EUR",
            "ipAddress": "139.130.4.5",
            "language": "EN",
            "exchangeUrl": "https://pay.nl/exchange",
            "expireDate": 1637997211
          },
          "payment": {
            "method": "card",
            "card": {
              "expire_month": "02",
              "expire_year": "06",
              "cvc": "111",
              "name": "R. van der Werf",
              "number": "4200000000000001"
            },
            "auth": {
              "dsTransactionId": "c3abc449-3c1e-4833-9d0a-fc2c42fb600a",
              "cryptogram": "TG9yZW0lMjBpcHN1bSUyMGRvbG9=",
              "eci": "05",
              "status": "Y",
              "version": "2.1.0",
              "type": "challenged"
            }
          },
          "options": {
            "tokenization": 1
          },
          "customer": {
            "reference": "ACNT.9700182",
            "trust": 7,
            "firstName": "Robert",
            "lastName": "Van der Werf",
            "gender": "M",
            "dob": "2006-02-01",
            "phoneNumber": "0888866622",
            "emailAddress": "r.vanderwerf@pay.nl",
            "company": {
              "name": "Classic Carparts BV",
              "cocNumber": "123456789",
              "vatNumber": "NL012345678B99"
            },
            "address": {
              "streetName": "Kopersteden",
              "streetNumber": "10",
              "streetNumberExtension": "",
              "zipCode": "7547TK",
              "city": "Enschede",
              "regionCode": "OV",
              "countryCode": "NL"
            },
            "invoice": {
              "firstName": "Robert",
              "lastName": "Van der Werf",
              "gender": "M",
              "company": {
                "name": "Classic Carparts BV",
                "cocNumber": "123456789",
                "vatNumber": "NL012345678B99"
              },
              "address": {
                "streetName": "Kopersteden",
                "streetNumber": "10",
                "streetNumberExtension": "",
                "zipCode": "7547TK",
                "city": "Enschede",
                "regionCode": "OV",
                "countryCode": "NL"
              }
            }
          },
          "order": {
            "deliveryDate": "2006-02-01",
            "invoiceDate": "2006-02-01",
            "products": [
              {
                "id": "TEST_01",
                "type": "ARTICLE",
                "description": "Caramels sweet roll",
                "amount": 199,
                "quantity": 2,
                "vatPercentage": 21
              },
              {
                "id": "TEST_02",
                "type": "ARTICLE",
                "description": "Cookie tart sugar",
                "amount": 649,
                "quantity": 1,
                "vatPercentage": 21
              },
              {
                "id": "TEST_03",
                "type": "ARTICLE",
                "description": "Lollipop chocolate bar",
                "amount": 99,
                "quantity": 5,
                "vatPercentage": 21
              }
            ]
          },
          "stats": {
            "extra1": "Customer 6985615",
            "extra2": "Invoice 21.3695",
            "extra3": "Shop Amsterdam",
            "info": "Campagne 99",
            "tool": "Google",
            "object": ""
          }
        }
      },
      "AuthorizeRequestExampleApplePay": {
        "summary": "Apple Pay Transaction",
        "value": {
          "transaction": {
            "type": "cit",
            "serviceId": "SL-1234-5678",
            "description": "Order 2021.0002513",
            "reference": "REF.210709461",
            "amount": 1542,
            "currency": "EUR",
            "ipAddress": "139.130.4.5",
            "language": "EN",
            "exchangeUrl": "https://my-website.com/exchange",
            "expireDate": 1637997211
          },
          "payment": {
            "method": "card",
            "card": {
              "expire_month": "02",
              "expire_year": "06",
              "name": "R. van der Werf",
              "number": "4200000000000001"
            },
            "auth": {
              "cryptogram": "AABBCCDDEEFFAABBCCDDEEFFAAA=",
              "eci": "05",
              "type": "wallet",
              "walletProvider": "applepay"
            }
          }
        }
      },
      "AuthorizeRequestExampleTokenID": {
        "summary": "Basic Token example",
        "value": {
          "transaction": {
            "type": "cit",
            "serviceId": "SL-1234-5678",
            "description": "Order 2021.0002513",
            "reference": "REF.210709461",
            "amount": 1542,
            "currency": "EUR",
            "ipAddress": "139.130.4.5",
            "language": "EN",
            "exchangeUrl": "https://my-website.com/exchange",
            "finishUrl": "https://www.my-website.com/return",
            "expireDate": 1637997211
          },
          "payment": {
            "method": "token",
            "token": {
              "id": "VY-1002-3004-5006"
            }
          }
        }
      },
      "AuthorizeResponseSuccess": {
        "summary": "Authorized - 3DSecure",
        "value": {
          "request": {
            "result": "1",
            "errorId": "",
            "errorTag": "",
            "errorMessage": ""
          },
          "payment": {
            "bankCode": "00",
            "bankMessage": "Authorized (Auth: EHFMRT) (Cvv: M)",
            "approvalCode": "EHFMRT",
            "schemeTransactionId": "MDH6EFR2E",
            "cvcCheck": "M",
            "threeDs": "TRUE",
            "avsResult": ""
          },
          "transaction": {
            "transactionId": "EX-6582-4371-5560",
            "orderId": "1606895211Xcfe87",
            "paymentProfileId": "706",
            "state": "100",
            "stateName": "PAID",
            "amount": {
              "value": 1542,
              "currency": "EUR"
            },
            "created": 1636997211,
            "identifierName": "R. van der Werf",
            "identifierPublic": "420000******0002",
            "identifierHash": "e166966d01c632f6792263acbcc0bbd9d017f3cd6c076519c01b716bcaa8258bcd2f55f8c627c40fd95bb8fde464a0023df71a3e55b74b30100c5f75405c2eaa",
            "startIpAddress": "139.130.4.5",
            "completedIpAddress": "139.130.4.5",
            "orderNumber": "REF.210709461",
            "amountOriginal": {
              "value": 1542,
              "currency": "EUR"
            },
            "amountPaidOriginal": {
              "value": 1542,
              "currency": "EUR"
            },
            "amountPaid": {
              "value": 1542,
              "currency": "EUR"
            },
            "amountRefundOriginal": {
              "value": 0,
              "currency": "EUR"
            },
            "amountRefund": {
              "value": 0,
              "currency": "EUR"
            },
            "entranceCode": "af1a538cbb2b1790b989ac0ce31cee6e5c998efb"
          }
        }
      },
      "AuthorizeResponseSuccessNon3DS": {
        "summary": "Authorized - non 3DSecure",
        "value": {
          "request": {
            "result": "1",
            "errorId": "",
            "errorTag": "",
            "errorMessage": ""
          },
          "payment": {
            "bankCode": "00",
            "bankMessage": "Authorized (Auth: EHFMRT) (Cvv: M)",
            "approvalCode": "EHFMRT",
            "schemeTransactionId": "MDH6EFR2E",
            "cvcCheck": "M",
            "threeDs": "FALSE",
            "avsResult": ""
          },
          "transaction": {
            "transactionId": "EX-6582-4371-5560",
            "orderId": "1606895211Xcfe87",
            "paymentProfileId": "706",
            "state": "100",
            "stateName": "PAID",
            "amount": {
              "value": 1542,
              "currency": "EUR"
            },
            "created": 1636997211,
            "identifierName": "R. van der Werf",
            "identifierPublic": "420000******0002",
            "identifierHash": "e166966d01c632f6792263acbcc0bbd9d017f3cd6c076519c01b716bcaa8258bcd2f55f8c627c40fd95bb8fde464a0023df71a3e55b74b30100c5f75405c2eaa",
            "startIpAddress": "139.130.4.5",
            "completedIpAddress": "139.130.4.5",
            "orderNumber": "REF.210709461",
            "amountOriginal": {
              "value": 1542,
              "currency": "EUR"
            },
            "amountPaidOriginal": {
              "value": 1542,
              "currency": "EUR"
            },
            "amountPaid": {
              "value": 1542,
              "currency": "EUR"
            },
            "amountRefundOriginal": {
              "value": 0,
              "currency": "EUR"
            },
            "amountRefund": {
              "value": 0,
              "currency": "EUR"
            },
            "entranceCode": "af1a538cbb2b1790b989ac0ce31cee6e5c998efb"
          }
        }
      },
      "InvalidCardNumber": {
        "summary": "ERROR - Invalid card data",
        "value": {
          "request": {
            "result": "0",
            "errorId": "PAY-2804",
            "errorTag": "invalidCardNumber",
            "errorMessage": "Invalid card number provided"
          }
        }
      },
      "DoNotHonour": {
        "summary": "ERROR - Do not honour",
        "value": {
          "request": {
            "result": "0",
            "errorId": "PAY-3205",
            "errorTag": "referToCardIssuer",
            "errorMessage": "It is not possible to process your payment at this time. Consult your bank or card issuer for more information."
          },
          "payment": {
            "bankCode": "05",
            "bankMessage": "Do not honour",
            "approvalCode": "",
            "schemeTransactionId": "",
            "cvcCheck": "",
            "threeDs": "",
            "avsResult": ""
          },
          "transaction": {
            "transactionId": "EX-0000-0000-0000",
            "orderId": "1000000000Xabcde",
            "paymentProfileId": "706",
            "state": "20",
            "stateName": "PENDING",
            "amount": {
              "value": "1235",
              "currency": "EUR"
            },
            "created": "1656426569",
            "identifierName": "",
            "identifierPublic": "500000******0002",
            "identifierHash": "",
            "startIpAddress": "",
            "completedIpAddress": "",
            "orderNumber": "",
            "amountOriginal": {
              "value": "1235",
              "currency": "EUR"
            },
            "amountPaidOriginal": {
              "value": "0",
              "currency": "EUR"
            },
            "amountPaid": {
              "value": "0",
              "currency": "EUR"
            },
            "amountRefundOriginal": {
              "value": "0",
              "currency": "EUR"
            },
            "amountRefund": {
              "value": "0",
              "currency": "EUR"
            },
            "entranceCode": "abcdef1234567890abcdef1234567890abcdef12"
          }
        }
      },
      "InsufficientFunds": {
        "summary": "ERROR - Insufficient funds",
        "value": {
          "request": {
            "result": "0",
            "errorId": "PAY-3209",
            "errorTag": "notSufficientFunds",
            "errorMessage": "You have insufficient funds to complete this transaction."
          },
          "payment": {
            "bankCode": "61",
            "bankMessage": "Exceeds withdrawal amount limit",
            "approvalCode": "",
            "schemeTransactionId": "",
            "cvcCheck": "",
            "threeDs": "",
            "avsResult": ""
          },
          "transaction": {
            "transactionId": "EX-0000-0000-0000",
            "orderId": "1000000000Xabcde",
            "paymentProfileId": "706",
            "state": "20",
            "stateName": "PENDING",
            "amount": {
              "value": "1235",
              "currency": "EUR"
            },
            "created": "1656426569",
            "identifierName": "",
            "identifierPublic": "500000******0002",
            "identifierHash": "",
            "startIpAddress": "",
            "completedIpAddress": "",
            "orderNumber": "",
            "amountOriginal": {
              "value": "1235",
              "currency": "EUR"
            },
            "amountPaidOriginal": {
              "value": "0",
              "currency": "EUR"
            },
            "amountPaid": {
              "value": "0",
              "currency": "EUR"
            },
            "amountRefundOriginal": {
              "value": "0",
              "currency": "EUR"
            },
            "amountRefund": {
              "value": "0",
              "currency": "EUR"
            },
            "entranceCode": "abcdef1234567890abcdef1234567890abcdef12"
          }
        }
      },
      "InvalidCardToken": {
        "summary": "ERROR - Invalid card token",
        "value": {
          "request": {
            "result": "0",
            "errorId": "PAY-3603",
            "errorTag": "cardNotFound",
            "errorMessage": "Could not load card details"
          }
        }
      },
      "InvalidAmount": {
        "summary": "ERROR - Amount cannot be negative",
        "value": {
          "request": {
            "result": "0",
            "errorId": "PAY-2011",
            "errorTag": "invalidRequest",
            "errorMessage": "Invalid request; amount is missing in payload or value is not accepted. Amount must be a positive integer."
          }
        }
      }
    },
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "tags": [
    {
      "name": "Card Payments"
    }
  ],
  "externalDocs": {
    "description": "Official PAY. documentation",
    "url": "https://docs.pay.nl"
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```