Skip to main content

Capture Transaction

Use this route if a transaction was Authorized in the past and you want to Capture it. Only the parameter transaction_id is required in the body of the request.

POSTv1/capture

Request Body Params

AttributeTypeDescription
transaction_idstringTransaction identifier number.
caution

It is necessary to save the transaction_id that Marlim returns in authorization requests in your application.
Only with this id will it be possible to proceed with the capture.

Samples

Request
curl -X POST "https://api.wu.global.marlim.co/v1/capture" \
-H "Content-Type: application/json" \
-H "api_key: api_key_value" \
-d '{
"transaction_id": "12345678912345"
}'
Response200
{
"acquirer_status_code": "0000",
"status": "paid",
"authorization_code": "068194",
"nsu": "987654321",
"order_id": "123456789",
"date_created": "2024-04-29T17:55:12.805Z",
"date_updated": "2024-04-29T17:55:12.805Z",
"net_value": 100000,
"authorized_amount": 104330,
"paid_amount": 104330,
"refunded_amount": 0,
"installments": "1",
"transaction_id": "12345678912345",
"card_holder_name": "Luke Skywalker",
"card_brand": "visa",
"card_first_digits": "555544",
"card_last_digits": "2222"
}