409
Conflict
https://api.quotastack.io/errors/conflict
The request clashed with what QuotaStack already holds. Nothing changed.
Why it happened
- You reused an
Idempotency-Keywith a different body. That cause is by far the most common. - Two calls changed the same customer at once.
- You sent
stack_afterwithfallback: reject, and no block matched. - The thing is already there. A second override on one metric does this.
How to fix it
- Use a new
Idempotency-Keywhen the body is different. Build the key from the business event. - Send the call again with the same key when two writes raced.
- Read the page for that call. Each one says what its own
409means.
Example response 409
{
"type": "https://api.quotastack.io/errors/conflict",
"title": "Conflict",
"status": 409,
"detail": "Idempotency-Key has already been used with a different request body."
} Which calls return this
POST /v1/customersPOST /v1/customers/{customer_id}/credits/grantPOST /v1/customers/{customer_id}/credits/adjustPOST /v1/customer-by-external-id/{external_id}/credits/grantPOST /v1/customer-by-external-id/{external_id}/credits/adjustPOST /v1/customers/{id}/entitlements/{billable_metric_key}/incrementPOST /v1/customers/{id}/entitlements/{billable_metric_key}/decrementPOST /v1/customer-by-external-id/{external_id}/entitlements/{billable_metric_key}/incrementPOST /v1/customer-by-external-id/{external_id}/entitlements/{billable_metric_key}/decrementPOST /v1/imports/customersPOST /v1/subscriptions/{id}/overridesPOST /v1/reservations/{id}/commitPOST /v1/reservations/{id}/releasePOST /v1/plans/{id}/variants/{vid}/entitlementsPOST /v1/billable-metricsPOST /v1/webhooks/events/{id}/redeliverPOST /v1/webhooks/test
See also
● raw markdown · conflict.md ↗ — this is exactly what an agent fetches
Loading…