---
title: "Retrieve a payment"
method: GET
path: "/v1/payments/{payment_id}"
tags: ["Payments"]
---

# Retrieve a payment

`GET /v1/payments/{payment_id}`

Retrieve a single payment by its charge ID, with the full object: amount, status, the customer, fees, the products paid for, refunds, and status history.

## Path parameters

- `payment_id` string, required

## Response `200`

Success - Payment retrieved

- PaymentResponse — Detailed payment response for API integrations.
  - `reference` string, nullable — Checkout reference when available.
  - `payment_id` string — Unique identifier for the payment.
  - `billing_reason` 'purchase' | 'subscription_create' | 'subscription_cycle' | 'subscription_update' — Why this payment exists. `purchase`: a one-time purchase. `subscription_create`: the first cycle of a new subscription. `subscription_cycle`: a subscription renewal. `subscription_update`: an off-cycle charge from a mid-cycle plan change (proration).
  - `checkout_id` string, nullable — Checkout identifier, when linked.
  - `status` 'created' | 'processing' | 'succeeded' | 'accepted' | 'failed' | 'expired' | 'cancelled' | 'refunded' | 'partially_refunded' | 'underpaid' | 'overpaid', required — payment status.
  - `is_refundable` boolean, nullable — Whether this payment can currently be refunded.
  - `amount` string, required — Requested amount in `currency`.
  - `amount_paid` string, nullable — Amount received so far.
  - `amount_remaining` string, nullable — Remaining amount still expected.
  - `currency` string, required — Payment currency code.
  - `fee_usd` string, nullable — Processing fee for this payment, converted to USD and expressed as a decimal string. `null` until the payment settles.
  - `merchant_bears_cost` boolean, nullable — Whether merchant bears processing cost.
  - `payment_method` string, nullable — Payment method used for this payment.
  - `channel` string, nullable — Origin channel (for example `api`).
  - `narration` string, nullable — payment description/narration.
  - `meta` object, nullable — Public metadata stored for this payment.
  - `message` string, nullable — Human-readable payment message derived from status.
  - `customer` object, nullable — Customer information when available.
    - `name` string, nullable — Full name of the customer associated with this payment, when captured.
    - `email` string, nullable — Customer email address associated with this payment, when captured.
  - `line_items` PaymentProductItem[], nullable — The line items this payment covers.
    - `product_id` string, required — Product identifier.
    - `product_name` string, required — Product display name.
    - `quantity` integer, required — Number of units purchased.
    - `unit_amount` string, required — Price per unit in `currency`.
    - `currency` string, required — Currency code for this line item.
    - `line_total` string, required — Total for this line item (`unit_amount` × `quantity`).
  - `subscription_id` string, nullable — The subscription this payment belongs to, or `null` for a one-time purchase.
  - `invoice` PaymentInvoiceInfo — A subscription invoice this payment collected.
    - `invoice_id` string, required — The invoice's identifier.
    - `number` string, nullable — Human-facing invoice number, if assigned.
    - `subscription_id` string, nullable — The subscription the invoice belongs to.
    - `period_start` string, date-time — Start of the billing period, UTC.
    - `period_end` string, date-time — End of the billing period, UTC.
    - `kind` 'cycle' | 'proration' — `cycle`: a regular subscription-period invoice. `proration`: an off-cycle mid-cycle change.
  - `refunds` string[], nullable — IDs of any refunds issued for this payment. `null` if no refund has been created.
  - `status_history` object[], nullable — Chronological list of status changes for this payment.
    - `status` string — Status at this point in time.
    - `occurred_at` string, date-time — When this status change occurred.
    - `provider_reference` string, nullable — Provider-side reference for this transition.
    - `reason` string, nullable — Human-readable reason for the status change, if available.
  - `created_at` string, date-time, required — Creation timestamp.
  - `updated_at` string, date-time, required — Last update timestamp.
  - `completed_at` string, date-time, nullable — Completion timestamp when available.

## Other responses

- `400` — Bad Request - Validation errors or invalid request format. Check the `details` object for field-specific validation errors. Common causes: missing required fields, invalid data types, values outside allowed ranges, or invalid formats.
- `401` — Unauthorized - Invalid, missing, or expired API key. Verify your API key is correctly formatted and included in the Authorization header as `Bearer sk_sandbox_...` or `Bearer sk_live_...`. Check that your key hasn't been revoked.
- `403` — Forbidden - API key does not have permission for the requested resource. Verify you're using the correct organization's API key and that you're not trying to access another organization's data.
- `404` — Not Found - The requested resource does not exist. Verify the resource ID is correct and that it belongs to your organization.
- `429` — Too Many Requests - Rate limit exceeded. Standard tier allows 100 requests per minute per API key. Wait a few seconds before retrying. Check X-RateLimit-Reset header for when the window resets.
- `500` — Internal Server Error - An unexpected error occurred while processing the request. Retry with exponential backoff. If the issue persists, contact support with your request context.

---

[API](https://skmtc.dev/bachs/apis/bachs-api.md) · [All operations](https://skmtc.dev/bachs/apis/bachs-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/bachs/bachs-api/revisions/f29efa8a22df/schema)
