API errors
Internal server error
Something failed on Firsty's side. The request may or may not have taken effect, so verify state before re-attempting.
500502503application/problem+jsonWhat it means
The request was valid but the platform failed to process it. This is not your integration's fault, and on a 500 the outcome is genuinely unknown: the operation may have completed just before the failure, or not started at all.
The same type arrives as 502 or 503 when the failure sits with an upstream carrier or provisioning system, such as an eSIM that is mid-reconfiguration. Those are transient; a short wait and a retry usually succeeds.
How to handle it
For reads, retry with exponential backoff and jitter. Most of these failures are transient.
For a
POSTorPATCH, retry once with the sameX-Idempotency-Key. That can never run the operation twice: it returns the outcome the API recorded for the original attempt, this error included.If the same key keeps returning this error, check the resource's state with a read before re-attempting with a fresh key, so an operation that did complete is not repeated.
If the error persists, contact Firsty support with the
X-Request-Idresponse header value and the time of the request. That id lets us find the failing call in our logs.