> ## Documentation Index
> Fetch the complete documentation index at: /llms.txt
> Use this file to discover all available pages before exploring further.

# Retrieve Payment

> Fetch details for a single payment by its ID.

### Authentication

Requires `X-API-KEY` header.

### Path Parameters

**id** `uuid` *required*

The unique ID of the payment.

### Response

**id** `uuid`

The unique identifier for the payment. It is the `payment_id` in the `invoice.paid` and `payment.succeeded` [webhooks](/api-reference/webhooks/overview.md).

**status** `string`

Payment status: `pending`, `succeeded`, `failed`, or `refunded`.

**reference\_id** `string | null`

The `reference_id` of the invoice this payment paid (the same `reference_id` as in the `invoice.paid` webhook). `null` if the invoice has none, and always `null` for a product (payment-link) sale.

**invoice\_id** `uuid`

The `id` of the invoice this payment paid (the same `invoice_id` as in the `invoice.paid` webhook). `null` if the payment was not for an invoice.

**product\_id** `uuid`

The `id` of the product this payment bought (the same `product_id` as in the `payment.succeeded` webhook). `null` if the payment was not for a product.

**amount** `integer`

The payment amount in cents (smallest currency unit).

**currency** `string`

3-letter ISO currency code.

**customer\_email** `string`

The paying customer's email address.

**customer\_name** `string`

The paying customer's full name.

**product\_title** `string`

Title of the product purchased. `null` if payment was for an invoice.

**invoice\_number** `string`

Invoice number of the paid invoice. `null` if payment was for a product.

**plan\_title** `string`

Always `null` for now. Subscriptions are not available yet.

**payment\_method** `string`

Payment method used (e.g., `card`, `upi`).

**card\_brand** `string`

Card network (e.g., `visa`, `mastercard`). Empty for non-card payments.

**card\_last\_four** `string`

Last 4 digits of the card. Empty for non-card payments.

**created\_at** `datetime`

Timestamp when the payment record was created.

**updated\_at** `datetime`

Timestamp of the last status update.

```bash cURL
curl https://api.playto.so/v1/transactions/g7h8i9j0-k1l2-3456-mnop-567890123456/ \
  -H "X-API-KEY: sk_live_your_api_key_here"
```

```json 200
{
  "id": "g7h8i9j0-k1l2-3456-mnop-567890123456",
  "status": "succeeded",
  "reference_id": null,
  "invoice_id": null,
  "product_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "amount": 7500,
  "currency": "USD",
  "customer_email": "jane@acme.com",
  "customer_name": "Jane Smith",
  "product_title": "Design Consultation",
  "invoice_number": null,
  "plan_title": null,
  "payment_method": "card",
  "card_brand": "visa",
  "card_last_four": "4242",
  "created_at": "2024-05-02T15:30:00Z",
  "updated_at": "2024-05-02T15:30:45Z"
}
```

```json 404
{
  "error": {
    "type": "not_found_error",
    "code": "resource_not_found",
    "message": "Payment not found."
  }
}
```
