Bu ayrıntılı önizleme şimdilik İngilizcedir. Navigasyon ve temel ürün deneyimi seçtiğiniz dilde sunulur.
API CONTRACT PREVIEW · V0
Error handling
Make failures understandable and recoverable.
Design contract, not a live API. All hosts use reserved .example domains. These examples do not perform real payments.
Overview
Proposed responses use a stable error code, human-readable message and request ID. Do not retry validation failures unchanged. Retry transient failures with bounded exponential backoff and jitter.
Implementation notes
- 1
400 invalid_request: validate input.
- 2
401 unauthorized / 403 forbidden: check scope and environment.
- 3
409 conflict, 429 rate_limited and 5xx: handle according to retry policy.
ERRORS
/v1/payments Example payload DRAFT CONTRACT
{
"error": {
"code": "invalid_request",
"message": "amount must be a positive decimal string",
"request_id": "req_demo_001"
}
}
Before production
Server-side authentication, input validation, wallet ownership checks, network monitoring, finality policy, signature verification and operational controls require separate implementation. Fulfill orders only from a verified backend state.
CONTINUE EXPLORINGIdempotency