{"item":[{"name":"Orders","description":"An order is what your customer pays for. Each payment attempt is a transaction of the order.","item":[{"id":"1730da1e-d5a8-4b35-99bf-50a7ef0db0a1","name":"Create an order","request":{"name":"Create an order","description":{"content":"Creates an order with the amount your customer pays.\n\n- Without `transactions`, redirect your customer to the `order_url`. The [hosted payment page](https://docs.pay.paytrim.com/hosted-payment-page) shows every payment method that's active in your project.\n- With one transaction, you pick the payment method yourself. Redirect your customer to the `payment_url` of the transaction.\n\nA `2xx` response doesn't mean that your customer has paid. Check the `status` of the order, see [Order and transaction status](https://docs.pay.paytrim.com/order-status).\n","type":"text/plain"},"url":{"path":["v1","orders",""],"host":["{{baseUrl}}"],"query":[],"variable":[]},"header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"currency\": \"EUR\",\n  \"amount\": 995,\n  \"merchant_order_id\": \"EXAMPLE001\",\n  \"description\": \"Example order\",\n  \"return_url\": \"https://www.example.com/order/EXAMPLE001\",\n  \"webhook_url\": \"https://www.example.com/webhook\",\n  \"customer\": {\n    \"merchant_customer_id\": \"123456789\",\n    \"email_address\": \"user@example.com\",\n    \"first_name\": \"John\",\n    \"last_name\": \"Smith\",\n    \"address_type\": \"billing\",\n    \"address\": \"100 Main Street\",\n    \"postal_code\": \"SW1A 1AA\",\n    \"city\": \"London\",\n    \"country\": \"GB\",\n    \"locale\": \"en-GB\",\n    \"phone_numbers\": [\n      \"+441234566788\"\n    ],\n    \"ip_address\": \"192.0.2.1\"\n  }\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"auth":null},"response":[{"id":"cbff10fa-2a60-4c47-9ebc-a44d058de2f4","name":"The order has been created.","originalRequest":{"url":{"path":["v1","orders",""],"host":["{{baseUrl}}"],"query":[],"variable":[]},"header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"currency\": \"EUR\",\n  \"amount\": 995,\n  \"merchant_order_id\": \"EXAMPLE001\",\n  \"description\": \"Example order\",\n  \"return_url\": \"https://www.example.com/order/EXAMPLE001\",\n  \"webhook_url\": \"https://www.example.com/webhook\",\n  \"customer\": {\n    \"merchant_customer_id\": \"123456789\",\n    \"email_address\": \"user@example.com\",\n    \"first_name\": \"John\",\n    \"last_name\": \"Smith\",\n    \"address_type\": \"billing\",\n    \"address\": \"100 Main Street\",\n    \"postal_code\": \"SW1A 1AA\",\n    \"city\": \"London\",\n    \"country\": \"GB\",\n    \"locale\": \"en-GB\",\n    \"phone_numbers\": [\n      \"+441234566788\"\n    ],\n    \"ip_address\": \"192.0.2.1\"\n  }\n}","options":{"raw":{"headerFamily":"json","language":"json"}}}},"status":"Created","code":201,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"id\": \"23cd147d-cd2b-4df6-ae50-199de346ded1\",\n  \"project_id\": \"05ad138f-52fa-40dc-9751-5fde949dcb57\",\n  \"merchant_id\": \"b251b220-5d8b-4b9d-9915-b89676dc0948\",\n  \"merchant_order_id\": \"EXAMPLE001\",\n  \"created\": \"2026-10-12T10:43:13.905092+00:00\",\n  \"modified\": \"2026-10-12T10:43:13.905092+00:00\",\n  \"currency\": \"EUR\",\n  \"amount\": 995,\n  \"description\": \"Example card order\",\n  \"status\": \"new\",\n  \"flags\": [\n    \"is-test\"\n  ],\n  \"expiration_period\": \"PT1H\",\n  \"order_url\": \"https://api.pay.paytrim.com/pay/23cd147d-cd2b-4df6-ae50-199de346ded1/select-payment-method/\",\n  \"return_url\": \"https://www.example.com/order/EXAMPLE001\",\n  \"webhook_url\": \"https://www.example.com/webhook\",\n  \"transactions\": [\n    {\n      \"id\": \"12774973-2ff1-49f5-926c-b5dc471ee96b\",\n      \"order_id\": \"23cd147d-cd2b-4df6-ae50-199de346ded1\",\n      \"created\": \"2026-10-12T10:43:13.905092+00:00\",\n      \"currency\": \"EUR\",\n      \"amount\": 995,\n      \"credit_debit\": \"credit\",\n      \"expiration_period\": \"PT30M\",\n      \"is_capturable\": false,\n      \"payment_method\": \"credit-card\",\n      \"payment_method_details\": {\n        \"setup_token\": \"87f05a5d-1755-48c7-8161-f8a9544e56bf\"\n      },\n      \"payment_url\": \"https://api.pay.paytrim.com/pay/23cd147d-cd2b-4df6-ae50-199de346ded1/select-payment-method/credit-card/12774973-2ff1-49f5-926c-b5dc471ee96b/\",\n      \"status\": \"new\"\n    }\n  ],\n  \"customer\": {\n    \"merchant_customer_id\": \"123456789\",\n    \"email_address\": \"user@example.com\",\n    \"first_name\": \"John\",\n    \"last_name\": \"Smith\",\n    \"address_type\": \"billing\",\n    \"address\": \"100 Main Street\",\n    \"postal_code\": \"SW1A 1AA\",\n    \"city\": \"London\",\n    \"country\": \"GB\",\n    \"locale\": \"en-GB\",\n    \"phone_numbers\": [\n      \"+441234566788\"\n    ],\n    \"ip_address\": \"192.0.2.1\"\n  }\n}","cookie":[],"_postman_previewlanguage":"json"},{"id":"e7c25045-55c2-4288-9a9d-889ef5555a16","name":"The request is invalid, for example because a field is missing or has an invalid value.","originalRequest":{"url":{"path":["v1","orders",""],"host":["{{baseUrl}}"],"query":[],"variable":[]},"header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"currency\": \"EUR\",\n  \"amount\": 995,\n  \"merchant_order_id\": \"EXAMPLE001\",\n  \"description\": \"Example order\",\n  \"return_url\": \"https://www.example.com/order/EXAMPLE001\",\n  \"webhook_url\": \"https://www.example.com/webhook\",\n  \"customer\": {\n    \"merchant_customer_id\": \"123456789\",\n    \"email_address\": \"user@example.com\",\n    \"first_name\": \"John\",\n    \"last_name\": \"Smith\",\n    \"address_type\": \"billing\",\n    \"address\": \"100 Main Street\",\n    \"postal_code\": \"SW1A 1AA\",\n    \"city\": \"London\",\n    \"country\": \"GB\",\n    \"locale\": \"en-GB\",\n    \"phone_numbers\": [\n      \"+441234566788\"\n    ],\n    \"ip_address\": \"192.0.2.1\"\n  }\n}","options":{"raw":{"headerFamily":"json","language":"json"}}}},"status":"Bad Request","code":400,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"error\": {\n    \"status\": 400,\n    \"type\": \"ValidationError\",\n    \"value\": \"'amount' is a required property\",\n    \"property_path\": \"amount\"\n  }\n}","cookie":[],"_postman_previewlanguage":"json"},{"id":"354cc7f1-4ce1-46db-b2d8-e5b2f15aa3ce","name":"Authentication failed or is missing. Check your API key.","originalRequest":{"url":{"path":["v1","orders",""],"host":["{{baseUrl}}"],"query":[],"variable":[]},"header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"currency\": \"EUR\",\n  \"amount\": 995,\n  \"merchant_order_id\": \"EXAMPLE001\",\n  \"description\": \"Example order\",\n  \"return_url\": \"https://www.example.com/order/EXAMPLE001\",\n  \"webhook_url\": \"https://www.example.com/webhook\",\n  \"customer\": {\n    \"merchant_customer_id\": \"123456789\",\n    \"email_address\": \"user@example.com\",\n    \"first_name\": \"John\",\n    \"last_name\": \"Smith\",\n    \"address_type\": \"billing\",\n    \"address\": \"100 Main Street\",\n    \"postal_code\": \"SW1A 1AA\",\n    \"city\": \"London\",\n    \"country\": \"GB\",\n    \"locale\": \"en-GB\",\n    \"phone_numbers\": [\n      \"+441234566788\"\n    ],\n    \"ip_address\": \"192.0.2.1\"\n  }\n}","options":{"raw":{"headerFamily":"json","language":"json"}}}},"status":"Unauthorized","code":401,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"error\": {\n    \"status\": 401,\n    \"type\": \"Unauthorized\",\n    \"value\": \"Unauthorized\"\n  }\n}","cookie":[],"_postman_previewlanguage":"json"},{"id":"d90fd19f-0907-49fc-a7d7-b28bd34a0c41","name":"Your project doesn't have permission for this action, for example because the payment method isn't active.","originalRequest":{"url":{"path":["v1","orders",""],"host":["{{baseUrl}}"],"query":[],"variable":[]},"header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"currency\": \"EUR\",\n  \"amount\": 995,\n  \"merchant_order_id\": \"EXAMPLE001\",\n  \"description\": \"Example order\",\n  \"return_url\": \"https://www.example.com/order/EXAMPLE001\",\n  \"webhook_url\": \"https://www.example.com/webhook\",\n  \"customer\": {\n    \"merchant_customer_id\": \"123456789\",\n    \"email_address\": \"user@example.com\",\n    \"first_name\": \"John\",\n    \"last_name\": \"Smith\",\n    \"address_type\": \"billing\",\n    \"address\": \"100 Main Street\",\n    \"postal_code\": \"SW1A 1AA\",\n    \"city\": \"London\",\n    \"country\": \"GB\",\n    \"locale\": \"en-GB\",\n    \"phone_numbers\": [\n      \"+441234566788\"\n    ],\n    \"ip_address\": \"192.0.2.1\"\n  }\n}","options":{"raw":{"headerFamily":"json","language":"json"}}}},"status":"Forbidden","code":403,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"error\": {\n    \"status\": 7501,\n    \"type\": \"string\",\n    \"value\": \"string\",\n    \"property_path\": \"string\",\n    \"property_description\": \"string\"\n  }\n}","cookie":[],"_postman_previewlanguage":"json"}],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["if (pm.response.code < 300) {","  const order = pm.response.json();","  pm.collectionVariables.set('order_id', order.id);","  if (order.transactions && order.transactions.length > 0) {","    // The latest payment attempt: the transaction created last.","    const latest = order.transactions.reduce((a, b) => (Date.parse(b.created) >= Date.parse(a.created) ? b : a));","    pm.collectionVariables.set('transaction_id', latest.id);","  }","}"]}}],"protocolProfileBehavior":{"disableBodyPruning":true}},{"id":"07326e92-e210-460a-a7d8-e0f84e95030b","name":"Get an order","request":{"name":"Get an order","description":{"content":"Retrieves an order with all of its transactions. Retrieve the order when your customer returns to your `return_url`, when you receive a [webhook](https://docs.pay.paytrim.com/confirm-the-payment#webhooks), and periodically for orders that aren't final yet.\n\nSee [Order and transaction status](https://docs.pay.paytrim.com/order-status) for which status to check.\n","type":"text/plain"},"url":{"path":["v1","orders",":order_id",""],"host":["{{baseUrl}}"],"query":[],"variable":[{"type":"any","value":"{{order_id}}","key":"order_id","disabled":false,"description":{"content":"(Required) The `id` of the order.","type":"text/plain"}}]},"header":[{"key":"Accept","value":"application/json"}],"method":"GET","body":{},"auth":null},"response":[{"id":"9fea3ff5-34b7-404f-a3fe-e502489c42d6","name":"The order.","originalRequest":{"url":{"path":["v1","orders",":order_id",""],"host":["{{baseUrl}}"],"query":[],"variable":[{"disabled":false,"description":{"content":"(Required) The `id` of the order.","type":"text/plain"},"type":"any","value":"8078d78f-8700-4cfe-94b1-4a777d3400f2","key":"order_id"}]},"header":[{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"GET","body":{}},"status":"OK","code":200,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"id\": \"23cd147d-cd2b-4df6-ae50-199de346ded1\",\n  \"project_id\": \"05ad138f-52fa-40dc-9751-5fde949dcb57\",\n  \"merchant_id\": \"b251b220-5d8b-4b9d-9915-b89676dc0948\",\n  \"merchant_order_id\": \"EXAMPLE001\",\n  \"created\": \"2026-10-12T10:43:13.905092+00:00\",\n  \"modified\": \"2026-10-12T10:44:02.357623+00:00\",\n  \"completed\": \"2026-10-12T10:44:02.357623+00:00\",\n  \"last_transaction_added\": \"2026-10-12T10:43:13.905092+00:00\",\n  \"currency\": \"EUR\",\n  \"amount\": 995,\n  \"description\": \"Example card order\",\n  \"status\": \"completed\",\n  \"flags\": [\n    \"is-test\"\n  ],\n  \"expiration_period\": \"PT1H\",\n  \"return_url\": \"https://www.example.com/order/EXAMPLE001\",\n  \"webhook_url\": \"https://www.example.com/webhook\",\n  \"transactions\": [\n    {\n      \"id\": \"12774973-2ff1-49f5-926c-b5dc471ee96b\",\n      \"order_id\": \"23cd147d-cd2b-4df6-ae50-199de346ded1\",\n      \"project_id\": \"05ad138f-52fa-40dc-9751-5fde949dcb57\",\n      \"merchant_id\": \"b251b220-5d8b-4b9d-9915-b89676dc0948\",\n      \"created\": \"2026-10-12T10:43:13.905092+00:00\",\n      \"modified\": \"2026-10-12T10:44:02.341870+00:00\",\n      \"completed\": \"2026-10-12T10:44:02.341870+00:00\",\n      \"currency\": \"EUR\",\n      \"amount\": 995,\n      \"credit_debit\": \"credit\",\n      \"expiration_period\": \"PT30M\",\n      \"is_capturable\": false,\n      \"payment_method\": \"credit-card\",\n      \"payment_method_brand\": \"visa\",\n      \"payment_method_details\": {\n        \"truncated_pan\": \"414141******4141\",\n        \"card_expiry\": \"012030\",\n        \"cardholder_name\": \"John Smith\",\n        \"vault_token\": \"e3ed069e-c931-40ae-8035-e022e8a4e5e7\"\n      },\n      \"events\": [\n        {\n          \"event\": \"new\",\n          \"id\": \"3cb2259b-a3f9-4908-bb98-eb51c773fc70\",\n          \"occurred\": \"2026-10-12T10:43:13.905092+00:00\",\n          \"noticed\": \"2026-10-12T10:43:13.918112+00:00\",\n          \"source\": \"set_status\"\n        },\n        {\n          \"event\": \"accepted\",\n          \"id\": \"7d6f0e4c-2f69-4d4b-9a51-58a3b8a2f0c1\",\n          \"occurred\": \"2026-10-12T10:44:02.341870+00:00\",\n          \"noticed\": \"2026-10-12T10:44:02.350211+00:00\",\n          \"source\": \"set_status\"\n        }\n      ],\n      \"outcomes\": {\n        \"processing\": {\n          \"status\": \"accepted\",\n          \"response_code\": \"00\",\n          \"response_code_description\": \"Approved\"\n        }\n      },\n      \"status\": \"accepted\"\n    }\n  ],\n  \"customer\": {\n    \"merchant_customer_id\": \"123456789\",\n    \"email_address\": \"user@example.com\",\n    \"first_name\": \"John\",\n    \"last_name\": \"Smith\",\n    \"address_type\": \"billing\",\n    \"address\": \"100 Main Street\",\n    \"postal_code\": \"SW1A 1AA\",\n    \"city\": \"London\",\n    \"country\": \"GB\",\n    \"locale\": \"en-GB\",\n    \"phone_numbers\": [\n      \"+441234566788\"\n    ],\n    \"ip_address\": \"192.0.2.1\",\n    \"ip_country\": \"GB\"\n  }\n}","cookie":[],"_postman_previewlanguage":"json"},{"id":"4328dd25-449a-45ae-8220-52c72037bce0","name":"Authentication failed or is missing. Check your API key.","originalRequest":{"url":{"path":["v1","orders",":order_id",""],"host":["{{baseUrl}}"],"query":[],"variable":[{"disabled":false,"description":{"content":"(Required) The `id` of the order.","type":"text/plain"},"type":"any","value":"8078d78f-8700-4cfe-94b1-4a777d3400f2","key":"order_id"}]},"header":[{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"GET","body":{}},"status":"Unauthorized","code":401,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"error\": {\n    \"status\": 401,\n    \"type\": \"Unauthorized\",\n    \"value\": \"Unauthorized\"\n  }\n}","cookie":[],"_postman_previewlanguage":"json"},{"id":"00314f8f-2ec6-4099-9226-b02c46bc3fbd","name":"The order, transaction or payment link doesn't exist.","originalRequest":{"url":{"path":["v1","orders",":order_id",""],"host":["{{baseUrl}}"],"query":[],"variable":[{"disabled":false,"description":{"content":"(Required) The `id` of the order.","type":"text/plain"},"type":"any","value":"8078d78f-8700-4cfe-94b1-4a777d3400f2","key":"order_id"}]},"header":[{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"GET","body":{}},"status":"Not Found","code":404,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"error\": {\n    \"status\": 7501,\n    \"type\": \"string\",\n    \"value\": \"string\",\n    \"property_path\": \"string\",\n    \"property_description\": \"string\"\n  }\n}","cookie":[],"_postman_previewlanguage":"json"}],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["if (pm.response.code < 300) {","  const order = pm.response.json();","  pm.collectionVariables.set('order_id', order.id);","  if (order.transactions && order.transactions.length > 0) {","    // The latest payment attempt: the transaction created last.","    const latest = order.transactions.reduce((a, b) => (Date.parse(b.created) >= Date.parse(a.created) ? b : a));","    pm.collectionVariables.set('transaction_id', latest.id);","  }","}"]}}],"protocolProfileBehavior":{"disableBodyPruning":true}}]},{"name":"Transactions","description":"Capture and void the transactions of an order.","item":[{"id":"84129a1f-ffc4-4dd5-ab48-a8562f98a779","name":"Capture the full amount","request":{"name":"Capture the full amount","description":{"content":"Captures the full authorized amount of a [pre-authorization](https://docs.pay.paytrim.com/pre-authorizations): a transaction created with `capture_mode` set to `manual`. No request body is needed.\n\nCaptures everything that's still reserved, so after earlier partial captures only the remainder. See [Capture](https://docs.pay.paytrim.com/pre-authorizations#capture).\n","type":"text/plain"},"url":{"path":["v1","orders",":order_id","transactions",":transaction_id","captures",""],"host":["{{baseUrl}}"],"query":[],"variable":[{"type":"any","value":"{{order_id}}","key":"order_id","disabled":false,"description":{"content":"(Required) The `id` of the order.","type":"text/plain"}},{"type":"any","value":"{{transaction_id}}","key":"transaction_id","disabled":false,"description":{"content":"(Required) The `id` of the transaction, from the `transactions` of the order.","type":"text/plain"}}]},"header":[{"disabled":true,"description":{"content":"The `modified` timestamp of the order as you last retrieved it. When the order has changed since, the request is refused with `412`, so you don't act on a stale state.","type":"text/plain"},"key":"If-Match","value":"2026-10-12T10:44:02.357623+00:00"},{"key":"Accept","value":"application/json"}],"method":"POST","body":{},"auth":null},"response":[{"id":"8e2c36ef-aaf0-4442-abb2-9ef1b8d30cf0","name":"The capture has been created. The response contains the capture order, linked to the original order through `capture_of_order_id`.","originalRequest":{"url":{"path":["v1","orders",":order_id","transactions",":transaction_id","captures",""],"host":["{{baseUrl}}"],"query":[],"variable":[{"disabled":false,"description":{"content":"(Required) The `id` of the order.","type":"text/plain"},"type":"any","value":"8078d78f-8700-4cfe-94b1-4a777d3400f2","key":"order_id"},{"disabled":false,"description":{"content":"(Required) The `id` of the transaction, from the `transactions` of the order.","type":"text/plain"},"type":"any","value":"a5dac3de-d304-4570-922b-373d478b8b3a","key":"transaction_id"}]},"header":[{"disabled":true,"description":{"content":"The `modified` timestamp of the order as you last retrieved it. When the order has changed since, the request is refused with `412`, so you don't act on a stale state.","type":"text/plain"},"key":"If-Match","value":"2026-10-12T10:44:02.357623+00:00"},{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"POST","body":{}},"status":"Created","code":201,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"id\": \"fc777966-8565-4fde-b7d9-a274214e4243\",\n  \"project_id\": \"05ad138f-52fa-40dc-9751-5fde949dcb57\",\n  \"merchant_id\": \"b251b220-5d8b-4b9d-9915-b89676dc0948\",\n  \"merchant_order_id\": \"EXAMPLE001\",\n  \"capture_of_order_id\": \"20b3cc29-d9b9-4519-890f-0b90b3205669\",\n  \"created\": \"2026-10-12T14:53:08.379598+00:00\",\n  \"completed\": \"2026-10-12T14:53:08.641625+00:00\",\n  \"currency\": \"EUR\",\n  \"amount\": 2500,\n  \"description\": \"Capture 25.00 of the full 100.00\",\n  \"status\": \"completed\",\n  \"transactions\": [\n    {\n      \"id\": \"9c4ae1ee-112e-48ea-8958-222bdfbf44fe\",\n      \"order_id\": \"fc777966-8565-4fde-b7d9-a274214e4243\",\n      \"capture_of_transaction_id\": \"de78c510-6ba1-44f6-a08e-356c3558d7e6\",\n      \"amount\": 2500,\n      \"currency\": \"EUR\",\n      \"credit_debit\": \"credit\",\n      \"payment_method\": \"credit-card\",\n      \"payment_method_brand\": \"mastercard\",\n      \"is_capturable\": false,\n      \"outcomes\": {\n        \"processing\": {\n          \"status\": \"accepted\"\n        }\n      },\n      \"status\": \"accepted\"\n    }\n  ]\n}","cookie":[],"_postman_previewlanguage":"json"},{"id":"b79d5ff6-6d49-4324-bab7-31c1f5f94b98","name":"The request is invalid, for example because a field is missing or has an invalid value.","originalRequest":{"url":{"path":["v1","orders",":order_id","transactions",":transaction_id","captures",""],"host":["{{baseUrl}}"],"query":[],"variable":[{"disabled":false,"description":{"content":"(Required) The `id` of the order.","type":"text/plain"},"type":"any","value":"8078d78f-8700-4cfe-94b1-4a777d3400f2","key":"order_id"},{"disabled":false,"description":{"content":"(Required) The `id` of the transaction, from the `transactions` of the order.","type":"text/plain"},"type":"any","value":"a5dac3de-d304-4570-922b-373d478b8b3a","key":"transaction_id"}]},"header":[{"disabled":true,"description":{"content":"The `modified` timestamp of the order as you last retrieved it. When the order has changed since, the request is refused with `412`, so you don't act on a stale state.","type":"text/plain"},"key":"If-Match","value":"2026-10-12T10:44:02.357623+00:00"},{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"POST","body":{}},"status":"Bad Request","code":400,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"error\": {\n    \"status\": 400,\n    \"type\": \"ValidationError\",\n    \"value\": \"'amount' is a required property\",\n    \"property_path\": \"amount\"\n  }\n}","cookie":[],"_postman_previewlanguage":"json"},{"id":"a199a715-ded3-4ffb-bb25-fb57259a8892","name":"Authentication failed or is missing. Check your API key.","originalRequest":{"url":{"path":["v1","orders",":order_id","transactions",":transaction_id","captures",""],"host":["{{baseUrl}}"],"query":[],"variable":[{"disabled":false,"description":{"content":"(Required) The `id` of the order.","type":"text/plain"},"type":"any","value":"8078d78f-8700-4cfe-94b1-4a777d3400f2","key":"order_id"},{"disabled":false,"description":{"content":"(Required) The `id` of the transaction, from the `transactions` of the order.","type":"text/plain"},"type":"any","value":"a5dac3de-d304-4570-922b-373d478b8b3a","key":"transaction_id"}]},"header":[{"disabled":true,"description":{"content":"The `modified` timestamp of the order as you last retrieved it. When the order has changed since, the request is refused with `412`, so you don't act on a stale state.","type":"text/plain"},"key":"If-Match","value":"2026-10-12T10:44:02.357623+00:00"},{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"POST","body":{}},"status":"Unauthorized","code":401,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"error\": {\n    \"status\": 401,\n    \"type\": \"Unauthorized\",\n    \"value\": \"Unauthorized\"\n  }\n}","cookie":[],"_postman_previewlanguage":"json"},{"id":"449f7111-4ad3-47de-87b4-e4101d318491","name":"The order, transaction or payment link doesn't exist.","originalRequest":{"url":{"path":["v1","orders",":order_id","transactions",":transaction_id","captures",""],"host":["{{baseUrl}}"],"query":[],"variable":[{"disabled":false,"description":{"content":"(Required) The `id` of the order.","type":"text/plain"},"type":"any","value":"8078d78f-8700-4cfe-94b1-4a777d3400f2","key":"order_id"},{"disabled":false,"description":{"content":"(Required) The `id` of the transaction, from the `transactions` of the order.","type":"text/plain"},"type":"any","value":"a5dac3de-d304-4570-922b-373d478b8b3a","key":"transaction_id"}]},"header":[{"disabled":true,"description":{"content":"The `modified` timestamp of the order as you last retrieved it. When the order has changed since, the request is refused with `412`, so you don't act on a stale state.","type":"text/plain"},"key":"If-Match","value":"2026-10-12T10:44:02.357623+00:00"},{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"POST","body":{}},"status":"Not Found","code":404,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"error\": {\n    \"status\": 7501,\n    \"type\": \"string\",\n    \"value\": \"string\",\n    \"property_path\": \"string\",\n    \"property_description\": \"string\"\n  }\n}","cookie":[],"_postman_previewlanguage":"json"},{"id":"7359762d-f6d4-4952-be6a-3040bc66619e","name":"The action isn't possible in the current state of the transaction, for example because it was already captured.","originalRequest":{"url":{"path":["v1","orders",":order_id","transactions",":transaction_id","captures",""],"host":["{{baseUrl}}"],"query":[],"variable":[{"disabled":false,"description":{"content":"(Required) The `id` of the order.","type":"text/plain"},"type":"any","value":"8078d78f-8700-4cfe-94b1-4a777d3400f2","key":"order_id"},{"disabled":false,"description":{"content":"(Required) The `id` of the transaction, from the `transactions` of the order.","type":"text/plain"},"type":"any","value":"a5dac3de-d304-4570-922b-373d478b8b3a","key":"transaction_id"}]},"header":[{"disabled":true,"description":{"content":"The `modified` timestamp of the order as you last retrieved it. When the order has changed since, the request is refused with `412`, so you don't act on a stale state.","type":"text/plain"},"key":"If-Match","value":"2026-10-12T10:44:02.357623+00:00"},{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"POST","body":{}},"status":"Conflict","code":409,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"error\": {\n    \"status\": 7501,\n    \"type\": \"string\",\n    \"value\": \"string\",\n    \"property_path\": \"string\",\n    \"property_description\": \"string\"\n  }\n}","cookie":[],"_postman_previewlanguage":"json"},{"id":"9346451e-3d2d-4c77-9cf8-fdd87e702802","name":"The order was modified after the `If-Match` value you sent. Retrieve the order again and retry.","originalRequest":{"url":{"path":["v1","orders",":order_id","transactions",":transaction_id","captures",""],"host":["{{baseUrl}}"],"query":[],"variable":[{"disabled":false,"description":{"content":"(Required) The `id` of the order.","type":"text/plain"},"type":"any","value":"8078d78f-8700-4cfe-94b1-4a777d3400f2","key":"order_id"},{"disabled":false,"description":{"content":"(Required) The `id` of the transaction, from the `transactions` of the order.","type":"text/plain"},"type":"any","value":"a5dac3de-d304-4570-922b-373d478b8b3a","key":"transaction_id"}]},"header":[{"disabled":true,"description":{"content":"The `modified` timestamp of the order as you last retrieved it. When the order has changed since, the request is refused with `412`, so you don't act on a stale state.","type":"text/plain"},"key":"If-Match","value":"2026-10-12T10:44:02.357623+00:00"},{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"POST","body":{}},"status":"Precondition Failed","code":412,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"error\": {\n    \"status\": 412,\n    \"type\": \"OrderModifiedSince\",\n    \"value\": \"The order you have provided was modified\"\n  }\n}","cookie":[],"_postman_previewlanguage":"json"}],"event":[],"protocolProfileBehavior":{"disableBodyPruning":true}},{"id":"51d62738-e28c-4765-ac90-37821b918c79","name":"Capture a partial amount","request":{"name":"Capture a partial amount","description":{"content":"Captures part of the authorized amount of a [pre-authorization](https://docs.pay.paytrim.com/pre-authorizations). The rest stays reserved: capture it later in further partial captures, or [void](https://docs.pay.paytrim.com/api-reference/transactions/void-transaction-amount) what you don't need. The captures together can't exceed the authorized amount. See [Capture](https://docs.pay.paytrim.com/pre-authorizations#capture).\n","type":"text/plain"},"url":{"path":["v1","orders",":order_id","transactions",":transaction_id","captures","amount",""],"host":["{{baseUrl}}"],"query":[],"variable":[{"type":"any","value":"{{order_id}}","key":"order_id","disabled":false,"description":{"content":"(Required) The `id` of the order.","type":"text/plain"}},{"type":"any","value":"{{transaction_id}}","key":"transaction_id","disabled":false,"description":{"content":"(Required) The `id` of the transaction, from the `transactions` of the order.","type":"text/plain"}}]},"header":[{"disabled":true,"description":{"content":"The `modified` timestamp of the order as you last retrieved it. When the order has changed since, the request is refused with `412`, so you don't act on a stale state.","type":"text/plain"},"key":"If-Match","value":"2026-10-12T10:44:02.357623+00:00"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"amount\": 2500,\n  \"description\": \"Capture 25.00 of the full 100.00\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"auth":null},"response":[{"id":"51d79f9e-b619-4e08-9ca4-c921b13a2526","name":"The capture has been created. The response contains the capture order, linked to the original order through `capture_of_order_id`.","originalRequest":{"url":{"path":["v1","orders",":order_id","transactions",":transaction_id","captures","amount",""],"host":["{{baseUrl}}"],"query":[],"variable":[{"disabled":false,"description":{"content":"(Required) The `id` of the order.","type":"text/plain"},"type":"any","value":"8078d78f-8700-4cfe-94b1-4a777d3400f2","key":"order_id"},{"disabled":false,"description":{"content":"(Required) The `id` of the transaction, from the `transactions` of the order.","type":"text/plain"},"type":"any","value":"a5dac3de-d304-4570-922b-373d478b8b3a","key":"transaction_id"}]},"header":[{"disabled":true,"description":{"content":"The `modified` timestamp of the order as you last retrieved it. When the order has changed since, the request is refused with `412`, so you don't act on a stale state.","type":"text/plain"},"key":"If-Match","value":"2026-10-12T10:44:02.357623+00:00"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"amount\": 2500,\n  \"description\": \"Capture 25.00 of the full 100.00\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}}},"status":"Created","code":201,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"id\": \"fc777966-8565-4fde-b7d9-a274214e4243\",\n  \"project_id\": \"05ad138f-52fa-40dc-9751-5fde949dcb57\",\n  \"merchant_id\": \"b251b220-5d8b-4b9d-9915-b89676dc0948\",\n  \"merchant_order_id\": \"EXAMPLE001\",\n  \"capture_of_order_id\": \"20b3cc29-d9b9-4519-890f-0b90b3205669\",\n  \"created\": \"2026-10-12T14:53:08.379598+00:00\",\n  \"completed\": \"2026-10-12T14:53:08.641625+00:00\",\n  \"currency\": \"EUR\",\n  \"amount\": 2500,\n  \"description\": \"Capture 25.00 of the full 100.00\",\n  \"status\": \"completed\",\n  \"transactions\": [\n    {\n      \"id\": \"9c4ae1ee-112e-48ea-8958-222bdfbf44fe\",\n      \"order_id\": \"fc777966-8565-4fde-b7d9-a274214e4243\",\n      \"capture_of_transaction_id\": \"de78c510-6ba1-44f6-a08e-356c3558d7e6\",\n      \"amount\": 2500,\n      \"currency\": \"EUR\",\n      \"credit_debit\": \"credit\",\n      \"payment_method\": \"credit-card\",\n      \"payment_method_brand\": \"mastercard\",\n      \"is_capturable\": false,\n      \"outcomes\": {\n        \"processing\": {\n          \"status\": \"accepted\"\n        }\n      },\n      \"status\": \"accepted\"\n    }\n  ]\n}","cookie":[],"_postman_previewlanguage":"json"},{"id":"85deadb1-766b-4352-9326-bfc44bb033b8","name":"The request is invalid, for example because a field is missing or has an invalid value.","originalRequest":{"url":{"path":["v1","orders",":order_id","transactions",":transaction_id","captures","amount",""],"host":["{{baseUrl}}"],"query":[],"variable":[{"disabled":false,"description":{"content":"(Required) The `id` of the order.","type":"text/plain"},"type":"any","value":"8078d78f-8700-4cfe-94b1-4a777d3400f2","key":"order_id"},{"disabled":false,"description":{"content":"(Required) The `id` of the transaction, from the `transactions` of the order.","type":"text/plain"},"type":"any","value":"a5dac3de-d304-4570-922b-373d478b8b3a","key":"transaction_id"}]},"header":[{"disabled":true,"description":{"content":"The `modified` timestamp of the order as you last retrieved it. When the order has changed since, the request is refused with `412`, so you don't act on a stale state.","type":"text/plain"},"key":"If-Match","value":"2026-10-12T10:44:02.357623+00:00"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"amount\": 2500,\n  \"description\": \"Capture 25.00 of the full 100.00\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}}},"status":"Bad Request","code":400,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"error\": {\n    \"status\": 400,\n    \"type\": \"ValidationError\",\n    \"value\": \"'amount' is a required property\",\n    \"property_path\": \"amount\"\n  }\n}","cookie":[],"_postman_previewlanguage":"json"},{"id":"4fee9488-7c88-448e-992c-3bb68f3ff25d","name":"Authentication failed or is missing. Check your API key.","originalRequest":{"url":{"path":["v1","orders",":order_id","transactions",":transaction_id","captures","amount",""],"host":["{{baseUrl}}"],"query":[],"variable":[{"disabled":false,"description":{"content":"(Required) The `id` of the order.","type":"text/plain"},"type":"any","value":"8078d78f-8700-4cfe-94b1-4a777d3400f2","key":"order_id"},{"disabled":false,"description":{"content":"(Required) The `id` of the transaction, from the `transactions` of the order.","type":"text/plain"},"type":"any","value":"a5dac3de-d304-4570-922b-373d478b8b3a","key":"transaction_id"}]},"header":[{"disabled":true,"description":{"content":"The `modified` timestamp of the order as you last retrieved it. When the order has changed since, the request is refused with `412`, so you don't act on a stale state.","type":"text/plain"},"key":"If-Match","value":"2026-10-12T10:44:02.357623+00:00"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"amount\": 2500,\n  \"description\": \"Capture 25.00 of the full 100.00\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}}},"status":"Unauthorized","code":401,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"error\": {\n    \"status\": 401,\n    \"type\": \"Unauthorized\",\n    \"value\": \"Unauthorized\"\n  }\n}","cookie":[],"_postman_previewlanguage":"json"},{"id":"621f0aca-aeb6-4f8b-ba9d-2df25fe68dd7","name":"The order, transaction or payment link doesn't exist.","originalRequest":{"url":{"path":["v1","orders",":order_id","transactions",":transaction_id","captures","amount",""],"host":["{{baseUrl}}"],"query":[],"variable":[{"disabled":false,"description":{"content":"(Required) The `id` of the order.","type":"text/plain"},"type":"any","value":"8078d78f-8700-4cfe-94b1-4a777d3400f2","key":"order_id"},{"disabled":false,"description":{"content":"(Required) The `id` of the transaction, from the `transactions` of the order.","type":"text/plain"},"type":"any","value":"a5dac3de-d304-4570-922b-373d478b8b3a","key":"transaction_id"}]},"header":[{"disabled":true,"description":{"content":"The `modified` timestamp of the order as you last retrieved it. When the order has changed since, the request is refused with `412`, so you don't act on a stale state.","type":"text/plain"},"key":"If-Match","value":"2026-10-12T10:44:02.357623+00:00"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"amount\": 2500,\n  \"description\": \"Capture 25.00 of the full 100.00\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}}},"status":"Not Found","code":404,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"error\": {\n    \"status\": 7501,\n    \"type\": \"string\",\n    \"value\": \"string\",\n    \"property_path\": \"string\",\n    \"property_description\": \"string\"\n  }\n}","cookie":[],"_postman_previewlanguage":"json"},{"id":"ed503c00-d8e0-43c9-b02e-f0d9cc7c1702","name":"The action isn't possible in the current state of the transaction, for example because it was already captured.","originalRequest":{"url":{"path":["v1","orders",":order_id","transactions",":transaction_id","captures","amount",""],"host":["{{baseUrl}}"],"query":[],"variable":[{"disabled":false,"description":{"content":"(Required) The `id` of the order.","type":"text/plain"},"type":"any","value":"8078d78f-8700-4cfe-94b1-4a777d3400f2","key":"order_id"},{"disabled":false,"description":{"content":"(Required) The `id` of the transaction, from the `transactions` of the order.","type":"text/plain"},"type":"any","value":"a5dac3de-d304-4570-922b-373d478b8b3a","key":"transaction_id"}]},"header":[{"disabled":true,"description":{"content":"The `modified` timestamp of the order as you last retrieved it. When the order has changed since, the request is refused with `412`, so you don't act on a stale state.","type":"text/plain"},"key":"If-Match","value":"2026-10-12T10:44:02.357623+00:00"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"amount\": 2500,\n  \"description\": \"Capture 25.00 of the full 100.00\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}}},"status":"Conflict","code":409,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"error\": {\n    \"status\": 7501,\n    \"type\": \"string\",\n    \"value\": \"string\",\n    \"property_path\": \"string\",\n    \"property_description\": \"string\"\n  }\n}","cookie":[],"_postman_previewlanguage":"json"},{"id":"82e73c20-f20c-4d3e-9c34-0d0c08b7cdd3","name":"The order was modified after the `If-Match` value you sent. Retrieve the order again and retry.","originalRequest":{"url":{"path":["v1","orders",":order_id","transactions",":transaction_id","captures","amount",""],"host":["{{baseUrl}}"],"query":[],"variable":[{"disabled":false,"description":{"content":"(Required) The `id` of the order.","type":"text/plain"},"type":"any","value":"8078d78f-8700-4cfe-94b1-4a777d3400f2","key":"order_id"},{"disabled":false,"description":{"content":"(Required) The `id` of the transaction, from the `transactions` of the order.","type":"text/plain"},"type":"any","value":"a5dac3de-d304-4570-922b-373d478b8b3a","key":"transaction_id"}]},"header":[{"disabled":true,"description":{"content":"The `modified` timestamp of the order as you last retrieved it. When the order has changed since, the request is refused with `412`, so you don't act on a stale state.","type":"text/plain"},"key":"If-Match","value":"2026-10-12T10:44:02.357623+00:00"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"amount\": 2500,\n  \"description\": \"Capture 25.00 of the full 100.00\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}}},"status":"Precondition Failed","code":412,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"error\": {\n    \"status\": 412,\n    \"type\": \"OrderModifiedSince\",\n    \"value\": \"The order you have provided was modified\"\n  }\n}","cookie":[],"_postman_previewlanguage":"json"}],"event":[],"protocolProfileBehavior":{"disableBodyPruning":true}},{"id":"006f7db5-cefc-4fb7-8946-fe493eee6ddc","name":"Void an amount","request":{"name":"Void an amount","description":{"content":"Releases part of the reserved amount of a [pre-authorization](https://docs.pay.paytrim.com/pre-authorizations) to your customer, or all of it. Send the full remaining authorized amount to void the whole pre-authorization.\n\nSee [Void](https://docs.pay.paytrim.com/pre-authorizations#void).\n\nSee [Void](https://docs.pay.paytrim.com/pre-authorizations#void).\n","type":"text/plain"},"url":{"path":["v1","orders",":order_id","transactions",":transaction_id","voids","amount",""],"host":["{{baseUrl}}"],"query":[],"variable":[{"type":"any","value":"{{order_id}}","key":"order_id","disabled":false,"description":{"content":"(Required) The `id` of the order.","type":"text/plain"}},{"type":"any","value":"{{transaction_id}}","key":"transaction_id","disabled":false,"description":{"content":"(Required) The `id` of the transaction, from the `transactions` of the order.","type":"text/plain"}}]},"header":[{"disabled":true,"description":{"content":"The `modified` timestamp of the order as you last retrieved it. When the order has changed since, the request is refused with `412`, so you don't act on a stale state.","type":"text/plain"},"key":"If-Match","value":"2026-10-12T10:44:02.357623+00:00"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"amount\": 2500,\n  \"description\": \"Void 25.00 of the full 100.00\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"auth":null},"response":[{"id":"160c0117-8fba-4d52-be91-5715393c01a0","name":"The void has been created. The response contains the void order, linked to the original order through `void_of_order_id`.","originalRequest":{"url":{"path":["v1","orders",":order_id","transactions",":transaction_id","voids","amount",""],"host":["{{baseUrl}}"],"query":[],"variable":[{"disabled":false,"description":{"content":"(Required) The `id` of the order.","type":"text/plain"},"type":"any","value":"8078d78f-8700-4cfe-94b1-4a777d3400f2","key":"order_id"},{"disabled":false,"description":{"content":"(Required) The `id` of the transaction, from the `transactions` of the order.","type":"text/plain"},"type":"any","value":"a5dac3de-d304-4570-922b-373d478b8b3a","key":"transaction_id"}]},"header":[{"disabled":true,"description":{"content":"The `modified` timestamp of the order as you last retrieved it. When the order has changed since, the request is refused with `412`, so you don't act on a stale state.","type":"text/plain"},"key":"If-Match","value":"2026-10-12T10:44:02.357623+00:00"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"amount\": 2500,\n  \"description\": \"Void 25.00 of the full 100.00\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}}},"status":"Created","code":201,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"id\": \"52100d94-2529-4076-8e70-d43ecce99c74\",\n  \"project_id\": \"05ad138f-52fa-40dc-9751-5fde949dcb57\",\n  \"merchant_id\": \"b251b220-5d8b-4b9d-9915-b89676dc0948\",\n  \"merchant_order_id\": \"EXAMPLE001\",\n  \"void_of_order_id\": \"20b3cc29-d9b9-4519-890f-0b90b3205669\",\n  \"created\": \"2026-10-12T14:50:20.663030+00:00\",\n  \"completed\": \"2026-10-12T14:50:21.686226+00:00\",\n  \"currency\": \"EUR\",\n  \"amount\": 2500,\n  \"description\": \"Void 25.00 of the full 100.00\",\n  \"status\": \"completed\",\n  \"transactions\": [\n    {\n      \"id\": \"ae4ef9d0-90fe-4595-8fda-412cf2e04133\",\n      \"order_id\": \"52100d94-2529-4076-8e70-d43ecce99c74\",\n      \"void_of_transaction_id\": \"de78c510-6ba1-44f6-a08e-356c3558d7e6\",\n      \"amount\": 2500,\n      \"currency\": \"EUR\",\n      \"credit_debit\": \"credit\",\n      \"payment_method\": \"credit-card\",\n      \"payment_method_brand\": \"mastercard\",\n      \"is_capturable\": false,\n      \"outcomes\": {\n        \"processing\": {\n          \"status\": \"accepted\",\n          \"response_code\": \"00\",\n          \"response_code_description\": \"Approved\"\n        }\n      },\n      \"status\": \"completed\"\n    }\n  ]\n}","cookie":[],"_postman_previewlanguage":"json"},{"id":"0704a7a8-6271-4d7d-b6be-63129ab4c531","name":"The request is invalid, for example because a field is missing or has an invalid value.","originalRequest":{"url":{"path":["v1","orders",":order_id","transactions",":transaction_id","voids","amount",""],"host":["{{baseUrl}}"],"query":[],"variable":[{"disabled":false,"description":{"content":"(Required) The `id` of the order.","type":"text/plain"},"type":"any","value":"8078d78f-8700-4cfe-94b1-4a777d3400f2","key":"order_id"},{"disabled":false,"description":{"content":"(Required) The `id` of the transaction, from the `transactions` of the order.","type":"text/plain"},"type":"any","value":"a5dac3de-d304-4570-922b-373d478b8b3a","key":"transaction_id"}]},"header":[{"disabled":true,"description":{"content":"The `modified` timestamp of the order as you last retrieved it. When the order has changed since, the request is refused with `412`, so you don't act on a stale state.","type":"text/plain"},"key":"If-Match","value":"2026-10-12T10:44:02.357623+00:00"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"amount\": 2500,\n  \"description\": \"Void 25.00 of the full 100.00\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}}},"status":"Bad Request","code":400,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"error\": {\n    \"status\": 400,\n    \"type\": \"ValidationError\",\n    \"value\": \"'amount' is a required property\",\n    \"property_path\": \"amount\"\n  }\n}","cookie":[],"_postman_previewlanguage":"json"},{"id":"d02012a2-1bd7-46b6-b278-bd49cbcb028e","name":"Authentication failed or is missing. Check your API key.","originalRequest":{"url":{"path":["v1","orders",":order_id","transactions",":transaction_id","voids","amount",""],"host":["{{baseUrl}}"],"query":[],"variable":[{"disabled":false,"description":{"content":"(Required) The `id` of the order.","type":"text/plain"},"type":"any","value":"8078d78f-8700-4cfe-94b1-4a777d3400f2","key":"order_id"},{"disabled":false,"description":{"content":"(Required) The `id` of the transaction, from the `transactions` of the order.","type":"text/plain"},"type":"any","value":"a5dac3de-d304-4570-922b-373d478b8b3a","key":"transaction_id"}]},"header":[{"disabled":true,"description":{"content":"The `modified` timestamp of the order as you last retrieved it. When the order has changed since, the request is refused with `412`, so you don't act on a stale state.","type":"text/plain"},"key":"If-Match","value":"2026-10-12T10:44:02.357623+00:00"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"amount\": 2500,\n  \"description\": \"Void 25.00 of the full 100.00\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}}},"status":"Unauthorized","code":401,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"error\": {\n    \"status\": 401,\n    \"type\": \"Unauthorized\",\n    \"value\": \"Unauthorized\"\n  }\n}","cookie":[],"_postman_previewlanguage":"json"},{"id":"30a30b98-e2c2-4859-8d88-f5ae8d596485","name":"The order, transaction or payment link doesn't exist.","originalRequest":{"url":{"path":["v1","orders",":order_id","transactions",":transaction_id","voids","amount",""],"host":["{{baseUrl}}"],"query":[],"variable":[{"disabled":false,"description":{"content":"(Required) The `id` of the order.","type":"text/plain"},"type":"any","value":"8078d78f-8700-4cfe-94b1-4a777d3400f2","key":"order_id"},{"disabled":false,"description":{"content":"(Required) The `id` of the transaction, from the `transactions` of the order.","type":"text/plain"},"type":"any","value":"a5dac3de-d304-4570-922b-373d478b8b3a","key":"transaction_id"}]},"header":[{"disabled":true,"description":{"content":"The `modified` timestamp of the order as you last retrieved it. When the order has changed since, the request is refused with `412`, so you don't act on a stale state.","type":"text/plain"},"key":"If-Match","value":"2026-10-12T10:44:02.357623+00:00"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"amount\": 2500,\n  \"description\": \"Void 25.00 of the full 100.00\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}}},"status":"Not Found","code":404,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"error\": {\n    \"status\": 7501,\n    \"type\": \"string\",\n    \"value\": \"string\",\n    \"property_path\": \"string\",\n    \"property_description\": \"string\"\n  }\n}","cookie":[],"_postman_previewlanguage":"json"},{"id":"094e513f-3e35-4409-b5f9-3640ba1a40eb","name":"The action isn't possible in the current state of the transaction, for example because it was already captured.","originalRequest":{"url":{"path":["v1","orders",":order_id","transactions",":transaction_id","voids","amount",""],"host":["{{baseUrl}}"],"query":[],"variable":[{"disabled":false,"description":{"content":"(Required) The `id` of the order.","type":"text/plain"},"type":"any","value":"8078d78f-8700-4cfe-94b1-4a777d3400f2","key":"order_id"},{"disabled":false,"description":{"content":"(Required) The `id` of the transaction, from the `transactions` of the order.","type":"text/plain"},"type":"any","value":"a5dac3de-d304-4570-922b-373d478b8b3a","key":"transaction_id"}]},"header":[{"disabled":true,"description":{"content":"The `modified` timestamp of the order as you last retrieved it. When the order has changed since, the request is refused with `412`, so you don't act on a stale state.","type":"text/plain"},"key":"If-Match","value":"2026-10-12T10:44:02.357623+00:00"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"amount\": 2500,\n  \"description\": \"Void 25.00 of the full 100.00\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}}},"status":"Conflict","code":409,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"error\": {\n    \"status\": 7501,\n    \"type\": \"string\",\n    \"value\": \"string\",\n    \"property_path\": \"string\",\n    \"property_description\": \"string\"\n  }\n}","cookie":[],"_postman_previewlanguage":"json"},{"id":"b97d4aad-4786-4245-a44e-97162240b5d8","name":"The order was modified after the `If-Match` value you sent. Retrieve the order again and retry.","originalRequest":{"url":{"path":["v1","orders",":order_id","transactions",":transaction_id","voids","amount",""],"host":["{{baseUrl}}"],"query":[],"variable":[{"disabled":false,"description":{"content":"(Required) The `id` of the order.","type":"text/plain"},"type":"any","value":"8078d78f-8700-4cfe-94b1-4a777d3400f2","key":"order_id"},{"disabled":false,"description":{"content":"(Required) The `id` of the transaction, from the `transactions` of the order.","type":"text/plain"},"type":"any","value":"a5dac3de-d304-4570-922b-373d478b8b3a","key":"transaction_id"}]},"header":[{"disabled":true,"description":{"content":"The `modified` timestamp of the order as you last retrieved it. When the order has changed since, the request is refused with `412`, so you don't act on a stale state.","type":"text/plain"},"key":"If-Match","value":"2026-10-12T10:44:02.357623+00:00"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"amount\": 2500,\n  \"description\": \"Void 25.00 of the full 100.00\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}}},"status":"Precondition Failed","code":412,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"error\": {\n    \"status\": 412,\n    \"type\": \"OrderModifiedSince\",\n    \"value\": \"The order you have provided was modified\"\n  }\n}","cookie":[],"_postman_previewlanguage":"json"}],"event":[],"protocolProfileBehavior":{"disableBodyPruning":true}}]},{"name":"Refunds","description":"Return money to your customer for a completed order.","item":[{"id":"db0da683-1196-4c59-936b-605312bde3c3","name":"Create a refund","request":{"name":"Create a refund","description":{"content":"Refunds the full amount or part of a completed order. A refund is a new order, linked to the original order through `refund_of_order_id`. It always uses the currency of the original order. To refund the full remaining amount, send an empty JSON object `{}` as the body: the body is required, the `amount` isn't.\n\nYou can refund an order several times, as long as the total doesn't exceed the amount paid. For a [pre-authorization](https://docs.pay.paytrim.com/pre-authorizations), that's the captured amount. See [Refunds](https://docs.pay.paytrim.com/refunds).\n","type":"text/plain"},"url":{"path":["v1","orders",":order_id","refunds",""],"host":["{{baseUrl}}"],"query":[],"variable":[{"type":"any","value":"{{order_id}}","key":"order_id","disabled":false,"description":{"content":"(Required) The `id` of the order.","type":"text/plain"}}]},"header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"amount\": 1337,\n  \"description\": \"Example refund\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"auth":null},"response":[{"id":"88c4fb7a-a272-4b74-8e9a-99f2442b257a","name":"The refund has been created. The response contains the refund order.","originalRequest":{"url":{"path":["v1","orders",":order_id","refunds",""],"host":["{{baseUrl}}"],"query":[],"variable":[{"disabled":false,"description":{"content":"(Required) The `id` of the order.","type":"text/plain"},"type":"any","value":"8078d78f-8700-4cfe-94b1-4a777d3400f2","key":"order_id"}]},"header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"amount\": 1337,\n  \"description\": \"Example refund\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}}},"status":"Created","code":201,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"id\": \"97e825b2-c77d-4d56-aeaf-7af9c7c4087f\",\n  \"project_id\": \"05ad138f-52fa-40dc-9751-5fde949dcb57\",\n  \"merchant_id\": \"b251b220-5d8b-4b9d-9915-b89676dc0948\",\n  \"created\": \"2026-10-12T11:48:59.630958+00:00\",\n  \"completed\": \"2026-10-12T11:48:59.912726+00:00\",\n  \"currency\": \"EUR\",\n  \"amount\": 1337,\n  \"description\": \"Example refund\",\n  \"flags\": [\n    \"is-refund\",\n    \"is-test\"\n  ],\n  \"refund_of_order_id\": \"8189619d-748e-4333-81ee-fca65b1f47bc\",\n  \"status\": \"completed\",\n  \"transactions\": [\n    {\n      \"id\": \"8deb1542-fbe7-442e-9510-ea7c819e3bea\",\n      \"order_id\": \"97e825b2-c77d-4d56-aeaf-7af9c7c4087f\",\n      \"amount\": 1337,\n      \"currency\": \"EUR\",\n      \"credit_debit\": \"debit\",\n      \"payment_method\": \"credit-card-refund\",\n      \"payment_method_brand\": \"mastercard\",\n      \"refund_of_transaction_id\": \"6fbaeb49-6c55-408b-82ac-1b410db9fe1c\",\n      \"status\": \"accepted\"\n    }\n  ]\n}","cookie":[],"_postman_previewlanguage":"json"},{"id":"6789ecb6-ebb3-4c96-a815-3b10a791c892","name":"The refund isn't possible, for example because it exceeds the remaining amount of the order.","originalRequest":{"url":{"path":["v1","orders",":order_id","refunds",""],"host":["{{baseUrl}}"],"query":[],"variable":[{"disabled":false,"description":{"content":"(Required) The `id` of the order.","type":"text/plain"},"type":"any","value":"8078d78f-8700-4cfe-94b1-4a777d3400f2","key":"order_id"}]},"header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"amount\": 1337,\n  \"description\": \"Example refund\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}}},"status":"Bad Request","code":400,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"error\": {\n    \"status\": 400,\n    \"type\": \"RefundError\",\n    \"value\": \"Cannot refund more (500) than the remaining order amount (0)\"\n  }\n}","cookie":[],"_postman_previewlanguage":"json"},{"id":"456fb120-4f45-4cbf-aa9f-24f5cf47173e","name":"Authentication failed or is missing. Check your API key.","originalRequest":{"url":{"path":["v1","orders",":order_id","refunds",""],"host":["{{baseUrl}}"],"query":[],"variable":[{"disabled":false,"description":{"content":"(Required) The `id` of the order.","type":"text/plain"},"type":"any","value":"8078d78f-8700-4cfe-94b1-4a777d3400f2","key":"order_id"}]},"header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"amount\": 1337,\n  \"description\": \"Example refund\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}}},"status":"Unauthorized","code":401,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"error\": {\n    \"status\": 401,\n    \"type\": \"Unauthorized\",\n    \"value\": \"Unauthorized\"\n  }\n}","cookie":[],"_postman_previewlanguage":"json"},{"id":"ef872e45-0b1c-48f1-a6d2-69a284c37d0c","name":"The order, transaction or payment link doesn't exist.","originalRequest":{"url":{"path":["v1","orders",":order_id","refunds",""],"host":["{{baseUrl}}"],"query":[],"variable":[{"disabled":false,"description":{"content":"(Required) The `id` of the order.","type":"text/plain"},"type":"any","value":"8078d78f-8700-4cfe-94b1-4a777d3400f2","key":"order_id"}]},"header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"amount\": 1337,\n  \"description\": \"Example refund\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}}},"status":"Not Found","code":404,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"error\": {\n    \"status\": 7501,\n    \"type\": \"string\",\n    \"value\": \"string\",\n    \"property_path\": \"string\",\n    \"property_description\": \"string\"\n  }\n}","cookie":[],"_postman_previewlanguage":"json"}],"event":[],"protocolProfileBehavior":{"disableBodyPruning":true}},{"id":"2ce9c9b6-ffe0-4b6a-9cbe-17c2f8684456","name":"List the refunds of an order","request":{"name":"List the refunds of an order","description":{"content":"Retrieves the refund orders created for an order.","type":"text/plain"},"url":{"path":["v1","orders",":order_id","refunds",""],"host":["{{baseUrl}}"],"query":[],"variable":[{"type":"any","value":"{{order_id}}","key":"order_id","disabled":false,"description":{"content":"(Required) The `id` of the order.","type":"text/plain"}}]},"header":[{"key":"Accept","value":"application/json"}],"method":"GET","body":{},"auth":null},"response":[{"id":"983d413a-039a-4590-913d-d3609f891f96","name":"The refund orders of the order.","originalRequest":{"url":{"path":["v1","orders",":order_id","refunds",""],"host":["{{baseUrl}}"],"query":[],"variable":[{"disabled":false,"description":{"content":"(Required) The `id` of the order.","type":"text/plain"},"type":"any","value":"8078d78f-8700-4cfe-94b1-4a777d3400f2","key":"order_id"}]},"header":[{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"GET","body":{}},"status":"OK","code":200,"header":[{"key":"Content-Type","value":"application/json"}],"body":"[\n  {\n    \"id\": \"851f041f-0a26-41b8-b7a2-a9f92714a418\",\n    \"amount\": 2000,\n    \"currency\": \"EUR\",\n    \"created\": \"2026-10-12T12:08:35.396315+00:00\",\n    \"completed\": \"2026-10-12T12:08:36.472789+00:00\",\n    \"description\": \"Partial refund\",\n    \"flags\": [\n      \"is-refund\",\n      \"is-test\"\n    ],\n    \"merchant_order_id\": \"EXAMPLE001\",\n    \"refund_of_order_id\": \"9f9975f5-2d13-408a-aff0-40b72ded3d57\",\n    \"status\": \"completed\"\n  },\n  {\n    \"id\": \"3f9ca14f-50a4-45e6-af11-8ef76eed3080\",\n    \"amount\": 2000,\n    \"currency\": \"EUR\",\n    \"created\": \"2026-10-12T12:06:05.807474+00:00\",\n    \"completed\": \"2026-10-12T12:06:07.172292+00:00\",\n    \"description\": \"Partial refund\",\n    \"flags\": [\n      \"is-refund\",\n      \"is-test\"\n    ],\n    \"merchant_order_id\": \"EXAMPLE001\",\n    \"refund_of_order_id\": \"9f9975f5-2d13-408a-aff0-40b72ded3d57\",\n    \"status\": \"completed\"\n  }\n]","cookie":[],"_postman_previewlanguage":"json"},{"id":"c0eb53d0-0e3e-4e78-a171-deb6f6365745","name":"Authentication failed or is missing. Check your API key.","originalRequest":{"url":{"path":["v1","orders",":order_id","refunds",""],"host":["{{baseUrl}}"],"query":[],"variable":[{"disabled":false,"description":{"content":"(Required) The `id` of the order.","type":"text/plain"},"type":"any","value":"8078d78f-8700-4cfe-94b1-4a777d3400f2","key":"order_id"}]},"header":[{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"GET","body":{}},"status":"Unauthorized","code":401,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"error\": {\n    \"status\": 401,\n    \"type\": \"Unauthorized\",\n    \"value\": \"Unauthorized\"\n  }\n}","cookie":[],"_postman_previewlanguage":"json"},{"id":"b57dce47-681c-4a90-aab9-7781c95e89ed","name":"The order, transaction or payment link doesn't exist.","originalRequest":{"url":{"path":["v1","orders",":order_id","refunds",""],"host":["{{baseUrl}}"],"query":[],"variable":[{"disabled":false,"description":{"content":"(Required) The `id` of the order.","type":"text/plain"},"type":"any","value":"8078d78f-8700-4cfe-94b1-4a777d3400f2","key":"order_id"}]},"header":[{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"GET","body":{}},"status":"Not Found","code":404,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"error\": {\n    \"status\": 7501,\n    \"type\": \"string\",\n    \"value\": \"string\",\n    \"property_path\": \"string\",\n    \"property_description\": \"string\"\n  }\n}","cookie":[],"_postman_previewlanguage":"json"}],"event":[],"protocolProfileBehavior":{"disableBodyPruning":true}}]},{"name":"Payment links","description":"Links to the hosted payment page that you send to your customers.","item":[{"id":"ab009153-f4d2-461f-abdd-f4379075f1f3","name":"Create a payment link","request":{"name":"Create a payment link","description":{"content":"Creates a link to the hosted payment page that you can send to your customer, for example by email or in an invoice. Every time your customer opens the link and tries to pay, Paytrim creates a new order, up to 25 attempts.\n\nSee [Payment links](https://docs.pay.paytrim.com/payment-links).\n","type":"text/plain"},"url":{"path":["v1","paymentlinks",""],"host":["{{baseUrl}}"],"query":[],"variable":[]},"header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"merchant_order_id\": \"EXAMPLE001\",\n  \"amount\": 995,\n  \"currency\": \"EUR\",\n  \"description\": \"Invoice EXAMPLE001\",\n  \"expiration_period\": \"P20D\",\n  \"payment_methods\": [\n    \"credit-card\",\n    \"apple-pay\",\n    \"google-pay\"\n  ],\n  \"return_url\": \"https://www.example.com/thank-you\",\n  \"webhook_url\": \"https://www.example.com/webhook\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"auth":null},"response":[{"id":"a7954aa3-66ae-4b90-b657-0297372e399c","name":"The payment link has been created.","originalRequest":{"url":{"path":["v1","paymentlinks",""],"host":["{{baseUrl}}"],"query":[],"variable":[]},"header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"merchant_order_id\": \"EXAMPLE001\",\n  \"amount\": 995,\n  \"currency\": \"EUR\",\n  \"description\": \"Invoice EXAMPLE001\",\n  \"expiration_period\": \"P20D\",\n  \"payment_methods\": [\n    \"credit-card\",\n    \"apple-pay\",\n    \"google-pay\"\n  ],\n  \"return_url\": \"https://www.example.com/thank-you\",\n  \"webhook_url\": \"https://www.example.com/webhook\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}}},"status":"OK","code":200,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"id\": \"a8c1b7b0-9c73-4bd8-94f4-37c3070e78c7\",\n  \"project_id\": \"05ad138f-52fa-40dc-9751-5fde949dcb57\",\n  \"merchant_id\": \"b251b220-5d8b-4b9d-9915-b89676dc0948\",\n  \"merchant_order_id\": \"EXAMPLE001\",\n  \"amount\": 995,\n  \"currency\": \"EUR\",\n  \"description\": \"Invoice EXAMPLE001\",\n  \"expiration_period\": \"P20D\",\n  \"payment_methods\": [\n    \"credit-card\",\n    \"apple-pay\",\n    \"google-pay\"\n  ],\n  \"payment_url\": \"https://api.pay.paytrim.com/paymentlinks/a8c1b7b0-9c73-4bd8-94f4-37c3070e78c7/\",\n  \"created\": \"2026-10-12T15:39:12.773776Z\",\n  \"orders\": {},\n  \"status\": \"new\",\n  \"reason\": \"Payment Link was created, not yet visited\",\n  \"return_url\": \"https://www.example.com/thank-you\",\n  \"webhook_url\": \"https://www.example.com/webhook\"\n}","cookie":[],"_postman_previewlanguage":"json"},{"id":"a2d44a2d-5808-4862-b9aa-d13d5200428f","name":"The request is invalid, for example because a field is missing or has an invalid value.","originalRequest":{"url":{"path":["v1","paymentlinks",""],"host":["{{baseUrl}}"],"query":[],"variable":[]},"header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"merchant_order_id\": \"EXAMPLE001\",\n  \"amount\": 995,\n  \"currency\": \"EUR\",\n  \"description\": \"Invoice EXAMPLE001\",\n  \"expiration_period\": \"P20D\",\n  \"payment_methods\": [\n    \"credit-card\",\n    \"apple-pay\",\n    \"google-pay\"\n  ],\n  \"return_url\": \"https://www.example.com/thank-you\",\n  \"webhook_url\": \"https://www.example.com/webhook\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}}},"status":"Bad Request","code":400,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"error\": {\n    \"status\": 400,\n    \"type\": \"ValidationError\",\n    \"value\": \"'amount' is a required property\",\n    \"property_path\": \"amount\"\n  }\n}","cookie":[],"_postman_previewlanguage":"json"},{"id":"33565b03-4ccb-42d5-be13-a6e0e77e5d3e","name":"Authentication failed or is missing. Check your API key.","originalRequest":{"url":{"path":["v1","paymentlinks",""],"host":["{{baseUrl}}"],"query":[],"variable":[]},"header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"merchant_order_id\": \"EXAMPLE001\",\n  \"amount\": 995,\n  \"currency\": \"EUR\",\n  \"description\": \"Invoice EXAMPLE001\",\n  \"expiration_period\": \"P20D\",\n  \"payment_methods\": [\n    \"credit-card\",\n    \"apple-pay\",\n    \"google-pay\"\n  ],\n  \"return_url\": \"https://www.example.com/thank-you\",\n  \"webhook_url\": \"https://www.example.com/webhook\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}}},"status":"Unauthorized","code":401,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"error\": {\n    \"status\": 401,\n    \"type\": \"Unauthorized\",\n    \"value\": \"Unauthorized\"\n  }\n}","cookie":[],"_postman_previewlanguage":"json"},{"id":"29ab3b95-ad94-4cb6-bb25-af082ee996ef","name":"Your project doesn't have permission for this action, for example because the payment method isn't active.","originalRequest":{"url":{"path":["v1","paymentlinks",""],"host":["{{baseUrl}}"],"query":[],"variable":[]},"header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"merchant_order_id\": \"EXAMPLE001\",\n  \"amount\": 995,\n  \"currency\": \"EUR\",\n  \"description\": \"Invoice EXAMPLE001\",\n  \"expiration_period\": \"P20D\",\n  \"payment_methods\": [\n    \"credit-card\",\n    \"apple-pay\",\n    \"google-pay\"\n  ],\n  \"return_url\": \"https://www.example.com/thank-you\",\n  \"webhook_url\": \"https://www.example.com/webhook\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}}},"status":"Forbidden","code":403,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"error\": {\n    \"status\": 7501,\n    \"type\": \"string\",\n    \"value\": \"string\",\n    \"property_path\": \"string\",\n    \"property_description\": \"string\"\n  }\n}","cookie":[],"_postman_previewlanguage":"json"}],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["if (pm.response.code < 300) {","  pm.collectionVariables.set('payment_link_id', pm.response.json().id);","}"]}}],"protocolProfileBehavior":{"disableBodyPruning":true}},{"id":"10754f47-e4c2-4412-b120-81fad82b2cf8","name":"Get a payment link","request":{"name":"Get a payment link","description":{"content":"Retrieves a payment link with its status and every order created from it, by order ID with its status.\n","type":"text/plain"},"url":{"path":["v1","paymentlinks",":payment_link_id",""],"host":["{{baseUrl}}"],"query":[],"variable":[{"type":"any","value":"{{payment_link_id}}","key":"payment_link_id","disabled":false,"description":{"content":"(Required) The `id` of the payment link.","type":"text/plain"}}]},"header":[{"key":"Accept","value":"application/json"}],"method":"GET","body":{},"auth":null},"response":[{"id":"690f9abe-85dc-46ea-a088-c9c0af9e463d","name":"The payment link.","originalRequest":{"url":{"path":["v1","paymentlinks",":payment_link_id",""],"host":["{{baseUrl}}"],"query":[],"variable":[{"disabled":false,"description":{"content":"(Required) The `id` of the payment link.","type":"text/plain"},"type":"any","value":"a8c1b7b0-9c73-4bd8-94f4-37c3070e78c7","key":"payment_link_id"}]},"header":[{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"GET","body":{}},"status":"OK","code":200,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"id\": \"a8c1b7b0-9c73-4bd8-94f4-37c3070e78c7\",\n  \"merchant_order_id\": \"EXAMPLE001\",\n  \"amount\": 995,\n  \"currency\": \"EUR\",\n  \"description\": \"Invoice EXAMPLE001\",\n  \"expiration_period\": \"P20D\",\n  \"payment_url\": \"https://api.pay.paytrim.com/paymentlinks/a8c1b7b0-9c73-4bd8-94f4-37c3070e78c7/\",\n  \"created\": \"2026-10-12T15:39:12.773776Z\",\n  \"modified\": \"2026-10-12T16:18:37.196467Z\",\n  \"completed\": \"2026-10-12T16:18:32.574222Z\",\n  \"completed_order_id\": \"3bb663cc-2a20-400d-8bf6-18d9695d0c66\",\n  \"orders\": {\n    \"0d79014c-0aaa-4fd6-87c5-c8cfa5f5ac69\": \"error\",\n    \"3bb663cc-2a20-400d-8bf6-18d9695d0c66\": \"completed\"\n  },\n  \"payment_completed_url\": \"https://api.pay.paytrim.com/pay/3bb663cc-2a20-400d-8bf6-18d9695d0c66/select-payment-method/\",\n  \"payment_methods\": [\n    \"credit-card\",\n    \"apple-pay\",\n    \"google-pay\"\n  ],\n  \"return_url\": \"https://www.example.com/thank-you\",\n  \"webhook_url\": \"https://www.example.com/webhook\",\n  \"status\": \"completed\",\n  \"reason\": \"Payment Link was visited and at least 1 related order was completed\"\n}","cookie":[],"_postman_previewlanguage":"json"},{"id":"7d528684-ac72-4ceb-983f-30b051d3bd7d","name":"Authentication failed or is missing. Check your API key.","originalRequest":{"url":{"path":["v1","paymentlinks",":payment_link_id",""],"host":["{{baseUrl}}"],"query":[],"variable":[{"disabled":false,"description":{"content":"(Required) The `id` of the payment link.","type":"text/plain"},"type":"any","value":"a8c1b7b0-9c73-4bd8-94f4-37c3070e78c7","key":"payment_link_id"}]},"header":[{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"GET","body":{}},"status":"Unauthorized","code":401,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"error\": {\n    \"status\": 401,\n    \"type\": \"Unauthorized\",\n    \"value\": \"Unauthorized\"\n  }\n}","cookie":[],"_postman_previewlanguage":"json"},{"id":"4a543841-6e3c-470a-9409-158e64ce5044","name":"The order, transaction or payment link doesn't exist.","originalRequest":{"url":{"path":["v1","paymentlinks",":payment_link_id",""],"host":["{{baseUrl}}"],"query":[],"variable":[{"disabled":false,"description":{"content":"(Required) The `id` of the payment link.","type":"text/plain"},"type":"any","value":"a8c1b7b0-9c73-4bd8-94f4-37c3070e78c7","key":"payment_link_id"}]},"header":[{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"GET","body":{}},"status":"Not Found","code":404,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"error\": {\n    \"status\": 7501,\n    \"type\": \"string\",\n    \"value\": \"string\",\n    \"property_path\": \"string\",\n    \"property_description\": \"string\"\n  }\n}","cookie":[],"_postman_previewlanguage":"json"}],"event":[],"protocolProfileBehavior":{"disableBodyPruning":true}}]},{"name":"Apple Pay","description":"Process Apple Pay in your own checkout. These endpoints are only used in a server-to-server integration, not with the hosted payment page.","item":[{"id":"43067b2b-6ead-473b-a159-2783f384920d","name":"Start an Apple Pay session","request":{"name":"Start an Apple Pay session","description":{"content":"Validates your merchant session with Apple. Call it when Apple triggers the `onvalidatemerchant` event in the browser, and pass the `sessionData` from the response to `session.completeMerchantValidation()`. Only for a server-to-server integration with your own checkout: with the [hosted payment page](https://docs.pay.paytrim.com/hosted-payment-page) you don't call this endpoint.\n\nYour project must have Apple Pay enabled, with the domain of your payment page registered with Paytrim. Without the registered domain, the session can't be created.\n\n**Test environment:** with a test project and an Apple Pay sandbox tester account, send the same request to `/v1/apple-pay/test/sessions/` instead. Apple validates sandbox sessions on another gateway.\n\nSee [Apple Pay in your own checkout](https://docs.pay.paytrim.com/own-checkout/apple-pay).\n","type":"text/plain"},"url":{"path":["v1","apple-pay","sessions",""],"host":["{{baseUrl}}"],"query":[],"variable":[]},"header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"validationUrl\": \"https://apple-pay-gateway.apple.com/paymentservices/startSession\",\n  \"merchantIdentifier\": \"05ad138f52fa40dc97515fde949dcb57\",\n  \"displayName\": \"Example Shop\",\n  \"initiativeContext\": \"shop.example.com\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"auth":null},"response":[{"id":"39856280-3332-41f3-a6b7-7b750db86804","name":"The merchant session from Apple.","originalRequest":{"url":{"path":["v1","apple-pay","sessions",""],"host":["{{baseUrl}}"],"query":[],"variable":[]},"header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"validationUrl\": \"https://apple-pay-gateway.apple.com/paymentservices/startSession\",\n  \"merchantIdentifier\": \"05ad138f52fa40dc97515fde949dcb57\",\n  \"displayName\": \"Example Shop\",\n  \"initiativeContext\": \"shop.example.com\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}}},"status":"OK","code":200,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"sessionData\": [\n    \"\",\n    \"\"\n  ]\n}","cookie":[],"_postman_previewlanguage":"json"},{"id":"2afd8a2f-f5f0-4212-a06d-be82a4aad473","name":"The request is invalid, for example because a field is missing, the session couldn't be created with Apple, or the payment token couldn't be decrypted.","originalRequest":{"url":{"path":["v1","apple-pay","sessions",""],"host":["{{baseUrl}}"],"query":[],"variable":[]},"header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"validationUrl\": \"https://apple-pay-gateway.apple.com/paymentservices/startSession\",\n  \"merchantIdentifier\": \"05ad138f52fa40dc97515fde949dcb57\",\n  \"displayName\": \"Example Shop\",\n  \"initiativeContext\": \"shop.example.com\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}}},"status":"Bad Request","code":400,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"code\": 400,\n  \"message\": \"The token could not be decrypted\"\n}","cookie":[],"_postman_previewlanguage":"json"}],"event":[],"protocolProfileBehavior":{"disableBodyPruning":true}},{"id":"6f9c1076-d793-423e-a3de-32251f975241","name":"Store an Apple Pay payment token","request":{"name":"Store an Apple Pay payment token","description":{"content":"Decrypts the Apple Pay payment token and stores the card in the vault. Call it when Apple triggers the `onpaymentauthorized` event, with the contents of `event.payment.token.paymentData` and the `setup_token` of the transaction. Only for a server-to-server integration with your own checkout: with the [hosted payment page](https://docs.pay.paytrim.com/hosted-payment-page) you don't call this endpoint.\n\n**Test environment:** with a test project, send the same request to `/v1/apple-pay/test/payment-tokens/persist/` instead.\n\nApple describes the fields in its [payment token format reference](https://developer.apple.com/documentation/passkit/payment-token-format-reference#Payment-token-structure).\n","type":"text/plain"},"url":{"path":["v1","apple-pay","payment-tokens","persist",""],"host":["{{baseUrl}}"],"query":[],"variable":[]},"header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"setupToken\": \"c6d0a22b-df22-41a2-aac1-d647173ff219\",\n  \"data\": \"C+YChH...dTlaSmc=\",\n  \"signature\": \"MIAGCSqGSIb3DQ...==\",\n  \"header\": {\n    \"publicKeyHash\": \"yFMDm...s=\",\n    \"ephemeralPublicKey\": \"MFkwEwYHKo...SoHnSg==\",\n    \"transactionId\": \"878...4c52\"\n  },\n  \"version\": \"EC_v1\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"auth":null},"response":[{"id":"74381a74-575c-4357-84a5-79f51c03e8ff","name":"The payment details you need to execute the payment.","originalRequest":{"url":{"path":["v1","apple-pay","payment-tokens","persist",""],"host":["{{baseUrl}}"],"query":[],"variable":[]},"header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"setupToken\": \"c6d0a22b-df22-41a2-aac1-d647173ff219\",\n  \"data\": \"C+YChH...dTlaSmc=\",\n  \"signature\": \"MIAGCSqGSIb3DQ...==\",\n  \"header\": {\n    \"publicKeyHash\": \"yFMDm...s=\",\n    \"ephemeralPublicKey\": \"MFkwEwYHKo...SoHnSg==\",\n    \"transactionId\": \"878...4c52\"\n  },\n  \"version\": \"EC_v1\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}}},"status":"OK","code":200,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"vaultToken\": \"d972dc43-6a3d-4dcf-b54e-6e9a0fe325e3\",\n  \"onlinePaymentCryptogram\": \"AgAAAAAABk4DWZ4C28yUQAAAAAA=\",\n  \"eciIndicator\": \"7\"\n}","cookie":[],"_postman_previewlanguage":"json"},{"id":"e3152458-d623-4d38-8cfa-a7a78c3834a4","name":"The request is invalid, for example because a field is missing, the session couldn't be created with Apple, or the payment token couldn't be decrypted.","originalRequest":{"url":{"path":["v1","apple-pay","payment-tokens","persist",""],"host":["{{baseUrl}}"],"query":[],"variable":[]},"header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"setupToken\": \"c6d0a22b-df22-41a2-aac1-d647173ff219\",\n  \"data\": \"C+YChH...dTlaSmc=\",\n  \"signature\": \"MIAGCSqGSIb3DQ...==\",\n  \"header\": {\n    \"publicKeyHash\": \"yFMDm...s=\",\n    \"ephemeralPublicKey\": \"MFkwEwYHKo...SoHnSg==\",\n    \"transactionId\": \"878...4c52\"\n  },\n  \"version\": \"EC_v1\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}}},"status":"Bad Request","code":400,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"code\": 400,\n  \"message\": \"The token could not be decrypted\"\n}","cookie":[],"_postman_previewlanguage":"json"}],"event":[],"protocolProfileBehavior":{"disableBodyPruning":true}},{"id":"b6420905-e55d-488d-8368-23b112eca9c6","name":"Execute an Apple Pay payment","request":{"name":"Execute an Apple Pay payment","description":{"content":"Processes the Apple Pay transaction with the `vaultToken`, `onlinePaymentCryptogram` and `eciIndicator` from [storing the payment token](https://docs.pay.paytrim.com/api-reference/apple-pay/persist-apple-pay-token). Only for a server-to-server integration with your own checkout: with the [hosted payment page](https://docs.pay.paytrim.com/hosted-payment-page) you don't call this endpoint. Send the `Accept: application/json` header to get a JSON response, without it the response is a redirect to the result page. No API key is needed.\n\nRedirect your customer to the `redirect_url` in the response, then [retrieve the order](https://docs.pay.paytrim.com/api-reference/orders/get-order) to confirm the payment.\n","type":"text/plain"},"url":{"path":["pay",":order_id","select-payment-method","apple-pay",":transaction_id",""],"host":["{{baseUrl}}"],"query":[],"variable":[{"type":"any","value":"{{order_id}}","key":"order_id","disabled":false,"description":{"content":"(Required) The `id` of the order.","type":"text/plain"}},{"type":"any","value":"{{transaction_id}}","key":"transaction_id","disabled":false,"description":{"content":"(Required) The `id` of the transaction, from the `transactions` of the order.","type":"text/plain"}}]},"header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"vault_token\": \"d972dc43-6a3d-4dcf-b54e-6e9a0fe325e3\",\n  \"online_payment_cryptogram\": \"AgAAAAAABk4DWZ4C28yUQAAAAAA=\",\n  \"eci_indicator\": \"7\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"auth":null},"response":[{"id":"7273ffdf-f19b-406e-a038-cb89973aa42a","name":"The payment has been processed.","originalRequest":{"url":{"path":["pay",":order_id","select-payment-method","apple-pay",":transaction_id",""],"host":["{{baseUrl}}"],"query":[],"variable":[{"disabled":false,"description":{"content":"(Required) The `id` of the order.","type":"text/plain"},"type":"any","value":"8078d78f-8700-4cfe-94b1-4a777d3400f2","key":"order_id"},{"disabled":false,"description":{"content":"(Required) The `id` of the transaction, from the `transactions` of the order.","type":"text/plain"},"type":"any","value":"a5dac3de-d304-4570-922b-373d478b8b3a","key":"transaction_id"}]},"header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"vault_token\": \"d972dc43-6a3d-4dcf-b54e-6e9a0fe325e3\",\n  \"online_payment_cryptogram\": \"AgAAAAAABk4DWZ4C28yUQAAAAAA=\",\n  \"eci_indicator\": \"7\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}}},"status":"OK","code":200,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"is_successful\": true,\n  \"redirect_url\": \"https://api.pay.paytrim.com/pay/6bf8a727-bef2-4420-8d41-af82f6f19f3d/59f5866a-c216-472e-b803-8a4e83c4578a/completed/\"\n}","cookie":[],"_postman_previewlanguage":"json"}],"event":[],"protocolProfileBehavior":{"disableBodyPruning":true}}]},{"name":"Google Pay","description":"Process Google Pay in your own checkout. These endpoints are only used in a server-to-server integration, not with the hosted payment page.","item":[{"id":"140b95a5-0731-4dfb-bdec-98a36fde2cee","name":"Store a Google Pay payment token","request":{"name":"Store a Google Pay payment token","description":{"content":"Decrypts the Google Pay payment token and stores the card in the vault. Call it with the token from `paymentData.paymentMethodData.tokenizationData.token`, as the string Google returns it, and the `setup_token` and `id` of the Google Pay transaction. Only for a server-to-server integration with your own checkout: with the [hosted payment page](https://docs.pay.paytrim.com/hosted-payment-page) you don't call this endpoint.\n\nNo API key is needed, the `setupToken` identifies the transaction.\n\n**Test environment:** for a token from Google's test environment, when your Google Pay payment request has `environment` set to `TEST`, send the same request to `https://google-pay.pay.paytrim.com/test/tokens/` instead. Google encrypts those tokens with other keys, and their test cards are mapped to Paytrim test cards, so the payment can be completed in a test project.\n","type":"text/plain"},"url":{"path":["tokens",""],"host":["https://google-pay.pay.paytrim.com"],"query":[],"variable":[]},"header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"googlePayMessage\": \"{\\\"signature\\\":\\\"MEUCIQDXc...03d\\\",\\\"protocolVersion\\\":\\\"ECv2\\\",\\\"signedMessage\\\":\\\"...\\\"}\",\n  \"setupToken\": \"c6d0a22b-df22-41a2-aac1-d647173ff219\",\n  \"transactionId\": \"59f5866a-c216-472e-b803-8a4e83c4578a\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"auth":null},"response":[{"id":"758f281a-97e9-4759-8c0b-6d79d00c26d9","name":"The card has been stored. The response contains what you need to execute the payment.","originalRequest":{"url":{"path":["tokens",""],"host":["https://google-pay.pay.paytrim.com"],"query":[],"variable":[]},"header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"googlePayMessage\": \"{\\\"signature\\\":\\\"MEUCIQDXc...03d\\\",\\\"protocolVersion\\\":\\\"ECv2\\\",\\\"signedMessage\\\":\\\"...\\\"}\",\n  \"setupToken\": \"c6d0a22b-df22-41a2-aac1-d647173ff219\",\n  \"transactionId\": \"59f5866a-c216-472e-b803-8a4e83c4578a\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}}},"status":"Created","code":201,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"vaultToken\": \"d972dc43-6a3d-4dcf-b54e-6e9a0fe325e3\",\n  \"cryptogram\": \"AgAAAAAABk4DWZ4C28yUQAAAAAA=\",\n  \"eciIndicator\": \"05\"\n}","cookie":[],"_postman_previewlanguage":"json"},{"id":"d4a06743-b72c-4389-88c6-a5e20afb8c4f","name":"The request is invalid, for example because the JSON is malformed, the token can't be decrypted, the token was issued for another merchant, or the card couldn't be stored.","originalRequest":{"url":{"path":["tokens",""],"host":["https://google-pay.pay.paytrim.com"],"query":[],"variable":[]},"header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"googlePayMessage\": \"{\\\"signature\\\":\\\"MEUCIQDXc...03d\\\",\\\"protocolVersion\\\":\\\"ECv2\\\",\\\"signedMessage\\\":\\\"...\\\"}\",\n  \"setupToken\": \"c6d0a22b-df22-41a2-aac1-d647173ff219\",\n  \"transactionId\": \"59f5866a-c216-472e-b803-8a4e83c4578a\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}}},"status":"Bad Request","code":400,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"reason\": \"Invalid token submitted\"\n}","cookie":[],"_postman_previewlanguage":"json"},{"id":"fbcd0f2c-ba23-433f-9e41-7a478c95fcd3","name":"The `setupToken` is unknown, expired or already used.","originalRequest":{"url":{"path":["tokens",""],"host":["https://google-pay.pay.paytrim.com"],"query":[],"variable":[]},"header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"googlePayMessage\": \"{\\\"signature\\\":\\\"MEUCIQDXc...03d\\\",\\\"protocolVersion\\\":\\\"ECv2\\\",\\\"signedMessage\\\":\\\"...\\\"}\",\n  \"setupToken\": \"c6d0a22b-df22-41a2-aac1-d647173ff219\",\n  \"transactionId\": \"59f5866a-c216-472e-b803-8a4e83c4578a\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}}},"status":"Not Found","code":404,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"reason\": \"Setup token not found\"\n}","cookie":[],"_postman_previewlanguage":"json"}],"event":[],"protocolProfileBehavior":{"disableBodyPruning":true}},{"id":"c76faf54-1403-443c-a45e-b8c9e3b1c502","name":"Execute a Google Pay payment","request":{"name":"Execute a Google Pay payment","description":{"content":"Processes the Google Pay transaction with the `vaultToken`, `cryptogram` and `eciIndicator` from [storing the payment token](https://docs.pay.paytrim.com/api-reference/google-pay/persist-google-pay-token), and the browser details of your customer for 3-D Secure. No API key is needed. Only for a server-to-server integration with your own checkout: with the [hosted payment page](https://docs.pay.paytrim.com/hosted-payment-page) you don't call this endpoint.\n\nRedirect your customer to the `redirect_url` in the response. Without a `cryptogram`, the card was returned as `PAN_ONLY` and the `redirect_url` leads to 3-D Secure authentication. Then [retrieve the order](https://docs.pay.paytrim.com/api-reference/orders/get-order) to confirm the payment.\n","type":"text/plain"},"url":{"path":["pay",":order_id","select-payment-method","google-pay",":transaction_id",""],"host":["{{baseUrl}}"],"query":[],"variable":[{"type":"any","value":"{{order_id}}","key":"order_id","disabled":false,"description":{"content":"(Required) The `id` of the order.","type":"text/plain"}},{"type":"any","value":"{{transaction_id}}","key":"transaction_id","disabled":false,"description":{"content":"(Required) The `id` of the transaction, from the `transactions` of the order.","type":"text/plain"}}]},"header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"vaultToken\": \"d972dc43-6a3d-4dcf-b54e-6e9a0fe325e3\",\n  \"cryptogram\": \"AgAAAAAABk4DWZ4C28yUQAAAAAA=\",\n  \"eciIndicator\": \"05\",\n  \"browser_info_screen_width\": 1920,\n  \"browser_info_screen_height\": 1080,\n  \"browser_info_color_depth\": 24,\n  \"browser_info_user_agent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36\",\n  \"browser_info_time_zone_offset\": 0,\n  \"browser_info_language\": \"en-US\",\n  \"browser_info_java_enabled\": \"false\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"auth":null},"response":[{"id":"343cb2bd-875a-46ec-b266-fb5e5e85a1d0","name":"The payment has been started.","originalRequest":{"url":{"path":["pay",":order_id","select-payment-method","google-pay",":transaction_id",""],"host":["{{baseUrl}}"],"query":[],"variable":[{"disabled":false,"description":{"content":"(Required) The `id` of the order.","type":"text/plain"},"type":"any","value":"8078d78f-8700-4cfe-94b1-4a777d3400f2","key":"order_id"},{"disabled":false,"description":{"content":"(Required) The `id` of the transaction, from the `transactions` of the order.","type":"text/plain"},"type":"any","value":"a5dac3de-d304-4570-922b-373d478b8b3a","key":"transaction_id"}]},"header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"vaultToken\": \"d972dc43-6a3d-4dcf-b54e-6e9a0fe325e3\",\n  \"cryptogram\": \"AgAAAAAABk4DWZ4C28yUQAAAAAA=\",\n  \"eciIndicator\": \"05\",\n  \"browser_info_screen_width\": 1920,\n  \"browser_info_screen_height\": 1080,\n  \"browser_info_color_depth\": 24,\n  \"browser_info_user_agent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36\",\n  \"browser_info_time_zone_offset\": 0,\n  \"browser_info_language\": \"en-US\",\n  \"browser_info_java_enabled\": \"false\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}}},"status":"OK","code":200,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"is_successful\": true,\n  \"redirect_url\": \"https://api.pay.paytrim.com/pay/6bf8a727-bef2-4420-8d41-af82f6f19f3d/59f5866a-c216-472e-b803-8a4e83c4578a/completed/\"\n}","cookie":[],"_postman_previewlanguage":"json"}],"event":[],"protocolProfileBehavior":{"disableBodyPruning":true}}]},{"name":"Reports","description":"Search your orders and export them as CSV.","item":[{"id":"1f213793-1a98-47c5-acb6-7b1e5e0db852","name":"Search orders","request":{"name":"Search orders","description":{"content":"Finds orders with a query and returns them as JSON, or as a CSV [transaction report](https://docs.pay.paytrim.com/transaction-report) with `?format=csv`.\n\nSimple paging with `start` and `size` returns at most 10,000 results. Use `search_after` for more.\n","type":"text/plain"},"url":{"path":["v1","search","orders",""],"host":["{{baseUrl}}"],"query":[{"disabled":true,"description":{"content":"`csv` returns a CSV report instead of JSON. (This can only be one of csv)","type":"text/plain"},"key":"format","value":"csv"}],"variable":[]},"header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"query\": \"*\",\n  \"size\": 100,\n  \"start\": 1,\n  \"sort\": \"created asc\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"auth":null},"response":[{"id":"fe9eb3d7-8be8-4cc8-8193-f7819b10335b","name":"The matching orders, as JSON or as a CSV report with one row per transaction.","originalRequest":{"url":{"path":["v1","search","orders",""],"host":["{{baseUrl}}"],"query":[{"disabled":true,"description":{"content":"`csv` returns a CSV report instead of JSON. (This can only be one of csv)","type":"text/plain"},"key":"format","value":"csv"}],"variable":[]},"header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"query\": \"*\",\n  \"size\": 100,\n  \"start\": 1,\n  \"sort\": \"created asc\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}}},"status":"OK","code":200,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"hits\": 1,\n  \"orders\": [\n    {\n      \"id\": \"8bb4c444-66ea-4eba-b7c8-fb7ae32bb4fe\",\n      \"project_id\": \"05ad138f-52fa-40dc-9751-5fde949dcb57\",\n      \"merchant_id\": \"b251b220-5d8b-4b9d-9915-b89676dc0948\",\n      \"merchant_order_id\": \"EXAMPLE001\",\n      \"created\": \"2026-10-09T10:43:13.905092+00:00\",\n      \"modified\": \"2026-10-09T10:43:15.112340+00:00\",\n      \"completed\": \"2026-10-09T10:43:15.112340+00:00\",\n      \"currency\": \"GBP\",\n      \"amount\": 995,\n      \"status\": \"completed\",\n      \"transactions\": [\n        {\n          \"id\": \"e0b704ee-e0de-4aec-9e4c-dc597e54418d\",\n          \"order_id\": \"8bb4c444-66ea-4eba-b7c8-fb7ae32bb4fe\",\n          \"payment_method\": \"credit-card\",\n          \"payment_method_brand\": \"visa\",\n          \"amount\": 995,\n          \"currency\": \"GBP\",\n          \"status\": \"accepted\"\n        }\n      ]\n    }\n  ]\n}","cookie":[],"_postman_previewlanguage":"json"},{"id":"ed44f27e-f07c-4f49-8c9b-33941d7060be","name":"The query or sort value is invalid, or `start` was combined with `search_after`.","originalRequest":{"url":{"path":["v1","search","orders",""],"host":["{{baseUrl}}"],"query":[{"disabled":true,"description":{"content":"`csv` returns a CSV report instead of JSON. (This can only be one of csv)","type":"text/plain"},"key":"format","value":"csv"}],"variable":[]},"header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"query\": \"*\",\n  \"size\": 100,\n  \"start\": 1,\n  \"sort\": \"created asc\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}}},"status":"Bad Request","code":400,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"error\": \"Search failed because of your input, check the query and sort values.\"\n}","cookie":[],"_postman_previewlanguage":"json"},{"id":"bb095f4f-b537-4a7a-aef3-75905515a69d","name":"Authentication failed or is missing. Check your API key.","originalRequest":{"url":{"path":["v1","search","orders",""],"host":["{{baseUrl}}"],"query":[{"disabled":true,"description":{"content":"`csv` returns a CSV report instead of JSON. (This can only be one of csv)","type":"text/plain"},"key":"format","value":"csv"}],"variable":[]},"header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"query\": \"*\",\n  \"size\": 100,\n  \"start\": 1,\n  \"sort\": \"created asc\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}}},"status":"Unauthorized","code":401,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"error\": {\n    \"status\": 401,\n    \"type\": \"Unauthorized\",\n    \"value\": \"Unauthorized\"\n  }\n}","cookie":[],"_postman_previewlanguage":"json"},{"id":"73c00b78-b766-4382-8d4b-94b7dff6376f","name":"Too many search requests at once. Wait and try again.","originalRequest":{"url":{"path":["v1","search","orders",""],"host":["{{baseUrl}}"],"query":[{"disabled":true,"description":{"content":"`csv` returns a CSV report instead of JSON. (This can only be one of csv)","type":"text/plain"},"key":"format","value":"csv"}],"variable":[]},"header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"POST","body":{"mode":"raw","raw":"{\n  \"query\": \"*\",\n  \"size\": 100,\n  \"start\": 1,\n  \"sort\": \"created asc\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}}},"status":"Too Many Requests","code":429,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"error\": \"Search failed because of too many requests, please try again later.\"\n}","cookie":[],"_postman_previewlanguage":"json"}],"event":[],"protocolProfileBehavior":{"disableBodyPruning":true}}]},{"name":"Project","description":"Settings of the project that your API key belongs to.","item":[{"id":"8fcf5327-a034-4892-95e2-532c7a2f43a8","name":"Get supported currencies","request":{"name":"Get supported currencies","description":{"content":"Lists the currencies you can use, per payment method that's active in your project. Currencies are ISO 4217 codes.","type":"text/plain"},"url":{"path":["v1","merchants","self","projects","self","currencies",""],"host":["{{baseUrl}}"],"query":[],"variable":[]},"header":[{"key":"Accept","value":"application/json"}],"method":"GET","body":{},"auth":null},"response":[{"id":"b93d1d45-d801-41f9-a5a2-94ded8364201","name":"The currencies per payment method.","originalRequest":{"url":{"path":["v1","merchants","self","projects","self","currencies",""],"host":["{{baseUrl}}"],"query":[],"variable":[]},"header":[{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"GET","body":{}},"status":"OK","code":200,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"payment_methods\": {\n    \"credit-card\": {\n      \"currencies\": [\n        \"EUR\",\n        \"GBP\",\n        \"USD\"\n      ]\n    },\n    \"apple-pay\": {\n      \"currencies\": [\n        \"EUR\",\n        \"GBP\"\n      ]\n    },\n    \"google-pay\": {\n      \"currencies\": [\n        \"EUR\",\n        \"GBP\"\n      ]\n    }\n  }\n}","cookie":[],"_postman_previewlanguage":"json"},{"id":"7e79bf26-7bd7-4a6a-9baf-9678deb984a6","name":"Authentication failed or is missing. Check your API key.","originalRequest":{"url":{"path":["v1","merchants","self","projects","self","currencies",""],"host":["{{baseUrl}}"],"query":[],"variable":[]},"header":[{"key":"Accept","value":"application/json"},{"description":{"content":"Added as a part of security scheme: basic","type":"text/plain"},"key":"Authorization","value":"Basic <credentials>"}],"method":"GET","body":{}},"status":"Unauthorized","code":401,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n  \"error\": {\n    \"status\": 401,\n    \"type\": \"Unauthorized\",\n    \"value\": \"Unauthorized\"\n  }\n}","cookie":[],"_postman_previewlanguage":"json"}],"event":[],"protocolProfileBehavior":{"disableBodyPruning":true}}]}],"auth":{"type":"basic","basic":[{"key":"username","value":"{{apiKey}}","type":"string"},{"key":"password","value":"","type":"string"}]},"event":[],"variable":[{"key":"baseUrl","value":"https://api.pay.paytrim.com"},{"key":"order_id","value":"","description":"Set by Create an order and Get an order."},{"key":"transaction_id","value":"","description":"The latest transaction of the order, set by Create an order and Get an order."},{"key":"payment_link_id","value":"","description":"Set by Create a payment link."},{"key":"apiKey","value":"","description":"Your project's API key. Only use it from your server."}],"info":{"_postman_id":"cc0aa377-bc2f-4a35-9919-c11dc4f126b2","name":"Paytrim Payment Acceptance API","schema":"https://schema.getpostman.com/json/collection/v2.1.0/collection.json","description":{"content":"Create orders, take card, Apple Pay and Google Pay payments, and capture, void and refund them.\n\nAll requests go to `https://api.pay.paytrim.com` over HTTPS with TLS 1.2 or newer.\nAuthenticate with HTTP Basic authentication: your API key is the username, the password is empty.\nSee [API basics](https://docs.pay.paytrim.com/api-basics).\n","type":"text/plain"}}}