On This Page
Capture a Payment
The capture service enables you to capture the entire authorized amount or part of the
authorized amount. Klarna supports multiple capture requests when the total amount of
all captures is less than the authorized amount.
You can capture an authorization for up to 28 days after a payment is authorized.
Endpoints
Production:
POST
https://api.cybersource.com
/pts/v2/payments/{id}
/capturesTest:
POST
https://apitest.cybersource.com
/pts/v2/payments/{id}
/capturesSet the to the request ID
contained in the authorization response.
{id}
Response Statuses
The capture service responds with one of these statuses as the
status
response field value:- FAILED: The capture request is not successful. Send a new capture request. A failed request can be due to either Klarna rejecting the transaction or a technical error.
- PENDING: The capture request is accepted but is not captured. Request the check status service to retrieve status updates. For more information, see Check Status.
When you send a check status request for a pending capture, you can receive this
status when the status updates:
- CHARGEBACK: The customer submitted a payment dispute for the purchase, and Klarna reviewed and approved a chargeback to the customer. For more information about chargebacks, see Klarna Chargebacks.
- SETTLED: The capture request is settled for the requested amount.
Required Fields for a Capture
Optional Fields for a Capture
Choose from these optional fields to include additional information when capturing a
payment.
Example: Capture a Payment
Request
{ "orderInformation": { "amountDetails": { "totalAmount": "1.00", "currency": "USD" } }, "paymentInformation": { "paymentType": { "name": "INVOICE", "method": { "name": "KLARNA" } } }, "processingInformation": { "actionList": "AP_CAPTURE" } }
Response to a Successful Request
{ "_links": { "self": { "method": "POST", "href": "/pts/v2/captures/7297199754036380503955" }, "refund": { "method": "POST", "href": "/pts/v2/captures/7297199754036380503955/refunds" }, "status": { "method": "POST", "href": "/pts/v2/refresh-payment-status/7297199754036380503955" } }, "clientReferenceInformation": { "code": "1729719300233" }, "id": "7297199754036380503955", "orderInformation": { "amountDetails": { "totalAmount": "1.00", "currency": "USD" } }, "processorInformation": { "responseDetails": "00004", "responseCode": "00004" }, "reconciliationId": "XFZ3Y2EH1X26", "status": "SETTLED", "submitTimeUtc": "2024-10-23T21:35:04Z" }