v1

latestOpenAPI 3.1.02026-07-245361280.3 KB

Get payment

Retrieve information about an existing payment.

get/payments/{payment_id}

Path parameters

payment_idstring required

The payment ID

Response

200

idstring
amountinteger
currencystring
payment_method_idstring
payment_method_typestring
payment_method_flowstring
countrystring
created_datestring
approved_datestring
statusstring
status_detailstring
status_codestring
order_idstring
notification_urlstring
refundsobject[]

Example response

{
  "id": "D-4-16112abb-b2c6-4799-86db-497c6bd321ac",
  "amount": 120,
  "currency": "USD",
  "payment_method_id": "CARD",
  "payment_method_type": "CARD",
  "payment_method_flow": "DIRECT",
  "country": "BR",
  "card": {
    "holder_name": "Thiago Gabriel",
    "expiration_month": 10,
    "expiration_year": 2040,
    "brand": "VI",
    "last4": "1111"
  },
  "created_date": "2018-07-012T21:42:27.000+0000",
  "approved_date": "2018-07-012T21:42:28.000+0000",
  "status": "AUTHORIZED",
  "status_detail": "The payment was authorized",
  "status_code": "600",
  "order_id": "657434343",
  "notification_url": "http://merchant.com/notifications",
  "enrollment": {
    "id": "E-4-32e1218f-b6ec-3f21-13d5-50v12ere2ca3",
    "external_id": "31231jj223"
  },
  "retry": {
    "remaining_attempts": 2,
    "last_attemptable_date": "2025-01-07T02:59:00.000+0000"
  }
}