Skip to content
StraventaDocs
Now in Sandbox.

Approve a deduction scheme (checker)

Checker approves a pending deduction scheme. In one transaction it materializes the typed recon_deductions row(s) — one for sharing_fee / hold_dana, one per allocation for split_settlement — and nets the merchant so payable reflects the deduction immediately. The approver MUST differ from the submitter (409 deduction_scheme_self_approval).

POST
/api/recon/v1/deduction-schemes/{id}/approve

Checker approves a pending deduction scheme. In one transaction it materializes the typed recon_deductions row(s) — one for sharing_fee / hold_dana, one per allocation for split_settlement — and nets the merchant so payable reflects the deduction immediately. The approver MUST differ from the submitter (409 deduction_scheme_self_approval).

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

id*string
Formatuuid

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/recon/v1/deduction-schemes/497f6eca-6276-4993-bfeb-53cbbbba6f08/approve"
{
  "id": "01900000-0000-7000-8000-000000000092",
  "status": "approved",
  "scheme_type": "sharing_fee"
}
{
  "error": "unauthorized",
  "message": "Bearer token is missing or invalid",
  "request_id": "01900000-0000-7000-8000-000000000001"
}
{
  "error": "not_found",
  "message": "The requested resource was not found",
  "request_id": "01900000-0000-7000-8000-000000000001"
}
{
  "error": "deduction_scheme_self_approval",
  "message": "approver/rejecter must differ from the submitter",
  "request_id": "req_01"
}

Was this page helpful?