Skip to main content

Error codes

Failed responses use success: false and error.code. The HTTP status is determined by the code. Read error.message and error.details for the specific failure, and send meta.request_id when reporting a problem. A completed write stores its response for that Idempotency-Key for 24 hours. Sending the same key and the same request again replays the stored response, including an error. Use a new key when the operation should run again. Reuse the original key only while IDEMPOTENCY_CONFLICT says the original request is still in progress, or when you want the original success response. PRICE_MISMATCH details include displayed_price_cny and upstream_price_cny when the gateway compared those amounts. Treat either difference as a stale quote. For the full field list, use the API reference.