Making a transfer
Affinity enables partners to facilitate customer transfers from their accounts to their selected destination accounts. Transfer requests are processed asynchronously. Once a transfer is completed, a notification will be sent via your configured webhook. Please ensure a valid webhook URL is provided to receive updates.
Making the request
The following parameters are required to process a transfer
Field | Type | Description | Test examples | Notes |
|---|---|---|---|---|
| string | The GIP code from our Banks API (see here for more details) |
| [required] |
| string | Account number of the customer making the transfer. It must an account created via your service (Partner). | Test source account numbers: Error samples: | [required] |
| string | Account number of beneficiary. It must an account belonging to the institution selected. Failure to validate the account number will fail the transfer. | Test bank account numbers: Error samples: Test MoMo account numbers: Error samples: | [required] |
| string | Name of the the destination account holder | [optional] | |
| string (uuid) | Idempotency keys are unique keys that identify each request to prevent duplication regardless of the number of times it was submitted | [required] | |
| string | Currency - all amounts are displayed in GHS by default | [optional] | |
| number | The amount to be transferred. | [required] | |
| string | Reference or note | [optional] |
Example
Status Check
Sometimes, transactions may be in a pending status and require a status check. To verify the status of a transaction, use the idempotencyKey that was provided when initiating the transaction (see transaction API for more details).
Processing webhooks
Since all transactions are asynchronous, our partners are required to configure a webhook to receive notifications once a transaction has finished processing. It will be your responsibility to notify your customers about the status of a transaction based on the webhook payload that we send.
Please ensure to add a valid webhook URL to your dashboard on our developer platform