For AI agents: visit https://docs.midtrans.com/llms.txt for an index of all pages formatted in Markdown and endpoints in OpenAPI. Append .md to any documentation page URL to get its markdown version.
| HTTP Code | HTTP Status | Description |
|---|
| 200 | OK | Everything is working as expected |
| 400 | Bad Request | The request is not accepted due to missing parameter or wrong parameter format |
| 401 | Unauthorized | No valid API key provided |
| 403 | Forbidden | The API key does not have permission to perform the request |
| 404 | Not Found | The requested resource is not valid |
| 405 | Method Not Allowed | The request method is not supported for the requested resource |
| 409 | Conflict | The request conflicted with another request (possibly due to having the same idempotency key) |
| 429 | Too Many Requests | Too many requests hit the API too quickly. We recommend limiting the request amount or implementing exponential backoff |
| 5xx | Server Errors | Something went wrong on Midtrans' end. To handle this:
-
Reach out to our support team for clarification on whether it's safe to retry the request. Explain the issue you encountered.
-
Ensure you include all relevant request details. This could involve the specific API endpoint, payload, and any relevant parameters used.
-
If your request used an idempotency key, make sure to provide it. The idempotency key helps ensure that the same request is not processed multiple times if retried.By following these steps, you can get the necessary guidance on whether retrying is safe and how to proceed.
|