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

# Get Receipt

> Retrieve a receipt for a processed payment transaction.

Retrieve details of a specific payment, including its status, the rail used, and timestamps.

### Headers

<ParamField header="X-Delegare-Merchant-Id" type="string" required>
  Your merchant identifier.
</ParamField>

<ParamField header="X-Delegare-Api-Key" type="string" required>
  Your merchant API key.
</ParamField>

### Path Parameters

<ParamField path="transactionId" type="string" required>
  The unique ID of the transaction to retrieve.
</ParamField>

### Response

<ResponseField name="id" type="string">
  The unique identifier for the transaction.
</ResponseField>

<ResponseField name="status" type="string">
  The status of the transaction (`succeeded`, `failed`, `pending`).
</ResponseField>

<ResponseField name="amountCents" type="integer">
  The transaction amount in cents (USD).
</ResponseField>

<ResponseField name="currency" type="string">
  The currency code, e.g., `"usd"`.
</ResponseField>

<ResponseField name="rail" type="string">
  The rail used for settlement (`stripe` or `base`).
</ResponseField>

<ResponseField name="receiptUrl" type="string">
  A hosted URL to view the transaction receipt, if applicable.
</ResponseField>

<RequestExample>
  ```bash Request theme={null}
  curl -X GET https://api.sandbox.delegare.dev/v1/payments/txn_123456789/receipt \
    -H "X-Delegare-Merchant-Id: your_merchant_id" \
    -H "X-Delegare-Api-Key: your_api_key"
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "id": "txn_123456789",
    "status": "succeeded",
    "amountCents": 500,
    "currency": "usd",
    "rail": "stripe",
    "receiptUrl": "https://receipts.delegare.dev/txn_123456789"
  }
  ```
</ResponseExample>
