v1

latestOpenAPI 3.0.02026-07-26167441.9 MB

Capture Authorization

post/payments/{payment_id}/transactions/{transaction_id}/capture

Path parameters

payment_idstring required

The unique identifier of the payment (UUID, 36 chars).

transaction_idstring required

The unique identifier of the transaction (UUID, 36 chars)

Request body

merchant_referencestring required

Identification of the payment transaction defined by the merchant (MAX 255; MIN 3)

reasonstring required

Indicating the reason for the capture. For example: PRODUCT_CONFIRMED and REQUESTED_BY_CUSTOMER.

simplified_modeboolean

Determines whether Yuno should automatically attempt to capture a payment after an initial error or decline. When set to true, Yuno will retry the process if the first attempt fails. By default, this is set to false. Access Transaction Retries for more details.

Response

200

OR
OR

Example response

{
  "id": "89fd7fd0-951d-4335-ad1b-ef899a79630d",
  "type": "CAPTURE",
  "status": "SUCCEEDED",
  "category": "CARD",
  "amount": {
    "currency": "USD",
    "value": 30000
  },
  "merchant_reference": "AAB01-432245",
  "created_at": "2024-06-06T14:26:41.535489Z",
  "updated_at": "2024-06-06T14:26:41.615608Z",
  "provider_data": {
    "id": "YUNO_TEST_PAYMENT_GW",
    "transaction_id": "1173513e-2422-4ba0-ba40-fd568a4904f9",
    "account_id": "493e9374-510a-4201-9e09-de669d75f256",
    "status": "SUCCEEDED",
    "response_message": "Transaction successful",
    "iso8583_response_code": "00",
    "iso8583_response_message": "Approved or completed successfully"
  },
  "response_code": "SUCCEEDED",
  "response_message": "Transaction successful",
  "payment": {
    "id": "af170f9d-e8c1-47e4-a988-25535e0f88a1",
    "description": "Test",
    "country": "US",
    "status": "SUCCEEDED",
    "sub_status": "CAPTURED",
    "merchant_order_id": "0000023",
    "created_at": "2024-06-06T14:26:22.933194Z",
    "updated_at": "2024-06-06T14:26:41.655119Z",
    "amount": {
      "captured": 30000,
      "currency": "USD",
      "value": 30000
    }
  }
}