> For the complete documentation index, see [llms.txt](https://developer.paddle.com/llms.txt).
>
> To search these docs, send a `GET` request to `https://paddle-docs-retrieval.kapa-paddle.workers.dev/?q=<question>` with a URL-encoded question. No authentication needed. It returns a JSON array of `{content, source_url}`, most relevant first.

# Duplicate `price_id` in a one-time charge

A one-time charge can't include the same `price_id` more than once.

---

## Example

```json
{
  "error": {
    "type": "request_error",
    "code": "subscription_charge_duplicate_price_ids",
    "detail": "duplicate `price_id`s are not valid when creating a one-time charge for a subscription",
    "documentation_url": "https://developer.paddle.com/errors/subscriptions/subscription_charge_duplicate_price_ids"
  },
  "meta": {
    "request_id": "00000000-0000-0000-0000-000000000000"
  }
}
```

## Details

| Attribute | Value |
| --- | --- |
| Status code | 400 |
| Error code | `subscription_charge_duplicate_price_ids` |
| Error message | duplicate `price_id`s are not valid when creating a one-time charge for a subscription |

## Common causes

- Prices must be unique in a one-time charge. You sent the same `price_id` more than once in the `items` array.

## Common solutions

- Combine the duplicate `price_id` entries into a single item with the correct `quantity`, then retry your request.
