Skip to content

Get a payment

Request

Returns one captured payment by its ID.

Security
ApiKey
Path
paymentIdstring^pay_[A-Za-z0-9]+$required

The ID of the payment, for example pay_3Lx9Qe2Vn.

curl -i -X GET \
  'https://acme-billing.redocly.app/_mock/apis/billing/payments/{paymentId}' \
  -H 'X-API-Key: YOUR_API_KEY_HERE'

Responses

The payment.

Bodyapplication/json
objectstringrequired
Value:"payment"
idstring^pay_[A-Za-z0-9]+$required

The unique ID of the payment.

invoiceIdstring^INV-[0-9]+$required

The ID of the invoice that the payment paid.

customerIdstring^cus_[A-Za-z0-9]+$required
statusstringrequired

refunded when Acme returned the payment to the customer.

Enum:"succeeded""refunded"
amountintegerrequired

The captured amount, in the smallest currency unit.

currencystring(Currency)^[a-z]{3}$required

The three-letter ISO 4217 currency code, in lowercase.

Example:"usd"
paymentMethodobject(PaymentMethod)required

How the customer pays. card is present only when type is card.

capturedAtstring, (date-time)required
Response
{ "object": "payment", "id": "pay_3Lx9Qe2Vn", "invoiceId": "INV-2042", "customerId": "cus_H5k9Rv3Mx", "status": "succeeded", "amount": 540000, "currency": "usd", "paymentMethod": { "type": "card", "card": { … } }, "capturedAt": "2026-10-22T06:00:12Z" }