code and success, including on HTTP 200. Responses use trace_id and a numeric millisecond timestamp. Authentication, route and permission failures retain platform codes and differ from internal dependency authentication errors.
Do not interpret technical failure as an absent record, empty list or zero funds. After an uncertain write, query the original business reference before resubmitting.
Business Error Codes
These codes cover beneficiary validation, verification, lookup and operation failures.
Known structured
payee_document_invalid errors from a dependency are also preserved
for compatibility. Review-only beneficiary_review_conflict and
beneficiary_review_failed are outside these four public operations.
Response Semantics
- Business failures have a string
code,success=false,trace_idwhen available and a numeric millisecondtimestamp. - Malformed or missing JSON returns HTTP 400. Validation failures also return HTTP 400, while its operational failures return HTTP 500 with the standard response envelope. Public business errors may use HTTP 200 with success=false; clients must check code/success rather than HTTP status alone.
- Known beneficiary codes,
payer_not_foundand the document compatibility code are preserved across structured responses and structured HTTP errors. Genericrequest_parameter_invalidis classified asbeneficiary_parameter_invalid. The legacy active-payer-not-found validation message becomespayer_not_foundfor both create and update. - Empty or failed dependency responses are not reported as an absent beneficiary. Required detail/update lookups distinguish a successful empty match from a failed lookup. Unexpected exceptions and unstructured dependency bodies do not expose internal diagnostic details.
- A timeout or invalid response after a write is not proof that no write occurred.
Query using the original
beneficiary_id/beneficiary_reference_idbefore resubmitting a mutation. - Outer authentication, RBAC and routing failures continue using platform codes,
including
auth_login_required,auth_permission_denied,common_resource_not_foundandcommon_method_not_allowed. They are not counted among the 25 primary codes.
Business Flow Compatibility
- Successful response schemas, time-field source rules and normal side effects are unchanged. The delete endpoint still returns a boolean, not a beneficiary object.
- KYC/KYB approval requirements are unchanged: creation retains its approval check this change does not add that check to detail, update or delete.
- Creation retains its existing non-blocking
beneficiary_reference_ididempotency probe. A failed probe does not introduce a new creation rejection rule. Required detail/update lookups instead report their failures explicitly. - Update/delete status eligibility and ownership filtering remain unchanged.
- Deletion does not proceed when payment-reference lookup throws or returns a
failed/invalid response; it reports
beneficiary_payment_reference_query_failed. - Beneficiary list and metadata queries retain their existing error behavior.
