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

# GET /api/billing/receipts/{paymentId}/download — download Stripe receipt

> Download the receipt for a paid Stripe payment on the international site. Accepts session Bearer or ?token= for browser download links.

Download the receipt for a paid Stripe payment on the international site. Accepts the session JWT via `Authorization: Bearer` or via `?token=` in the query string so a browser link can trigger the download without setting headers.

<Note>
  Receipts apply to the international site only. On the China site, request an [e-invoice](/api-reference/billing/invoices) instead.
</Note>

**Method:** `GET` **Path:** `/api/billing/receipts/{paymentId}/download` **Auth:** Session Bearer or `?token=` query JWT

## Path parameters

<ParamField path="paymentId" type="string" required>
  Paid Stripe payment identifier.
</ParamField>

## Query parameters

<ParamField query="token" type="string">
  Session JWT for browser-initiated downloads.
</ParamField>

## Response

`200 OK` with the receipt as an HTML stream and a `Content-Disposition: attachment; filename=...` header.

## Example

```bash theme={null}
curl -L "https://ariacompute.com/api/billing/receipts/pay_01H.../download?token=eyJhbGciOi..." \
  -o receipt.html
```

## Errors

| Status | Meaning                        |
| ------ | ------------------------------ |
| `401`  | Missing or invalid token.      |
| `404`  | Payment not found or not paid. |


## Related topics

- [GET /api/billing/invoices/{paymentId}/download — download invoice](/api-reference/billing/invoice-download.md)
- [Prepaid wallet, top-ups, and usage billing](/concepts/wallet-billing.md)
- [API authentication: session tokens and API keys](/api-reference/authentication.md)
- [Authenticate requests to the Aria Compute API](/authentication.md)
- [Download invoices and receipts for your payments](/guides/invoices-receipts.md)
