# Creating credits after currency was updated

You are attempting to update subscription by generating credits after currency was updated

---

## Example

```json
{
  "error": {
    "type": "request_error",
    "code": "subscription_update_different_currency_credits",
    "detail": "Subscription cannot be updated because it will result in credits in different currency",
    "documentation_url": "https://developer.paddle.com/errors/subscriptions/subscription_update_different_currency_credits"
  },
  "meta": {
    "request_id": "00000000-0000-0000-0000-000000000000"
  }
}
```

## Details

| Attribute | Value |
| --- | --- |
| Status code | 400 |
| Error code | `subscription_update_different_currency_credits` |
| Error message | Subscription cannot be updated because it will result in credits in different currency |

## Common causes

- You are attempting to generate credits after a currency was updated which would result in credits in different currency.

## Common solutions

- Update a subscription using `prorated_immediately`, `full_immediately`, or `do_not_bill` so Paddle doesn't create pending credits.
- Update the subscription currency to the previous one so that credits can be created in the same currency.
