PesaBridge
文档/生产运行/Errors

生产运行

Errors

One error shape, clear HTTP statuses, and when it's safe to retry.

阅读约 3 分钟

开发者指南以英文撰写,以确保代码、字段名和错误信息与 API 完全一致。

本页内容
  1. Error shape
  2. HTTP statuses

Error shape

JSON
{ "status": "error", "message": "amount must be positive", "code": null }

message is written for people and can be shown to your staff. Server errors also carry code: "internal_error" and a reference: quote it to support and we can find the exact request.

HTTP statuses

StatusMeaningRetry?
400Validation error: a field is missing or invalid.No. Fix the request.
401Missing, invalid or expired token or key.After getting a new token.
404The charge, transaction or resource doesn't exist for your app.No.
429Rate limit: too many requests or attempts.Yes, after backing off.
500Something went wrong on our side (with a reference).Yes, with the same idem key.
For any money movement, retry only with the same idempotency key. That's what makes retries safe.

我们的工程师解答集成问题。把请求参考号发给我们,我们会找到那次调用。

联系支持