Step 1: Initiate Outbound Credit Transfer

Overview

To make a payment from one of your account holders to a beneficiary account held at another participant on the scheme, you make an asynchronous request to Electrum. Electrum will immediately acknowledge receipt of the request and then initiate a sequence of calls to the payment scheme in order to process the transaction.

When to debit funds

It is important that you debit your customer's account before sending the credit transfer request to Electrum. This will ensure that the customer has sufficient funds to cover the transaction. Should the transaction be declined for any reason, then you may credit the funds back to the account.

Implementing the API

Send Request

Send an outboundCreditTransfer request to Electrum's /transactions/outbound/credit-transfer endpoint.

The full message schema can be found in the API reference documentation. Code and payload samples are shown below.

application/json
{
  • "schema": "CreditTransfer",
  • "messageIdentifiers": {
    },
  • "paymentScheme": {
    },
  • "amounts": {
    },
  • "creditor": {
    },
  • "creditorAccount": {
    },
  • "creditorAgent": {
    },
  • "debtor": {
    },
  • "debtorAccount": {
    },
  • "debtorAgent": {
    },
  • "transactionIdentifiers": {
    },
  • "instructingAgent": {
    },
  • "instructedAgent": {
    },
  • "supplementaryData": {
    }
}

Receive Acknowledgement

Electrum will respond with an HTTP 202 status if the request can be processed successfully, or an error response if a problem occurs.

Timeout

If you don't receive any response from Electrum this may happen because of a networking issue or other technical error then you may retry the request. The recommended procedure is to retry the operation with the same payload up to 3 times at 1 second intervals, until you receive a 202 response.
Idempotency
The outboundCreditTransfer operation is idempotent. This means it is safe for you to send retries. If Electrum has already received the original message, then a retry of the same message will be recognised as a duplicate and will not affect the processing of the transaction.
Copyright © Electrum Payments (Pty) Ltd. 2019-2023. All right reserved.