# Cannot provide both Discount Code and ID

You are attempting to add a Discount Code and ID

---

## Example

```json
{
  "error": {
    "type": "request_error",
    "code": "transaction_cannot_provide_both_discount_code_and_id",
    "detail": "Must provide either Discount ID OR Discount Code, not both",
    "documentation_url": "https://developer.paddle.com/errors/transactions/transaction_cannot_provide_both_discount_code_and_id",
    "errors": [
      {
        "field": "discount_id|discount_code",
        "message": "Must provide either Discount ID OR Discount Code, not both"
      }
    ]
  },
  "meta": {
    "request_id": "00000000-0000-0000-0000-000000000000"
  }
}
```

## Details

| Attribute | Value |
| --- | --- |
| Status code | 400 |
| Error code | `transaction_cannot_provide_both_discount_code_and_id` |
| Error message | Must provide either Discount ID OR Discount Code, not both |

## Common causes

- Discount Code and ID passed at the same time

## Common solutions

- Ensure only the Discount ID is passed
- Ensure only the Discount Code is passed
