Prerequisites
{{aggregator_id}}and{{secret_key}}- Beneficiary IBAN validated with the account validation utilities
- Webhook endpoint ready to receive payout status updates
Flow summary
Validate the beneficiary
Resolve the beneficiary’s details with
GET /title-fetch or GET /account-info to avoid payout failures.Call the payout endpoint
Send
POST /v1/aggregators/{{aggregator_id}}/payout with a unique request_id, the payout amount (string, in PKR), and the beneficiary creditor_iban.Set
{{base_url}} to https://dev.api.getsafepay.com/raastwire in Sandbox or https://api.getsafepay.com/raastwire in Production.Payouts
- Request Fields
- API Example
- Sample Response
Webhook events to expect
Refer to the webhooks delivery guide for the full event catalog. Settlement-related events are emitted as batch processing progresses.Failure handling checklist
- Inspect webhook payloads for failure reasons (insufficient funds, invalid account, compliance hold).
- Retry transient errors with the same
request_idto stay idempotent. - Raise manual review tasks for permanent failures and notify beneficiaries.