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

# GET /api/billing/receipts/{paymentId}/download — 下载 Stripe 收据

> 下载国际站已支付 Stripe 付款的收据。接受会话 Bearer 或 ?token= 以便浏览器下载链接生效。

下载国际站已支付 Stripe 付款的收据。接受通过 `Authorization: Bearer` 或查询字符串 `?token=` 传递的会话 JWT，因此浏览器链接无需设置 Header 即可触发下载。

<Note>
  收据仅适用于国际站。在中国站，请改用[电子发票](/api-reference/billing/invoices)。
</Note>

**方法：** `GET` **路径：** `/api/billing/receipts/{paymentId}/download` **认证：** 会话 Bearer 或 `?token=` 查询 JWT

## 路径参数

<ParamField path="paymentId" type="string" required>
  已支付的 Stripe 支付标识。
</ParamField>

## 查询参数

<ParamField query="token" type="string">
  用于浏览器发起下载的会话 JWT。
</ParamField>

## 响应

`200 OK`，以 HTML 流返回收据，并带 `Content-Disposition: attachment; filename=...` 头。

## 示例

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

## 错误

| 状态    | 含义           |
| ----- | ------------ |
| `401` | 缺失或无效的令牌。    |
| `404` | 未找到支付或支付未成功。 |
