---
updatedAt: 2026-06-08T11:05:39.000Z
agentTools:
  projectIndex: https://developer.pay.nl/llms.txt
---

# Authorisation:Capture

Transactions that have the status authorize (is used by credit card payments or Buy now, Pay later payments) needs an extra action to convert the payment state to a PAID (100) transaction. This can be achieved by capturing the transaction. You can use the EX code or the order Id to capture the transaction

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "PAY. Global Management System API's",
    "description": "A restful journey to your payments.",
    "termsOfService": "https://www.pay.nl/en/terms-conditions",
    "contact": {
      "email": "support@pay.nl"
    },
    "version": "v2.0"
  },
  "servers": [
    {
      "url": "https://rest.pay.nl/v2",
      "description": "PAY. API server"
    }
  ],
  "paths": {
    "/transactions/{transactionId}/capture": {
      "patch": {
        "tags": [
          "Transactions"
        ],
        "summary": "Authorisation:Capture",
        "description": "Transactions that have the status authorize (is used by credit card payments or Buy now, Pay later payments) needs an extra action to convert the payment state to a PAID (100) transaction. This can be achieved by capturing the transaction. You can use the EX code or the order Id to capture the transaction",
        "parameters": [
          {
            "name": "transactionId",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Transaction/properties/id"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "amount": {
                    "$ref": "#/components/schemas/Amount/properties/value"
                  },
                  "products": {
                    "type": "object",
                    "example": {
                      "TEST_01": 1
                    },
                    "additionalProperties": {
                      "description": "Key is the ID of the product, value is the quantity",
                      "type": "integer"
                    }
                  }
                },
                "type": "object"
              },
              "examples": {
                "amountCapture": {
                  "$ref": "#/components/examples/TransactionCaptureAmountPayload"
                },
                "productCapture": {
                  "$ref": "#/components/examples/TransactionCaptureProductPayload"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Ok.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransactionStatus"
                },
                "examples": {
                  "success": {
                    "$ref": "#/components/examples/TransactionCaptureResponse200Successful"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "405": {
            "$ref": "#/components/responses/MethodNotAllowed"
          },
          "406": {
            "$ref": "#/components/responses/NotAcceptable"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/RateLimiting"
          },
          "500": {
            "description": "An internal error occurred"
          }
        },
        "security": [
          {
            "basicAuth": []
          },
          {
            "bearerAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "Amount": {
        "required": [
          "value"
        ],
        "properties": {
          "value": {
            "description": "The amount in cents.",
            "type": "integer",
            "minimum": 1,
            "example": 10
          },
          "currency": {
            "description": "The currency in ISO-4217 format.",
            "type": "string",
            "example": "EUR"
          }
        },
        "type": "object"
      },
      "Integration": {
        "properties": {
          "testMode": {
            "description": "Indicates if the service is in testmode or not, possible values: false or true",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "Status": {
        "properties": {
          "code": {
            "description": "The status code.",
            "type": "integer"
          },
          "action": {
            "description": "The state in which the transaction resides",
            "type": "string",
            "example": "PAID"
          },
          "phase": {
            "description": "The current phase in the transaction state",
            "type": "string",
            "example": "APPROVED"
          }
        },
        "type": "object"
      },
      "TransactionStatus": {
        "properties": {
          "id": {
            "description": "The Id of the transaction.",
            "type": "string"
          },
          "orderId": {
            "description": "The orderId of the transaction.",
            "type": "string"
          },
          "serviceCode": {
            "description": "The ID of your service. You can find the service ID in the portal.",
            "type": "string"
          },
          "description": {
            "description": "Is shown on the statement of the payer.",
            "type": "string"
          },
          "reference": {
            "description": "The merchant identification of this transaction. This field only allows alphanumeric characters",
            "type": "string"
          },
          "ipAddress": {
            "description": "An ip address",
            "type": "string"
          },
          "amount": {
            "$ref": "#/components/schemas/Amount"
          },
          "amountConverted": {
            "$ref": "#/components/schemas/Amount"
          },
          "amountPaid": {
            "$ref": "#/components/schemas/Amount"
          },
          "amountRefunded": {
            "$ref": "#/components/schemas/Amount"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          },
          "paymentData": {
            "$ref": "#/components/schemas/TransactionStatusPaymentData"
          },
          "paymentMethod": {
            "$ref": "#/components/schemas/TransactionStatusPaymentMethod"
          },
          "integration": {
            "$ref": "#/components/schemas/Integration"
          },
          "expiredAt": {
            "description": "Expire date in the correct ISO-8601 (a.k.a. ATOM) notation.",
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "nullable": true
          },
          "createdAt": {
            "$ref": "#/components/schemas/Universal/properties/createdAt"
          },
          "createdBy": {
            "$ref": "#/components/schemas/Universal/properties/createdBy"
          },
          "modifiedAt": {
            "$ref": "#/components/schemas/Universal/properties/modifiedAt"
          },
          "modifiedBy": {
            "$ref": "#/components/schemas/Universal/properties/modifiedBy"
          },
          "deletedAt": {
            "$ref": "#/components/schemas/Universal/properties/deletedAt"
          },
          "deletedBy": {
            "$ref": "#/components/schemas/Universal/properties/deletedBy"
          }
        },
        "type": "object"
      },
      "TransactionStatusPaymentData": {
        "properties": {
          "method": {
            "description": "Payment method of the transaction.",
            "type": "string"
          },
          "customerKey": {
            "description": "Customer key of the customer from the transaction.",
            "type": "string"
          },
          "customerId": {
            "description": "Customer id of the customer from the transaction.",
            "type": "string"
          },
          "customerName": {
            "description": "Customer name of the customer from the transaction.",
            "type": "string"
          },
          "ipAddress": {
            "description": "Ip address of the customer from the transaction.",
            "type": "string"
          },
          "secureStatus": {
            "description": "Secure status of the transaction.",
            "type": "boolean"
          },
          "paymentVerificationMethod": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "TransactionStatusPaymentMethod": {
        "properties": {
          "id": {
            "description": "The ID of the payment option e.g. iDEAL is 10. See: services/get/sl-xxxx-xxx.",
            "type": "integer"
          },
          "subId": {
            "description": "The chosen sub ID of the payment option e.g. The bank id for iDEAL. See: services/get/sl-xxxx-xxx.",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "Universal": {
        "properties": {
          "translations": {
            "description": "Object containing all the translations with the property name in which the corresponds with a property on the object itself.",
            "type": "object",
            "uniqueItems": true,
            "example": "\n    \"translations\": {\n      \"name\": {\n        ...\n      },\n      \"description\": {\n        ...\n      }\n    }\n",
            "nullable": true,
            "additionalProperties": {
              "type": "object",
              "additionalProperties": {
                "type": "string"
              }
            }
          },
          "requiredFields": {
            "description": "The required fields of the payment method.",
            "type": "array",
            "items": {
              "properties": {
                "fieldName": {
                  "type": "string"
                },
                "mandatory": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "createdAt": {
            "description": "The creation date time presented in the correct ISO-8601 (a.k.a. ATOM) notation",
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "example": "2016-06-04T08:15:00+01:00",
            "nullable": false
          },
          "createdBy": {
            "description": "The reference to an account or token whom created the entity",
            "type": "string",
            "pattern": "^A(T)?(-\\d{4}){2}$",
            "readOnly": true,
            "example": "A-1234-4321",
            "nullable": false
          },
          "modifiedAt": {
            "description": "The modification date time presented in the correct ISO-8601 (a.k.a. ATOM) notation",
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "example": "2016-06-04T08:15:00+01:00",
            "nullable": true
          },
          "modifiedBy": {
            "description": "The reference to an account or token whom modified the entity",
            "type": "string",
            "pattern": "^A(T)?(-\\d{4}){2}$",
            "readOnly": true,
            "example": "A-1234-4321",
            "nullable": true
          },
          "deletedAt": {
            "description": "The deletion date time presented in the correct ISO-8601 (a.k.a. ATOM) notation. Can be empty (null)",
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "example": "2016-06-04T08:15:00+01:00",
            "nullable": true
          },
          "deletedBy": {
            "description": "The reference to an account or token whom deleted the entity",
            "type": "string",
            "pattern": "^A(T)?(-\\d{4}){2}$",
            "readOnly": true,
            "example": "A-1234-4321",
            "nullable": true
          }
        },
        "type": "object"
      },
      "Error": {
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "violations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Violation"
            }
          }
        },
        "type": "object"
      },
      "Transaction": {
        "required": [
          "serviceId",
          "amount",
          "returnUrl"
        ],
        "properties": {
          "id": {
            "description": "The Id of the transaction.",
            "type": "string",
            "example": "EX-1234-1234-1234"
          },
          "serviceId": {
            "$ref": "#/components/schemas/Service/properties/id"
          },
          "description": {
            "description": "Is shown on the statement of the payer.",
            "type": "string",
            "maxLength": 32,
            "minLength": 1,
            "example": "Example description."
          },
          "reference": {
            "description": "The merchant identification of this transaction. This field only allows alphanumeric characters",
            "type": "string",
            "maxLength": 64,
            "minLength": 1,
            "pattern": "^[a-zA-Z0-9]{1,64}$",
            "example": "12345XXY0123"
          },
          "manualTransferCode": {
            "description": "Payment reference used to identify manual bank transfers",
            "type": "string",
            "example": "0000 0000 0000 0000"
          },
          "orderId": {
            "description": "The orderId of the transaction.",
            "type": "string",
            "example": "0000000000X00000"
          },
          "ipAddress": {
            "description": "An ip address",
            "type": "string",
            "example": "213.126.82.230"
          },
          "exchangeUrl": {
            "description": "The URL where we exchange the status of a transaction.",
            "type": "string",
            "format": "uri",
            "example": "https://demo.pay.nl/exchange.php"
          },
          "returnUrl": {
            "description": "The URL where the payer has to be send to after the payment.",
            "type": "string",
            "format": "uri",
            "example": "https://demo.pay.nl/complete/"
          },
          "paymentUrl": {
            "description": "The payment URL for this transaction",
            "type": "string",
            "format": "uri"
          },
          "amount": {
            "$ref": "#/components/schemas/Amount"
          },
          "expire": {
            "description": "Expire date in the correct ISO-8601 (a.k.a. ATOM) notation.",
            "type": "string",
            "format": "date-time",
            "example": "2016-06-04T08:15:00+01:00"
          },
          "created": {
            "description": "The date at which this entity was created presented in the correct ISO-8601 (a.k.a. ATOM) notation.",
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "example": "2016-06-04T08:15:00+01:00"
          },
          "modified": {
            "description": "The date at which this entity was modified presented in the correct ISO-8601 (a.k.a. ATOM) notation.",
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "example": "2016-06-04T08:15:00+01:00"
          },
          "amountConverted": {
            "$ref": "#/components/schemas/Amount"
          },
          "amountPaid": {
            "$ref": "#/components/schemas/Amount"
          },
          "amountRefunded": {
            "$ref": "#/components/schemas/Amount"
          },
          "paymentMethod": {
            "$ref": "#/components/schemas/PaymentMethod"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          },
          "integration": {
            "$ref": "#/components/schemas/Integration"
          },
          "customer": {
            "$ref": "#/components/schemas/Customer"
          },
          "order": {
            "$ref": "#/components/schemas/Order"
          },
          "stats": {
            "$ref": "#/components/schemas/Stats"
          },
          "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",
            "enum": [
              "POS",
              "ECOM",
              "CIT",
              "MIT",
              "MOTO"
            ]
          },
          "transferData": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TransferData"
            },
            "xml": {
              "name": "transferData",
              "wrapped": true
            }
          }
        },
        "type": "object",
        "xml": {
          "name": "transaction"
        }
      },
      "Violation": {
        "properties": {
          "propertyPath": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "code": {
            "type": "string"
          }
        },
        "type": "object"
      }
    },
    "responses": {
      "BadRequest": {
        "description": "Bad request, see response body for more information",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Unauthorized": {
        "description": "Unauthorized. Supplied credentials are invalid"
      },
      "Forbidden": {
        "description": "Forbidden. Supplied credentials have no rights"
      },
      "NotFound": {
        "description": "Not found"
      },
      "MethodNotAllowed": {
        "description": "Used HTTP method is not allowed"
      },
      "NotAcceptable": {
        "description": "Not acceptable. The supplied content type in the accept parameter in the header is not supported"
      },
      "Unprocessable": {
        "description": "Unprocessable entity, see response body for more information",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "examples": {
              "error": {
                "summary": "Unprocessable",
                "value": {
                  "type": "https://developer.pay.nl/docs/error-codes",
                  "title": "An error occurred",
                  "detail": "Unable to complete request",
                  "violations": [
                    {
                      "propertyPath": null,
                      "message": "Unable to complete request",
                      "code": "PAY-3000"
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "RateLimiting": {
        "description": "Rate limit reached."
      }
    },
    "examples": {
      "TransactionCaptureResponse200Successful": {
        "summary": "Transaction capture",
        "value": {
          "id": "EX-0171-7899-4460",
          "orderId": "1234567891X33ce1",
          "serviceCode": "SL-4878-2340",
          "description": "Example description",
          "reference": "12345XXY0123",
          "ipAddress": "86.83.126.161",
          "amount": {
            "value": 10,
            "currency": "EUR"
          },
          "amountConverted": {
            "value": 10,
            "currency": "EUR"
          },
          "amountPaid": {
            "value": 0,
            "currency": "EUR"
          },
          "amountRefunded": {
            "value": 0,
            "currency": "EUR"
          },
          "status": {
            "code": 100,
            "action": "PAID",
            "phase": "SUCCESS"
          },
          "paymentData": {
            "method": "iban",
            "customerKey": "07e384a630c97ef7e1f1fb8b2edbf8ac",
            "customerId": "NL91ABNA0417164300",
            "customerName": "John Doe",
            "ipAddress": "127.0.0.1",
            "secureStatus": false
          },
          "paymentMethod": {
            "id": 10,
            "subId": 3
          },
          "integration": {
            "testMode": false
          },
          "expiresAt": "2021-09-04T12:14:01+02:00",
          "createdAt": "2021-09-04T12:14:01+02:00",
          "createdBy": "AT-0073-4553",
          "modifiedAt": null,
          "modifiedBy": null,
          "deletedAt": null,
          "deletedBy": null,
          "_links": [
            {
              "href": "/transactions/EX-0171-7899-4460/capture",
              "rel": "self",
              "type": "PATCH"
            },
            {
              "href": "/transactions/EX-0171-7899-4460",
              "rel": "details",
              "type": "GET"
            }
          ]
        }
      },
      "TransactionCaptureAmountPayload": {
        "summary": "Capture based on an amount",
        "value": {
          "amount": 10
        }
      },
      "TransactionCaptureProductPayload": {
        "summary": "Capture based on a product",
        "value": {
          "products": {
            "TEST_01": 1
          }
        }
      }
    },
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      },
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "tags": [
    {
      "name": "Transactions",
      "description": ""
    }
  ],
  "externalDocs": {
    "description": "Official PAY. documentation",
    "url": "https://docs.pay.nl"
  }
}
```