From bf09a1ba12b0faf97b611f57c8e6235c185a5636 Mon Sep 17 00:00:00 2001 From: AdyenAutomationBot Date: Wed, 2 Oct 2024 13:16:20 +0000 Subject: [PATCH] Update latest definitions files --- postman/CheckoutService-v37.json | 244 ++++++++++++++++++++++++++++++ postman/CheckoutService-v40.json | 244 ++++++++++++++++++++++++++++++ postman/CheckoutService-v41.json | 244 ++++++++++++++++++++++++++++++ postman/CheckoutService-v46.json | 244 ++++++++++++++++++++++++++++++ postman/CheckoutService-v49.json | 244 ++++++++++++++++++++++++++++++ postman/CheckoutService-v50.json | 244 ++++++++++++++++++++++++++++++ postman/CheckoutService-v51.json | 244 ++++++++++++++++++++++++++++++ postman/CheckoutService-v52.json | 244 ++++++++++++++++++++++++++++++ postman/CheckoutService-v53.json | 244 ++++++++++++++++++++++++++++++ postman/CheckoutService-v64.json | 244 ++++++++++++++++++++++++++++++ postman/CheckoutService-v65.json | 244 ++++++++++++++++++++++++++++++ postman/CheckoutService-v66.json | 244 ++++++++++++++++++++++++++++++ postman/CheckoutService-v67.json | 244 ++++++++++++++++++++++++++++++ postman/CheckoutService-v68.json | 244 ++++++++++++++++++++++++++++++ postman/CheckoutService-v69.json | 244 ++++++++++++++++++++++++++++++ postman/CheckoutService-v70.json | 250 ++++++++++++++++++++++++++++++- postman/CheckoutService-v71.json | 250 ++++++++++++++++++++++++++++++- 17 files changed, 4154 insertions(+), 6 deletions(-) diff --git a/postman/CheckoutService-v37.json b/postman/CheckoutService-v37.json index 41df294..ce73f36 100644 --- a/postman/CheckoutService-v37.json +++ b/postman/CheckoutService-v37.json @@ -504,6 +504,250 @@ ] }, "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + } + ] + }, + { + "name": "Capture and split an authorised payment between balance accounts", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + ,"response": [ + {"name": "Created - the request has been fulfilled and has resulted in one or more new resources being created.", + "code": 201, + "status": "Created", + "header": [{ + "key": "Content-Type", + "value": "application/json"} + ], + "_postman_previewlanguage": "json", + "cookie": [], + "body" : "{\n \"merchantAccount\": \"YOUR_MERCHANT_ACCOUNT\",\n \"paymentPspReference\": \"993617894903480A\",\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"pspReference\": \"993617894906488A\",\n \"status\": \"received\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + } + ] + }, + { + "name": "Capture and split an authorised payment in the Classic Platforms integration", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + ,"response": [ + {"name": "Created - the request has been fulfilled and has resulted in one or more new resources being created.", + "code": 201, + "status": "Created", + "header": [{ + "key": "Content-Type", + "value": "application/json"} + ], + "_postman_previewlanguage": "json", + "cookie": [], + "body" : "{\n \"merchantAccount\": \"YOUR_MERCHANT_ACCOUNT\",\n \"paymentPspReference\": \"993617894903480A\",\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"pspReference\": \"993617894906488A\",\n \"status\": \"received\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." } } ] diff --git a/postman/CheckoutService-v40.json b/postman/CheckoutService-v40.json index cdda371..f4caa84 100644 --- a/postman/CheckoutService-v40.json +++ b/postman/CheckoutService-v40.json @@ -504,6 +504,250 @@ ] }, "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + } + ] + }, + { + "name": "Capture and split an authorised payment between balance accounts", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + ,"response": [ + {"name": "Created - the request has been fulfilled and has resulted in one or more new resources being created.", + "code": 201, + "status": "Created", + "header": [{ + "key": "Content-Type", + "value": "application/json"} + ], + "_postman_previewlanguage": "json", + "cookie": [], + "body" : "{\n \"merchantAccount\": \"YOUR_MERCHANT_ACCOUNT\",\n \"paymentPspReference\": \"993617894903480A\",\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"pspReference\": \"993617894906488A\",\n \"status\": \"received\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + } + ] + }, + { + "name": "Capture and split an authorised payment in the Classic Platforms integration", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + ,"response": [ + {"name": "Created - the request has been fulfilled and has resulted in one or more new resources being created.", + "code": 201, + "status": "Created", + "header": [{ + "key": "Content-Type", + "value": "application/json"} + ], + "_postman_previewlanguage": "json", + "cookie": [], + "body" : "{\n \"merchantAccount\": \"YOUR_MERCHANT_ACCOUNT\",\n \"paymentPspReference\": \"993617894903480A\",\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"pspReference\": \"993617894906488A\",\n \"status\": \"received\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." } } ] diff --git a/postman/CheckoutService-v41.json b/postman/CheckoutService-v41.json index 5f0093a..13c5a8c 100644 --- a/postman/CheckoutService-v41.json +++ b/postman/CheckoutService-v41.json @@ -504,6 +504,250 @@ ] }, "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + } + ] + }, + { + "name": "Capture and split an authorised payment between balance accounts", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + ,"response": [ + {"name": "Created - the request has been fulfilled and has resulted in one or more new resources being created.", + "code": 201, + "status": "Created", + "header": [{ + "key": "Content-Type", + "value": "application/json"} + ], + "_postman_previewlanguage": "json", + "cookie": [], + "body" : "{\n \"merchantAccount\": \"YOUR_MERCHANT_ACCOUNT\",\n \"paymentPspReference\": \"993617894903480A\",\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"pspReference\": \"993617894906488A\",\n \"status\": \"received\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + } + ] + }, + { + "name": "Capture and split an authorised payment in the Classic Platforms integration", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + ,"response": [ + {"name": "Created - the request has been fulfilled and has resulted in one or more new resources being created.", + "code": 201, + "status": "Created", + "header": [{ + "key": "Content-Type", + "value": "application/json"} + ], + "_postman_previewlanguage": "json", + "cookie": [], + "body" : "{\n \"merchantAccount\": \"YOUR_MERCHANT_ACCOUNT\",\n \"paymentPspReference\": \"993617894903480A\",\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"pspReference\": \"993617894906488A\",\n \"status\": \"received\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." } } ] diff --git a/postman/CheckoutService-v46.json b/postman/CheckoutService-v46.json index c14c8d0..1816183 100644 --- a/postman/CheckoutService-v46.json +++ b/postman/CheckoutService-v46.json @@ -504,6 +504,250 @@ ] }, "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + } + ] + }, + { + "name": "Capture and split an authorised payment between balance accounts", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + ,"response": [ + {"name": "Created - the request has been fulfilled and has resulted in one or more new resources being created.", + "code": 201, + "status": "Created", + "header": [{ + "key": "Content-Type", + "value": "application/json"} + ], + "_postman_previewlanguage": "json", + "cookie": [], + "body" : "{\n \"merchantAccount\": \"YOUR_MERCHANT_ACCOUNT\",\n \"paymentPspReference\": \"993617894903480A\",\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"pspReference\": \"993617894906488A\",\n \"status\": \"received\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + } + ] + }, + { + "name": "Capture and split an authorised payment in the Classic Platforms integration", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + ,"response": [ + {"name": "Created - the request has been fulfilled and has resulted in one or more new resources being created.", + "code": 201, + "status": "Created", + "header": [{ + "key": "Content-Type", + "value": "application/json"} + ], + "_postman_previewlanguage": "json", + "cookie": [], + "body" : "{\n \"merchantAccount\": \"YOUR_MERCHANT_ACCOUNT\",\n \"paymentPspReference\": \"993617894903480A\",\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"pspReference\": \"993617894906488A\",\n \"status\": \"received\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." } } ] diff --git a/postman/CheckoutService-v49.json b/postman/CheckoutService-v49.json index 21fb5d8..25b4ec9 100644 --- a/postman/CheckoutService-v49.json +++ b/postman/CheckoutService-v49.json @@ -504,6 +504,250 @@ ] }, "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + } + ] + }, + { + "name": "Capture and split an authorised payment between balance accounts", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + ,"response": [ + {"name": "Created - the request has been fulfilled and has resulted in one or more new resources being created.", + "code": 201, + "status": "Created", + "header": [{ + "key": "Content-Type", + "value": "application/json"} + ], + "_postman_previewlanguage": "json", + "cookie": [], + "body" : "{\n \"merchantAccount\": \"YOUR_MERCHANT_ACCOUNT\",\n \"paymentPspReference\": \"993617894903480A\",\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"pspReference\": \"993617894906488A\",\n \"status\": \"received\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + } + ] + }, + { + "name": "Capture and split an authorised payment in the Classic Platforms integration", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + ,"response": [ + {"name": "Created - the request has been fulfilled and has resulted in one or more new resources being created.", + "code": 201, + "status": "Created", + "header": [{ + "key": "Content-Type", + "value": "application/json"} + ], + "_postman_previewlanguage": "json", + "cookie": [], + "body" : "{\n \"merchantAccount\": \"YOUR_MERCHANT_ACCOUNT\",\n \"paymentPspReference\": \"993617894903480A\",\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"pspReference\": \"993617894906488A\",\n \"status\": \"received\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." } } ] diff --git a/postman/CheckoutService-v50.json b/postman/CheckoutService-v50.json index 5bebd8c..43b96da 100644 --- a/postman/CheckoutService-v50.json +++ b/postman/CheckoutService-v50.json @@ -504,6 +504,250 @@ ] }, "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + } + ] + }, + { + "name": "Capture and split an authorised payment between balance accounts", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + ,"response": [ + {"name": "Created - the request has been fulfilled and has resulted in one or more new resources being created.", + "code": 201, + "status": "Created", + "header": [{ + "key": "Content-Type", + "value": "application/json"} + ], + "_postman_previewlanguage": "json", + "cookie": [], + "body" : "{\n \"merchantAccount\": \"YOUR_MERCHANT_ACCOUNT\",\n \"paymentPspReference\": \"993617894903480A\",\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"pspReference\": \"993617894906488A\",\n \"status\": \"received\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + } + ] + }, + { + "name": "Capture and split an authorised payment in the Classic Platforms integration", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + ,"response": [ + {"name": "Created - the request has been fulfilled and has resulted in one or more new resources being created.", + "code": 201, + "status": "Created", + "header": [{ + "key": "Content-Type", + "value": "application/json"} + ], + "_postman_previewlanguage": "json", + "cookie": [], + "body" : "{\n \"merchantAccount\": \"YOUR_MERCHANT_ACCOUNT\",\n \"paymentPspReference\": \"993617894903480A\",\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"pspReference\": \"993617894906488A\",\n \"status\": \"received\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." } } ] diff --git a/postman/CheckoutService-v51.json b/postman/CheckoutService-v51.json index fbbf0c6..8e8fcff 100644 --- a/postman/CheckoutService-v51.json +++ b/postman/CheckoutService-v51.json @@ -504,6 +504,250 @@ ] }, "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + } + ] + }, + { + "name": "Capture and split an authorised payment between balance accounts", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + ,"response": [ + {"name": "Created - the request has been fulfilled and has resulted in one or more new resources being created.", + "code": 201, + "status": "Created", + "header": [{ + "key": "Content-Type", + "value": "application/json"} + ], + "_postman_previewlanguage": "json", + "cookie": [], + "body" : "{\n \"merchantAccount\": \"YOUR_MERCHANT_ACCOUNT\",\n \"paymentPspReference\": \"993617894903480A\",\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"pspReference\": \"993617894906488A\",\n \"status\": \"received\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + } + ] + }, + { + "name": "Capture and split an authorised payment in the Classic Platforms integration", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + ,"response": [ + {"name": "Created - the request has been fulfilled and has resulted in one or more new resources being created.", + "code": 201, + "status": "Created", + "header": [{ + "key": "Content-Type", + "value": "application/json"} + ], + "_postman_previewlanguage": "json", + "cookie": [], + "body" : "{\n \"merchantAccount\": \"YOUR_MERCHANT_ACCOUNT\",\n \"paymentPspReference\": \"993617894903480A\",\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"pspReference\": \"993617894906488A\",\n \"status\": \"received\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." } } ] diff --git a/postman/CheckoutService-v52.json b/postman/CheckoutService-v52.json index c07db99..4e7173c 100644 --- a/postman/CheckoutService-v52.json +++ b/postman/CheckoutService-v52.json @@ -504,6 +504,250 @@ ] }, "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + } + ] + }, + { + "name": "Capture and split an authorised payment between balance accounts", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + ,"response": [ + {"name": "Created - the request has been fulfilled and has resulted in one or more new resources being created.", + "code": 201, + "status": "Created", + "header": [{ + "key": "Content-Type", + "value": "application/json"} + ], + "_postman_previewlanguage": "json", + "cookie": [], + "body" : "{\n \"merchantAccount\": \"YOUR_MERCHANT_ACCOUNT\",\n \"paymentPspReference\": \"993617894903480A\",\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"pspReference\": \"993617894906488A\",\n \"status\": \"received\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + } + ] + }, + { + "name": "Capture and split an authorised payment in the Classic Platforms integration", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + ,"response": [ + {"name": "Created - the request has been fulfilled and has resulted in one or more new resources being created.", + "code": 201, + "status": "Created", + "header": [{ + "key": "Content-Type", + "value": "application/json"} + ], + "_postman_previewlanguage": "json", + "cookie": [], + "body" : "{\n \"merchantAccount\": \"YOUR_MERCHANT_ACCOUNT\",\n \"paymentPspReference\": \"993617894903480A\",\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"pspReference\": \"993617894906488A\",\n \"status\": \"received\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." } } ] diff --git a/postman/CheckoutService-v53.json b/postman/CheckoutService-v53.json index 0aca536..e73163e 100644 --- a/postman/CheckoutService-v53.json +++ b/postman/CheckoutService-v53.json @@ -504,6 +504,250 @@ ] }, "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + } + ] + }, + { + "name": "Capture and split an authorised payment between balance accounts", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + ,"response": [ + {"name": "Created - the request has been fulfilled and has resulted in one or more new resources being created.", + "code": 201, + "status": "Created", + "header": [{ + "key": "Content-Type", + "value": "application/json"} + ], + "_postman_previewlanguage": "json", + "cookie": [], + "body" : "{\n \"merchantAccount\": \"YOUR_MERCHANT_ACCOUNT\",\n \"paymentPspReference\": \"993617894903480A\",\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"pspReference\": \"993617894906488A\",\n \"status\": \"received\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + } + ] + }, + { + "name": "Capture and split an authorised payment in the Classic Platforms integration", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + ,"response": [ + {"name": "Created - the request has been fulfilled and has resulted in one or more new resources being created.", + "code": 201, + "status": "Created", + "header": [{ + "key": "Content-Type", + "value": "application/json"} + ], + "_postman_previewlanguage": "json", + "cookie": [], + "body" : "{\n \"merchantAccount\": \"YOUR_MERCHANT_ACCOUNT\",\n \"paymentPspReference\": \"993617894903480A\",\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"pspReference\": \"993617894906488A\",\n \"status\": \"received\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." } } ] diff --git a/postman/CheckoutService-v64.json b/postman/CheckoutService-v64.json index 59a804a..3e81083 100644 --- a/postman/CheckoutService-v64.json +++ b/postman/CheckoutService-v64.json @@ -504,6 +504,250 @@ ] }, "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + } + ] + }, + { + "name": "Capture and split an authorised payment between balance accounts", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + ,"response": [ + {"name": "Created - the request has been fulfilled and has resulted in one or more new resources being created.", + "code": 201, + "status": "Created", + "header": [{ + "key": "Content-Type", + "value": "application/json"} + ], + "_postman_previewlanguage": "json", + "cookie": [], + "body" : "{\n \"merchantAccount\": \"YOUR_MERCHANT_ACCOUNT\",\n \"paymentPspReference\": \"993617894903480A\",\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"pspReference\": \"993617894906488A\",\n \"status\": \"received\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + } + ] + }, + { + "name": "Capture and split an authorised payment in the Classic Platforms integration", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + ,"response": [ + {"name": "Created - the request has been fulfilled and has resulted in one or more new resources being created.", + "code": 201, + "status": "Created", + "header": [{ + "key": "Content-Type", + "value": "application/json"} + ], + "_postman_previewlanguage": "json", + "cookie": [], + "body" : "{\n \"merchantAccount\": \"YOUR_MERCHANT_ACCOUNT\",\n \"paymentPspReference\": \"993617894903480A\",\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"pspReference\": \"993617894906488A\",\n \"status\": \"received\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." } } ] diff --git a/postman/CheckoutService-v65.json b/postman/CheckoutService-v65.json index 17f2c67..0a6db69 100644 --- a/postman/CheckoutService-v65.json +++ b/postman/CheckoutService-v65.json @@ -504,6 +504,250 @@ ] }, "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + } + ] + }, + { + "name": "Capture and split an authorised payment between balance accounts", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + ,"response": [ + {"name": "Created - the request has been fulfilled and has resulted in one or more new resources being created.", + "code": 201, + "status": "Created", + "header": [{ + "key": "Content-Type", + "value": "application/json"} + ], + "_postman_previewlanguage": "json", + "cookie": [], + "body" : "{\n \"merchantAccount\": \"YOUR_MERCHANT_ACCOUNT\",\n \"paymentPspReference\": \"993617894903480A\",\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"pspReference\": \"993617894906488A\",\n \"status\": \"received\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + } + ] + }, + { + "name": "Capture and split an authorised payment in the Classic Platforms integration", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + ,"response": [ + {"name": "Created - the request has been fulfilled and has resulted in one or more new resources being created.", + "code": 201, + "status": "Created", + "header": [{ + "key": "Content-Type", + "value": "application/json"} + ], + "_postman_previewlanguage": "json", + "cookie": [], + "body" : "{\n \"merchantAccount\": \"YOUR_MERCHANT_ACCOUNT\",\n \"paymentPspReference\": \"993617894903480A\",\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"pspReference\": \"993617894906488A\",\n \"status\": \"received\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." } } ] diff --git a/postman/CheckoutService-v66.json b/postman/CheckoutService-v66.json index ea1c9d4..5ec905f 100644 --- a/postman/CheckoutService-v66.json +++ b/postman/CheckoutService-v66.json @@ -504,6 +504,250 @@ ] }, "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + } + ] + }, + { + "name": "Capture and split an authorised payment between balance accounts", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + ,"response": [ + {"name": "Created - the request has been fulfilled and has resulted in one or more new resources being created.", + "code": 201, + "status": "Created", + "header": [{ + "key": "Content-Type", + "value": "application/json"} + ], + "_postman_previewlanguage": "json", + "cookie": [], + "body" : "{\n \"merchantAccount\": \"YOUR_MERCHANT_ACCOUNT\",\n \"paymentPspReference\": \"993617894903480A\",\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"pspReference\": \"993617894906488A\",\n \"status\": \"received\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + } + ] + }, + { + "name": "Capture and split an authorised payment in the Classic Platforms integration", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + ,"response": [ + {"name": "Created - the request has been fulfilled and has resulted in one or more new resources being created.", + "code": 201, + "status": "Created", + "header": [{ + "key": "Content-Type", + "value": "application/json"} + ], + "_postman_previewlanguage": "json", + "cookie": [], + "body" : "{\n \"merchantAccount\": \"YOUR_MERCHANT_ACCOUNT\",\n \"paymentPspReference\": \"993617894903480A\",\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"pspReference\": \"993617894906488A\",\n \"status\": \"received\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." } } ] diff --git a/postman/CheckoutService-v67.json b/postman/CheckoutService-v67.json index d350aed..879a165 100644 --- a/postman/CheckoutService-v67.json +++ b/postman/CheckoutService-v67.json @@ -504,6 +504,250 @@ ] }, "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + } + ] + }, + { + "name": "Capture and split an authorised payment between balance accounts", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + ,"response": [ + {"name": "Created - the request has been fulfilled and has resulted in one or more new resources being created.", + "code": 201, + "status": "Created", + "header": [{ + "key": "Content-Type", + "value": "application/json"} + ], + "_postman_previewlanguage": "json", + "cookie": [], + "body" : "{\n \"merchantAccount\": \"YOUR_MERCHANT_ACCOUNT\",\n \"paymentPspReference\": \"993617894903480A\",\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"pspReference\": \"993617894906488A\",\n \"status\": \"received\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + } + ] + }, + { + "name": "Capture and split an authorised payment in the Classic Platforms integration", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + ,"response": [ + {"name": "Created - the request has been fulfilled and has resulted in one or more new resources being created.", + "code": 201, + "status": "Created", + "header": [{ + "key": "Content-Type", + "value": "application/json"} + ], + "_postman_previewlanguage": "json", + "cookie": [], + "body" : "{\n \"merchantAccount\": \"YOUR_MERCHANT_ACCOUNT\",\n \"paymentPspReference\": \"993617894903480A\",\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"pspReference\": \"993617894906488A\",\n \"status\": \"received\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." } } ] diff --git a/postman/CheckoutService-v68.json b/postman/CheckoutService-v68.json index 04898fc..6ab7f9e 100644 --- a/postman/CheckoutService-v68.json +++ b/postman/CheckoutService-v68.json @@ -504,6 +504,250 @@ ] }, "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + } + ] + }, + { + "name": "Capture and split an authorised payment between balance accounts", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + ,"response": [ + {"name": "Created - the request has been fulfilled and has resulted in one or more new resources being created.", + "code": 201, + "status": "Created", + "header": [{ + "key": "Content-Type", + "value": "application/json"} + ], + "_postman_previewlanguage": "json", + "cookie": [], + "body" : "{\n \"merchantAccount\": \"YOUR_MERCHANT_ACCOUNT\",\n \"paymentPspReference\": \"993617894903480A\",\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"pspReference\": \"993617894906488A\",\n \"status\": \"received\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + } + ] + }, + { + "name": "Capture and split an authorised payment in the Classic Platforms integration", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + ,"response": [ + {"name": "Created - the request has been fulfilled and has resulted in one or more new resources being created.", + "code": 201, + "status": "Created", + "header": [{ + "key": "Content-Type", + "value": "application/json"} + ], + "_postman_previewlanguage": "json", + "cookie": [], + "body" : "{\n \"merchantAccount\": \"YOUR_MERCHANT_ACCOUNT\",\n \"paymentPspReference\": \"993617894903480A\",\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"pspReference\": \"993617894906488A\",\n \"status\": \"received\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." } } ] diff --git a/postman/CheckoutService-v69.json b/postman/CheckoutService-v69.json index 2b84943..79743aa 100644 --- a/postman/CheckoutService-v69.json +++ b/postman/CheckoutService-v69.json @@ -504,6 +504,250 @@ ] }, "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + } + ] + }, + { + "name": "Capture and split an authorised payment between balance accounts", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + ,"response": [ + {"name": "Created - the request has been fulfilled and has resulted in one or more new resources being created.", + "code": 201, + "status": "Created", + "header": [{ + "key": "Content-Type", + "value": "application/json"} + ], + "_postman_previewlanguage": "json", + "cookie": [], + "body" : "{\n \"merchantAccount\": \"YOUR_MERCHANT_ACCOUNT\",\n \"paymentPspReference\": \"993617894903480A\",\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"pspReference\": \"993617894906488A\",\n \"status\": \"received\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + } + ] + }, + { + "name": "Capture and split an authorised payment in the Classic Platforms integration", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + ,"response": [ + {"name": "Created - the request has been fulfilled and has resulted in one or more new resources being created.", + "code": 201, + "status": "Created", + "header": [{ + "key": "Content-Type", + "value": "application/json"} + ], + "_postman_previewlanguage": "json", + "cookie": [], + "body" : "{\n \"merchantAccount\": \"YOUR_MERCHANT_ACCOUNT\",\n \"paymentPspReference\": \"993617894903480A\",\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"pspReference\": \"993617894906488A\",\n \"status\": \"received\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." } } ] diff --git a/postman/CheckoutService-v70.json b/postman/CheckoutService-v70.json index ec84c37..f6ea587 100644 --- a/postman/CheckoutService-v70.json +++ b/postman/CheckoutService-v70.json @@ -412,7 +412,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"EUR\"\n},\n \"platformChargebackLogic\": {\n \"behavior\": \"deductFromOneBalanceAccount\",\n \"targetAccount\": \"BA00000000000000000000001\",\n \"costAllocationAccount\": \"BA00000000000000000000001\"\n}\n}", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"EUR\"\n}\n}", "options": { "raw": { "language": "json" @@ -451,7 +451,7 @@ ], "_postman_previewlanguage": "json", "cookie": [], - "body" : "{\n \"merchantAccount\": \"YOUR_MERCHANT_ACCOUNT\",\n \"paymentPspReference\": \"993617894903480A\",\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"pspReference\": \"993617894906488A\",\n \"status\": \"received\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"EUR\"\n},\n \"platformChargebackLogic\": {\n \"behavior\": \"deductFromOneBalanceAccount\",\n \"targetAccount\": \"BA00000000000000000000001\",\n \"costAllocationAccount\": \"BA00000000000000000000001\"\n}\n}", + "body" : "{\n \"merchantAccount\": \"YOUR_MERCHANT_ACCOUNT\",\n \"paymentPspReference\": \"993617894903480A\",\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"pspReference\": \"993617894906488A\",\n \"status\": \"received\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"EUR\"\n}\n}", "originalRequest": { "method": "POST", "header": [ @@ -476,7 +476,251 @@ ], "body": { "mode": "raw", - "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"EUR\"\n},\n \"platformChargebackLogic\": {\n \"behavior\": \"deductFromOneBalanceAccount\",\n \"targetAccount\": \"BA00000000000000000000001\",\n \"costAllocationAccount\": \"BA00000000000000000000001\"\n}\n}", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"EUR\"\n}\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + } + ] + }, + { + "name": "Capture and split an authorised payment between balance accounts", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"platformChargebackLogic\": {\n \"behavior\": \"deductFromOneBalanceAccount\",\n \"targetAccount\": \"BA00000000000000000000001\",\n \"costAllocationAccount\": \"BA00000000000000000000001\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + ,"response": [ + {"name": "Created - the request has been fulfilled and has resulted in one or more new resources being created.", + "code": 201, + "status": "Created", + "header": [{ + "key": "Content-Type", + "value": "application/json"} + ], + "_postman_previewlanguage": "json", + "cookie": [], + "body" : "{\n \"merchantAccount\": \"YOUR_MERCHANT_ACCOUNT\",\n \"paymentPspReference\": \"993617894903480A\",\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"pspReference\": \"993617894906488A\",\n \"status\": \"received\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"platformChargebackLogic\": {\n \"behavior\": \"deductFromOneBalanceAccount\",\n \"costAllocationAccount\": \"BA00000000000000000000001\",\n \"targetAccount\": \"BA00000000000000000000001\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"platformChargebackLogic\": {\n \"behavior\": \"deductFromOneBalanceAccount\",\n \"targetAccount\": \"BA00000000000000000000001\",\n \"costAllocationAccount\": \"BA00000000000000000000001\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + } + ] + }, + { + "name": "Capture and split an authorised payment in the Classic Platforms integration", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + ,"response": [ + {"name": "Created - the request has been fulfilled and has resulted in one or more new resources being created.", + "code": 201, + "status": "Created", + "header": [{ + "key": "Content-Type", + "value": "application/json"} + ], + "_postman_previewlanguage": "json", + "cookie": [], + "body" : "{\n \"merchantAccount\": \"YOUR_MERCHANT_ACCOUNT\",\n \"paymentPspReference\": \"993617894903480A\",\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"pspReference\": \"993617894906488A\",\n \"status\": \"received\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", "options": { "raw": { "language": "json" diff --git a/postman/CheckoutService-v71.json b/postman/CheckoutService-v71.json index 5a35cf0..d9919c7 100644 --- a/postman/CheckoutService-v71.json +++ b/postman/CheckoutService-v71.json @@ -412,7 +412,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"EUR\"\n},\n \"platformChargebackLogic\": {\n \"behavior\": \"deductFromOneBalanceAccount\",\n \"targetAccount\": \"BA00000000000000000000001\",\n \"costAllocationAccount\": \"BA00000000000000000000001\"\n}\n}", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"EUR\"\n}\n}", "options": { "raw": { "language": "json" @@ -451,7 +451,7 @@ ], "_postman_previewlanguage": "json", "cookie": [], - "body" : "{\n \"merchantAccount\": \"YOUR_MERCHANT_ACCOUNT\",\n \"paymentPspReference\": \"993617894903480A\",\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"pspReference\": \"993617894906488A\",\n \"status\": \"received\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"EUR\"\n},\n \"platformChargebackLogic\": {\n \"behavior\": \"deductFromOneBalanceAccount\",\n \"targetAccount\": \"BA00000000000000000000001\",\n \"costAllocationAccount\": \"BA00000000000000000000001\"\n}\n}", + "body" : "{\n \"merchantAccount\": \"YOUR_MERCHANT_ACCOUNT\",\n \"paymentPspReference\": \"993617894903480A\",\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"pspReference\": \"993617894906488A\",\n \"status\": \"received\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"EUR\"\n}\n}", "originalRequest": { "method": "POST", "header": [ @@ -476,7 +476,251 @@ ], "body": { "mode": "raw", - "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"EUR\"\n},\n \"platformChargebackLogic\": {\n \"behavior\": \"deductFromOneBalanceAccount\",\n \"targetAccount\": \"BA00000000000000000000001\",\n \"costAllocationAccount\": \"BA00000000000000000000001\"\n}\n}", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"EUR\"\n}\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + } + ] + }, + { + "name": "Capture and split an authorised payment between balance accounts", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"platformChargebackLogic\": {\n \"behavior\": \"deductFromOneBalanceAccount\",\n \"targetAccount\": \"BA00000000000000000000001\",\n \"costAllocationAccount\": \"BA00000000000000000000001\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + ,"response": [ + {"name": "Created - the request has been fulfilled and has resulted in one or more new resources being created.", + "code": 201, + "status": "Created", + "header": [{ + "key": "Content-Type", + "value": "application/json"} + ], + "_postman_previewlanguage": "json", + "cookie": [], + "body" : "{\n \"merchantAccount\": \"YOUR_MERCHANT_ACCOUNT\",\n \"paymentPspReference\": \"993617894903480A\",\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"pspReference\": \"993617894906488A\",\n \"status\": \"received\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"platformChargebackLogic\": {\n \"behavior\": \"deductFromOneBalanceAccount\",\n \"costAllocationAccount\": \"BA00000000000000000000001\",\n \"targetAccount\": \"BA00000000000000000000001\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"platformChargebackLogic\": {\n \"behavior\": \"deductFromOneBalanceAccount\",\n \"targetAccount\": \"BA00000000000000000000001\",\n \"costAllocationAccount\": \"BA00000000000000000000001\"\n},\n \"splits\": [{\n \"amount\": {\n \"value\": 1500\n},\n \"type\": \"BalanceAccount\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the sale amount\",\n \"description\": \"Your description for the sale amount\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"type\": \"Commission\",\n \"reference\": \"Your reference for the commission\",\n \"description\": \"Your description for the commission\"\n}, {\n \"type\": \"PaymentFee\",\n \"account\": \"BA00000000000000000000001\",\n \"reference\": \"Your reference for the fees\",\n \"description\": \"Your description for the fees\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + } + ] + }, + { + "name": "Capture and split an authorised payment in the Classic Platforms integration", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/payments/:paymentPspReference/captures", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "payments", + ":paymentPspReference", + "captures" + ], + "variable": [ + { + "key": "paymentPspReference", + "value": "", + "description": "The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture." + } + ], + "query": [ + ] + }, + "description": " Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture)." +} + ,"response": [ + {"name": "Created - the request has been fulfilled and has resulted in one or more new resources being created.", + "code": 201, + "status": "Created", + "header": [{ + "key": "Content-Type", + "value": "application/json"} + ], + "_postman_previewlanguage": "json", + "cookie": [], + "body" : "{\n \"merchantAccount\": \"YOUR_MERCHANT_ACCOUNT\",\n \"paymentPspReference\": \"993617894903480A\",\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"pspReference\": \"993617894906488A\",\n \"status\": \"received\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Accept", + "value": "application/json", + "description": "", + "disabled": false + }, + { + "key": "Idempotency-Key", + "value": "", + "description": "A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"reference\": \"YOUR_UNIQUE_REFERENCE\",\n \"merchantAccount\": \"{{YOUR_MERCHANT_ACCOUNT}}\",\n \"amount\": {\n \"value\": 2000,\n \"currency\": \"USD\"\n},\n \"splits\": [{\n \"account\": \"8816080397613514\",\n \"amount\": {\n \"value\": 1500\n},\n \"reference\": \"Your reference for the sale amount.\",\n \"type\": \"MarketPlace\"\n}, {\n \"amount\": {\n \"value\": 500\n},\n \"reference\": \"Your reference for the commission.\",\n \"type\": \"Commission\"\n}]\n}", "options": { "raw": { "language": "json"