PaymentsOS returns 500 HTTP status code when a server problem occurs.
503 HTTP status code returns when the provider’s server is currently unavailable.
In both cases you can resend the request using the same idempotency key, to avoid creating multiple resources.
You can safely re-send a request containing an idempotency key, within the "24 hours safe-retry window", until you actually get a response from the server.
Please note that the idempotency key is expired after 24 hours.
Make sure not to use the same idempotency key for different requests.
For more information regarding API responses, please refer to our API documentation in this link.