payment.existing_direct_subscription
The tenant holds a live key-based subscription of the product that is not a trial (an offline deal), so it cannot be bought online; a key-based trial is converted instead.
| Code | payment.existing_direct_subscription |
|---|---|
| HTTP status | 409 |
| Category | Conflict |
| Arguments | subscriptionId |
What the portals show
The portals translate the code, never the title. The English (en-GB) message, in ICU format with the arguments as placeholders:
This organisation already has a subscription to this product. Change it from Subscriptions instead of buying again.
Example response
{
"type": "https://docs.test.konsolutelab.uk/errors/payment.existing_direct_subscription",
"title": "…",
"status": 409,
"code": "payment.existing_direct_subscription",
"args": {},
"traceId": "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01",
"instance": "/api/v1/…"
}Handling it
Branch on code, not on title or the status alone, and log traceId. Codes are stable; new codes may appear, so fall back on the HTTP status for a code you do not know. See Handling errors and the list of codes.