Last updated

Receive PayShap with Partner-Auth

NOTE

This page describes how to receive a PayShap payment for which authorisation by the corporate client is required.

Overview

The payment authorisation step requests that the corporate client verify that a requested payment can be made to a particular proxy.

It is important to note that a successfully authorised (approved) payment does not necessarily mean that the payment is final. The funds may not yet have been applied to the customer's account (or wallet or record) at the time of authorisation. However, after approving a transaction, the corporate client may not revoke the payment. The client will be obliged to make the payment to the customer's account once a completion is sent from BankservAfrica (the scheme operator), unless the payment is subsequently cancelled by BankservAfrica itself.

When participating in authorisation of a payment, the corporate client may take the following into account:

  • Whether the account/wallet/record corresponding to the given proxy exists and is valid.
  • Whether any payment limits that may be relevant to the client are exceeded or not. Note that Electrum validates that PayShap transaction amounts do not exceed the scheme limit. Hence, this does not need to be validated by the corporate client.
  • Whether an invoice linked to the given proxy is still valid or has expired.

The diagram below describes the complete transaction journey for a successful proxy-based PayShap payment that you will receive. The clearing phase consists of payment authorisation and payment finalisation.

epc successful inbound payshap partner-auth

Proxy Resolution

The proxy resolution phase aims to determine that the proxy identifier is valid and returns the details of the associated customer record in your system. The end-user that initiated the payment from their banking app can then confirm the details before initiating a credit transfer to the proxy.

  1. Electrum sends you an inboundSynchronousIdentifierDetermination request via the /identifiers/inbound/identifier-determination-sync endpoint (IdentifierDeterminationRequest schema; below).
IdentifierDeterminationRequest Schema
messageIdentifiersobject(MessageIdentifiers)required

Holds a point-to-point unique message identification string as well as a message's creation date time.

messageIdentifiers.​creationDateTimestring(date-time)required

The date and time at which the message was created, in senders local timezone or UTC. The date must be formatted as defined by date-time in RFC3339

messageIdentifiers.​messageIdentificationstring<= 35 charactersrequired

A reference used to unambiguously identify the message between the sending and receiving party. Take note that this uniquely identifies a single message in a potentially multi-message exchange to complete a payment.

supplementaryDataobject(SupplementaryData)

A list of key-value pairs to support adding any supplementary/additional data to an Electrum Regulated Payments API message.

requestobject(DeterminationRequest)required

A request providing information for the lookup of a proxy or account in the context of the ZA RPP Payment Scheme:

  1. If the identifier schema is either MOBILE or CUSTOM, proxy resolution will be performed. In this case, the identifier.namespace field is required.
  2. If the identifier schema is GENERIC, account resolution will be performed. In this case, the accountAgent.bicfi field is required.
request.​schemastring(PaymentSchemeName)required

Identifies the scheme used for the payment

  • ZA_RTC: South African Realtime Clearing scheme.
  • ZA_RPP: South African Realtime Payments Platform scheme.
  • ZA_EFT: South African Electronic Funds Transfer scheme.
  • ZA_AC : South African Authenticated Collections scheme.
  • ZA_RMS: South African Registered Mandate Service scheme.
  • CBPR_PLUS: Cross-Border Payments and Reporting Plus.
Enum"ZA_RTC""ZA_RPP""ZA_EFT""ZA_AC""ZA_RMS""CBPR_PLUS"
Discriminator
request.​accountAgentobject(InstitutionIdentification)
request.​identifierany(ZaRppIdentifier)required
request.​identifier.​namespacestring[ 1 .. 40 ] characters

An identifier's namespace provides a context for the identifier to distinguish different identifiers which may have the same value but be intended to identify different accounts. For example, a bank may use the same MSISDN (identifier) with different namespaces to distinguish between a customer's cheque or savings accounts.

This may be used by the following schemes:

  • ZA_RPP
request.​identifier.​schemastringrequired

Indicates the schema of the identifier, e.g. MOBILE, CUSTOM.

Discriminator
request.​identifier.​valuestring[ 1 .. 2048 ] charactersrequired
request.​instructedAgentobject(InstitutionIdentification)
request.​instructingAgentobject(InstitutionIdentification)
request.​requestorobject(ZaRppRequestor)
request.​uetrstring(UUID)required

Universally unique identifier to provide an end-to-end reference. This identifier remains the same for all messages related to the same transaction.

request.​verificationIdentificationstring[ 1 .. 35 ] charactersrequired

Unique identifier for this specific verification request.

schemastringrequired
Value"IdentifierDeterminationRequest"
Example
Response
No content
  1. You identify the customer proxy and verify the related customer record.

  2. You return an IdentifierDeterminationResponse to Electrum (see schema below).

IMPORTANT

There are a number of fields in the response message that MUST be populated, even if they are designated as optional in the API. See the table below for a list of these fields and guidelines on how to populate them.

FieldGuidelines for Populating Field
report.reportInformation.accountInformation.creationDateThe date on which the account referenced by this proxy identifier was created.
report.reportInformation.accountInformation.proxy.valueThe proxy value. This consists of a string of up to 2048 characters.
report.reportInformation.accountInformation.proxy.schemaThe schema of the identifier.
  • In the case of a mobile proxy that the customer has linked to their customer record, the schema is MOBILE.
  • In the case of a custom proxy where a proxy is automatically assigned by the corporate client, the schema is CUSTOM.
report.reportInformation.accountOwner.knownAsNameThis field is included so that it can be verified by the end-user using their banking app.
  • In the case of a mobile proxy that the customer has linked to their customer record, the customer should have been prompted to select a 'known as name'.
  • In the case of a custom proxy where a proxy is automatically assigned by the corporate client, the field should be populated in a way that allows customers to identify their transaction clearly.
  • Any combination of fields available for use in this field is acceptable.
NOTE

Electrum will populate the report.reportInformation.accountOwner.legalName with the official entity name of the corporate client, as specified by the sponsor bank.

IdentifierDeterminationResponse Schema
messageIdentifiersobject(MessageIdentifiers)required

Holds a point-to-point unique message identification string as well as a message's creation date time.

messageIdentifiers.​creationDateTimestring(date-time)required

The date and time at which the message was created, in senders local timezone or UTC. The date must be formatted as defined by date-time in RFC3339

messageIdentifiers.​messageIdentificationstring<= 35 charactersrequired

A reference used to unambiguously identify the message between the sending and receiving party. Take note that this uniquely identifies a single message in a potentially multi-message exchange to complete a payment.

supplementaryDataobject(SupplementaryData)

A list of key-value pairs to support adding any supplementary/additional data to an Electrum Regulated Payments API message.

originalMessageIdentifiersobject(MessageIdentifiers)required

Holds a point-to-point unique message identification string as well as a message's creation date time.

originalMessageIdentifiers.​creationDateTimestring(date-time)required

The date and time at which the message was created, in senders local timezone or UTC. The date must be formatted as defined by date-time in RFC3339

originalMessageIdentifiers.​messageIdentificationstring<= 35 charactersrequired

A reference used to unambiguously identify the message between the sending and receiving party. Take note that this uniquely identifies a single message in a potentially multi-message exchange to complete a payment.

reportobject(IdentifierDeterminationReport)required
report.​schemastring(PaymentSchemeName)required

Identifies the scheme used for the payment

  • ZA_RTC: South African Realtime Clearing scheme.
  • ZA_RPP: South African Realtime Payments Platform scheme.
  • ZA_EFT: South African Electronic Funds Transfer scheme.
  • ZA_AC : South African Authenticated Collections scheme.
  • ZA_RMS: South African Registered Mandate Service scheme.
  • CBPR_PLUS: Cross-Border Payments and Reporting Plus.
Enum"ZA_RTC""ZA_RPP""ZA_EFT""ZA_AC""ZA_RMS""CBPR_PLUS"
Discriminator
report.​instructedAgentobject(InstitutionIdentification)
report.​instructingAgentobject(InstitutionIdentification)
report.​instructionForCreatorAgentArray of objects(CreditorAgentInstruction)>= 0 items

Further information related to the proxy resolution response, provided by the Operator, and intended for the creator agent.

report.​originalRequestorobject(ZaRppRequestor)
report.​originalUetrstring(UUID)required

The universally unique identifier provided in the original request as an end-to-end reference. This identifier remains the same for all messages related to the same transaction.

report.​originalVerificationIdentificationstring[ 1 .. 35 ] charactersrequired

The request.verificationIdentification as provided in the original request.

report.​reportInformationobject(ZaRppIdentificationReport)required

A report providing information from the lookup of a proxy in the context of the ZA RPP Payment Scheme.

This report returns information required to proceed with the clearing of funds through the use of the proxy (identifier) provided in the identifier determination request. Specifically, this report will provide the outcome of the lookup of said identifier, indication whether it is valid or not, as well as provide the name ("known as name") of the creditor, and the legal name of the creditor (both of these are mandatory in the ZA RPP Payment Scheme, despite not being mandatory in this API), namely:

  • accountOwner.knownAsName
  • accountOwner.legalName
report.​reportInformation.​accountAgentobject(InstitutionIdentification)
report.​reportInformation.​accountInformationobject(ZaRppAccountInformation)
report.​reportInformation.​accountOwnerobject(Party)

This model is the basic representation of a Party. It is expanded on depending on whether the party is a person or an organisation.

report.​reportInformation.​outcomestringrequired
Enum"SUCCESSFUL""FAILED"
report.​reportInformation.​reasonCodestring[ 1 .. 4 ] characters
  • AB06 : Transaction stopped due to timeout at the Instructed Agent.
  • AB07 : Agent of message is not online. Generic usage if it cannot be determined who exactly is not online.
  • AB10 : An error occured at the instructed agent
  • AC06 : Account specified is blocked, prohibiting posting of transactions against it
  • AG01 : Transaction forbidden on this type of account
  • AG03 : Transaction type not supported/authorized on this account.
  • AG10 : Agent of message is suspended from the Real Time Payment system. Generic usage if it cannot be determined who exactly is suspended.
  • AGNT : Agent in the payment workflow is incorrect
  • AM02 : Specific transaction/message amount is greater than allowed maximum (e.g. payee proxy participant service limit exceeded
  • CH21 : Mandatory element is missing .
  • DT02 : Invalid creation date and time in Group Header (eg, historic date) .
  • DU03 : Transaction is not unique.
  • DUPL : Request is a duplicate of another request
  • FF02 : Syntax error reason is provided as narrative information in the additional reason information.
  • FF08 : End to End Id missing or invalid .
  • NAUT : Permission to be processed is not granted
  • NOOR : Original SCT never received
  • PD01 : Domain not found or invalid
  • PD02 : Suspended Domain provided is suspended pending investigation
  • BE23 : Phone number or email address, or any other proxy, used as the account proxy is unknown or invalid.
  • PX03 : Proxy not found in central repository
  • PX04 : Format of proxy invalid
  • RC05 : BIC identifier is invalid or missing.
  • RC08 : ClearingSystemMemberidentifier is invalid or missing. Generic usage if cannot specify between debit or credit account .
  • RR10 : Character set supplied not valid for the country and payment type.
  • RR12 : Invalid or missing identification required within a particular country or payment type.
  • RF01 : Transaction reference is not unique within the message.
  • AC16 : Account in Sequestration
  • AC17 : Account in Liquidation
  • AC04 : Account Closed
  • AC01 : Format of the account number specified is not correct
  • MD07 : Account Holder Deceased
  • NOCM : Customer account is not compliant with regulatory requirements, for example FICA (in South Africa) or any other regulatory requirements which render an account inactive for certain processing.
  • BE01 : Identification of end customer is not consistent with associated account number. (formerly CreditorConsistency).
report.​reportInformation.​reasonDescriptionstring

A description of the reason that the identification request failed. NOTE: Values longer than 35 characters may be truncated due to ZA RPP scheme restrictions.

report.​reportInformation.​transactionLimitobject(Amount)
schemastringrequired
Value"IdentifierDeterminationResponse"
Example: Successful Response
Response
application/json
{ "schema": "IdentifierDeterminationResponse", "messageIdentifiers": { "messageIdentification": "9fd51c1234ba4819bbheyde296a68e1da", "creationDateTime": "2022-05-04T03:22:11Z" }, "originalMessageIdentifiers": { "messageIdentification": "8fd51c7124ba4819b9253e296a68e1da", "creationDateTime": "2022-05-04T03:02:01Z" }, "report": { "originalUetr": "f27a34ad-c5ab-4b70-a3f9-946d743eaeaa", "originalVerificationIdentification": "1001", "schema": "ZA_RPP", "reportInformation": {}, "instructedAgent": {}, "instructingAgent": {}, "originalRequestor": {} }, "supplementaryData": { "customData1": "My custom data 1", "customData2": "My custom data 2" } }
NOTE

The IdentifierDeterminationRequest operation is synchronous in nature and you must respond within 1 second.

Handling Duplicate or Multiple Proxy Resolution Requests

You may sometimes receive more than one proxy resolution request for the same payment. Here is an example of how this may happen:

A payer wishes to make a payment to you, and their sending bank sends you a proxy resolution request via Electrum. You return a positive proxy resolution response, and this is presented to the payer. The payer takes some time to confirm the payment (perhaps they wish to confirm some payment detail, for example). Once the payer does confirm the payment, the bank sends you another proxy resolution before initiating the clearing step. This second resolution is not presented to the payer. It is simply used as an internal safety check between bank and corporate client, to ensure that nothing has changed in between the times when the payer saw the proxy resolution results and confirmed that they wished to pay.

You need to know the following:

  • A proxy resolution can be considered as a type of lookup, an independent transaction which has no financial impact. It does not have to be followed by a clearing step.
  • You may receive multiple proxy resolution requests for the same payment.
  • Each new proxy resolution will contain a different UETR. Therefore, do not try to match a specific payment completion step to a specific UETR. The clearing message will contain all necessary payment details, including the UETR of the proxy on which the payment is based.

Error Handing

Technical Error

If you experience a technical error and are unable to process the request, then respond with an appropriate failure response as described in the Error Handling and Failure Responses section.

Negative Outcome

If you are able to process the request, but the result is negative, then respond with IdentifierDeterminationResponse that includes appropriate values for report.reportInformation.outcome and report.reportInformation.reasonCode. The table below indicates the possible reasonCode values in different scenarios. Electrum will respond to the scheme that the transaction was unsuccessful. No further action from you is required for this transaction.

Example: Unsuccessful Response
Response
application/json
{ "schema": "IdentifierDeterminationResponse", "messageIdentifiers": { "messageIdentification": "9fd51c1234ba4819bbheyde296a68e1da", "creationDateTime": "2022-05-04T03:22:11Z" }, "originalMessageIdentifiers": { "messageIdentification": "8fd51c7124ba4819b9253e296a68e1da", "creationDateTime": "2022-05-04T03:02:01Z" }, "report": { "originalUetr": "f27a34ad-c5ab-4b70-a3f9-946d743eaeaa", "originalVerificationIdentification": "1001", "schema": "ZA_RPP", "reportInformation": {}, "instructedAgent": {}, "instructingAgent": {}, "originalRequestor": {} }, "supplementaryData": { "customData1": "My custom data 1", "customData2": "My custom data 2" } }
Scenarioreport.reportInformation.reasonCode Value and Description
Invalid or expired proxy.BE23 (Account Proxy Invalid)
The account or wallet linked to a given proxy is blocked, closed, or non-compliant.
  • AC04 (Closed Account Number)
  • AC06 (Blocked Account Number)
  • NOCM (Customer Account Non-Compliant with Regulatory Requirements)
The account linked to a given proxy cannot accept payment receipts.
  • AG01 (Transaction Forbidden)
  • AG03 (Transaction Not Supported)
The transaction (such as a proxy resolution request) is not allowed for the account linked to a given proxy.
  • AG01 (Transaction Forbidden)
  • AG03 (Transaction Not Supported)
Error at corporate client.
  • FF10 (Bank System Processing Error)
  • FF11 (Clearing Request Aborted)
Technical errors relating to the transaction message.
  • CH21 (Mandatory Element Missing)
  • DT02 (Invalid Creation Date and Time)
  • DU03 (Transaction Not Unique)
  • DUPL (Duplicate Request)
  • FF02 (Syntax Error)
  • FF08 (Invalid or Missing End-to-End ID)
  • PX04 (Proxy Format Invalid)
  • RR10 (Invalid Character Set)
  • RF01 (Transaction Reference Not Unique)

Timeout

If Electrum does not receive any response from you within the appropriate time limit then Electrum will respond to the scheme that the transaction was unsuccessful. No further action is required from you.

Payment Authorisation

  1. Electrum sends an inboundCreditTransferAuthorisation request to you via the /transactions/inbound/credit-transfer-authorisation endpoint (CreditTransfer schema; see below). This is an asynchronous call.
CreditTransfer Schema
messageIdentifiersobject(MessageIdentifiers)required

Holds a point-to-point unique message identification string as well as a message's creation date time.

messageIdentifiers.​creationDateTimestring(date-time)required

The date and time at which the message was created, in senders local timezone or UTC. The date must be formatted as defined by date-time in RFC3339

messageIdentifiers.​messageIdentificationstring<= 35 charactersrequired

A reference used to unambiguously identify the message between the sending and receiving party. Take note that this uniquely identifies a single message in a potentially multi-message exchange to complete a payment.

supplementaryDataobject(SupplementaryData)

A list of key-value pairs to support adding any supplementary/additional data to an Electrum Regulated Payments API message.

transactionIdentifiersobject(TransactionIdentifiers)required

Holds a series of identifiers to identify the transaction or an individual message that is part of a transaction.

transactionIdentifiers.​endToEndIdentificationstring<= 35 charactersrequired

Unique identification, as assigned by the initiating party, to unambiguously identify the transaction. This identification is passed on, unchanged, throughout the entire end-to-end chain. Note: this is distinct from the UETR.

transactionIdentifiers.​instructionIdentificationstring<= 35 characters

Unique identification, as assigned by an instructing party for an instructed party, to unambiguously identify the instruction. The instruction identification is a point to point reference that can be used between the instructing party and the instructed party to refer to the individual instruction. It can be included in several messages related to the instruction.

transactionIdentifiers.​transactionIdentificationstring<= 35 characters

Unique identification, as assigned by the first instructing agent, to unambiguously identify the transaction that is passed on, unchanged, throughout the entire interbank chain. Usage: The transaction identification can be used for reconciliation, tracking or to link tasks relating to the transaction on the interbank level. Usage: The instructing agent has to make sure that the transaction identification is unique for a pre-agreed period.

transactionIdentifiers.​uetrstring(UUID)required

Universally unique identifier to provide an end-to-end reference of a payment transaction. This identifier remains the same for all messages related to the same transaction.

amountsobject(TransactionAmounts)required
amounts.​bankSettlementAmountobject(Amount)required
amounts.​bankSettlementAmount.​currencystring^[A-Z]{3}$required

A valid, active currency code as defined in ISO 4217 indicating the currency of the amount.

amounts.​bankSettlementAmount.​valuenumber(double)>= 0required

The payment amount in the denomination of the indicated currency, in the format '<major units>.<minor units> with the number of minor units (fractional digits) compliant with the number of decimal places published in ISO 4217.

Currency CodeExampleValidNotes
USD10.0Represents 10 USD and no cents.
USD10.00
USD10.001US dollar does not support three decimal places.
JPY10.0Represents 10 Japanese Yen.
JPY10.1Japanese Yen does not support decimal places.
amounts.​instructedAmountobject(Amount)
creditorobject(Party)required

This model is the basic representation of a Party. It is expanded on depending on whether the party is a person or an organisation.

creditor.​addressobject(PostalAddress)
creditor.​contactDetailsobject(ContactDetails)
creditor.​countryOfResidencestring(CountryCode)[A-Z]{2,2}

A code to identify a country, a dependency, or another area of particular geopolitical interest, on the basis of country names obtained from the United Nations (ISO 3166, Alpha-2 code).

creditor.​identificationobject(PartyIdentification)

The identification of a party, either a person or an organisation.

creditor.​knownAsNamestring[ 1 .. 140 ] characters

The name by which this party is commonly known in day to day use. For example, a shortening of their legal name or a nickname that they commonly use. This is "non-official". However, it is acceptable for this field to be set to the same as legalName.

creditor.​legalNamestring[ 1 .. 140 ] characters

The legal name by which this party is known (the "FICA" name). This is the full name of the party as found on country-issued documentation (national identity, company registration documentation etc).

creditorAccountobject(PaymentAccount)required

Representation of an account for payment purposes. Note that at least one of identification or proxy is expected to be present.

creditorAccount.​currencystring^[A-Z]{3}$

Identification of the currency in which the account is held.

creditorAccount.​identificationobject(BankingIdentifier)
creditorAccount.​namestring<= 70 characters

Name of the account, as assigned by the account servicing institution, in agreement with the account owner in order to provide an additional means of identification of the account.

creditorAccount.​proxyobject(NonBankingIdentifier)
creditorAccount.​typeobject(AccountType)
creditorAgentobject(InstitutionIdentification)required
creditorAgent.​additionalIdentificationsArray of objects(AccountIdentification)
creditorAgent.​addressobject(PostalAddress)
creditorAgent.​bicfistring^[A-Z0-9]{4,4}[A-Z]{2,2}[A-Z0-9]{2,2}([A-Z0-9...

A code allocated to a financial or non-financial institution by the ISO 9362 Registration Authority as described in ISO 9362 Banking - Banking telecommunication messages - Business identifier code (BIC)

creditorAgent.​branchobject(BranchIdentification)
creditorAgent.​clearingSystemMemberIdobject(ClearingSystemMemberIdentification)
creditorAgent.​leistring[A-Z0-9]{18,18}[0-9]{2,2}

An organisation identified by a code allocated to a party as described in ISO 17442 Financial Services - Legal Entity Identifier (LEI).

creditorAgent.​namestring<= 140 characters

Name by which an institution is known and which is usually used to identify that institution

creditorAgent.​companyRegistrationstring<= 35 charactersDeprecated

A unique identifier assigned to a company or organisation by a duly appointed authority within a country.

creditorAgent.​memberIdstring<= 35 charactersDeprecated

Deprecated. Please use the preferred clearingSystemMemberId.memberId instead. Identification of a member of a clearing system.

creditorAgentAccountobject(PaymentAccount)

Representation of an account for payment purposes. Note that at least one of identification or proxy is expected to be present.

debtorobject(Party)required

This model is the basic representation of a Party. It is expanded on depending on whether the party is a person or an organisation.

debtor.​addressobject(PostalAddress)
debtor.​contactDetailsobject(ContactDetails)
debtor.​countryOfResidencestring(CountryCode)[A-Z]{2,2}

A code to identify a country, a dependency, or another area of particular geopolitical interest, on the basis of country names obtained from the United Nations (ISO 3166, Alpha-2 code).

debtor.​identificationobject(PartyIdentification)

The identification of a party, either a person or an organisation.

debtor.​knownAsNamestring[ 1 .. 140 ] characters

The name by which this party is commonly known in day to day use. For example, a shortening of their legal name or a nickname that they commonly use. This is "non-official". However, it is acceptable for this field to be set to the same as legalName.

debtor.​legalNamestring[ 1 .. 140 ] characters

The legal name by which this party is known (the "FICA" name). This is the full name of the party as found on country-issued documentation (national identity, company registration documentation etc).

debtorAccountobject(PaymentAccount)

Representation of an account for payment purposes. Note that at least one of identification or proxy is expected to be present.

debtorAgentobject(InstitutionIdentification)required
debtorAgent.​additionalIdentificationsArray of objects(AccountIdentification)
debtorAgent.​addressobject(PostalAddress)
debtorAgent.​bicfistring^[A-Z0-9]{4,4}[A-Z]{2,2}[A-Z0-9]{2,2}([A-Z0-9...

A code allocated to a financial or non-financial institution by the ISO 9362 Registration Authority as described in ISO 9362 Banking - Banking telecommunication messages - Business identifier code (BIC)

debtorAgent.​branchobject(BranchIdentification)
debtorAgent.​clearingSystemMemberIdobject(ClearingSystemMemberIdentification)
debtorAgent.​leistring[A-Z0-9]{18,18}[0-9]{2,2}

An organisation identified by a code allocated to a party as described in ISO 17442 Financial Services - Legal Entity Identifier (LEI).

debtorAgent.​namestring<= 140 characters

Name by which an institution is known and which is usually used to identify that institution

debtorAgent.​companyRegistrationstring<= 35 charactersDeprecated

A unique identifier assigned to a company or organisation by a duly appointed authority within a country.

debtorAgent.​memberIdstring<= 35 charactersDeprecated

Deprecated. Please use the preferred clearingSystemMemberId.memberId instead. Identification of a member of a clearing system.

debtorAgentAccountobject(PaymentAccount)

Representation of an account for payment purposes. Note that at least one of identification or proxy is expected to be present.

initiatingPartyobject(Party)

This model is the basic representation of a Party. It is expanded on depending on whether the party is a person or an organisation.

instructedAgentobject(InstitutionIdentification)
instructingAgentobject(InstitutionIdentification)
instructionForCreditorAgentArray of objects(CreditorAgentInstruction)>= 0 items

Further information related to the processing of the payment instruction, provided by the initiating party, and intended for the creditor agent.

intermediaryAgentsArray of objects(InstitutionIdentification)<= 3 items

Agents between the debtor's agent and the creditor's agent. Usage: If more than one intermediary agent is present, then IntermediaryAgent1 identifies the agent between the DebtorAgent and the IntermediaryAgent2

paymentSchemeobject(CreditTransferPaymentScheme)required

Designates which scheme a customer credit transfer is associated with and describes scheme-specific information for the credit transfer.

paymentScheme.​schemastringrequired
Discriminator
paymentScheme.​schemeDataobject(CbprPlusCustomerCreditSchemeData)required

Information necessary for FI to FI customer credit transfers, specifically for CBPR+

paymentScheme.​schemeData.​chargeBearerstring(ChargeBearer)required
  • DEBT (BorneByDebtor): All transaction charges are to be borne by the debtor
  • CRED (BorneByCreditor): All transaction charges are to be borne by the creditor
  • SHAR (Shared): In a credit transfer context, means that transaction charges on the sender side are to be borne by the debtor, transaction charges on the receiver side are to be borne by the creditor. In a direct debit context, means that transaction charges on the sender side are to be borne by the creditor, transaction charges on the receiver side are to be borne by the debtor.
  • SLEV (FollowingServiceLevel): Charges are to be applied following the rules agreed in the service level and/or scheme
Enum"DEBT""CRED""SHAR""SLEV"
paymentScheme.​schemeData.​chargesArray of objects(Charge)
paymentScheme.​schemeData.​exchangeRatenumber(double)

Factor used to convert an amount from one currency into another. This reflects the price at which one currency was bought with another currency.

paymentScheme.​schemeData.​regulatoryReportingArray of objects(RegulatoryReporting)<= 10 items
paymentTypeInformationobject(PaymentTypeInformation)
previousInstructingAgentsArray of objects(InstitutionIdentification)<= 3 items

Agent(s) between the debtor's agent and the instructing agent.

purposeobject(PurposeType)

Specifies the underlying reason for the payment transaction

remittanceInformationobject(RemittanceInformation)
schemastringrequired
Value"CreditTransfer"
settlementDatestring(date)

Date on which the amount of money ceases to be available to the agent that owes it and when the amount of money becomes available to the agent to which it is due.

taxobject(TaxInformation)
Example
Response
No content
  1. You respond with an acknowledgement (ACK) in the form of an HTTP 202 status code with no additional content.

  2. You identify the customer record and determine whether the payment of the given amount as per the request message can be authorised for that customer record.

  3. You return an inboundCreditTransferAuthorisationResponse message to Electrum via the /transactions-inbound/credit-transfer-authorisation endpoint (PaymentStatusReport schema; see below).

PaymentStatusReport Schema
messageIdentifiersobject(MessageIdentifiers)required

Holds a point-to-point unique message identification string as well as a message's creation date time.

messageIdentifiers.​creationDateTimestring(date-time)required

The date and time at which the message was created, in senders local timezone or UTC. The date must be formatted as defined by date-time in RFC3339

messageIdentifiers.​messageIdentificationstring<= 35 charactersrequired

A reference used to unambiguously identify the message between the sending and receiving party. Take note that this uniquely identifies a single message in a potentially multi-message exchange to complete a payment.

supplementaryDataobject(SupplementaryData)

A list of key-value pairs to support adding any supplementary/additional data to an Electrum Regulated Payments API message.

originalMessageIdentifiersobject(MessageIdentifiers)required

Holds a point-to-point unique message identification string as well as a message's creation date time.

originalMessageIdentifiers.​creationDateTimestring(date-time)required

The date and time at which the message was created, in senders local timezone or UTC. The date must be formatted as defined by date-time in RFC3339

originalMessageIdentifiers.​messageIdentificationstring<= 35 charactersrequired

A reference used to unambiguously identify the message between the sending and receiving party. Take note that this uniquely identifies a single message in a potentially multi-message exchange to complete a payment.

transactionIdentifiersobject(TransactionIdentifiers)required

Holds a series of identifiers to identify the transaction or an individual message that is part of a transaction.

transactionIdentifiers.​endToEndIdentificationstring<= 35 charactersrequired

Unique identification, as assigned by the initiating party, to unambiguously identify the transaction. This identification is passed on, unchanged, throughout the entire end-to-end chain. Note: this is distinct from the UETR.

transactionIdentifiers.​instructionIdentificationstring<= 35 characters

Unique identification, as assigned by an instructing party for an instructed party, to unambiguously identify the instruction. The instruction identification is a point to point reference that can be used between the instructing party and the instructed party to refer to the individual instruction. It can be included in several messages related to the instruction.

transactionIdentifiers.​transactionIdentificationstring<= 35 characters

Unique identification, as assigned by the first instructing agent, to unambiguously identify the transaction that is passed on, unchanged, throughout the entire interbank chain. Usage: The transaction identification can be used for reconciliation, tracking or to link tasks relating to the transaction on the interbank level. Usage: The instructing agent has to make sure that the transaction identification is unique for a pre-agreed period.

transactionIdentifiers.​uetrstring(UUID)required

Universally unique identifier to provide an end-to-end reference of a payment transaction. This identifier remains the same for all messages related to the same transaction.

instructedAgentobject(InstitutionIdentification)
instructingAgentobject(InstitutionIdentification)
statusobject(Status)required
status.​outcomestringrequired
  • APPROVED: The instruction has been approved.
  • CANCELLED: The instruction has been cancelled.
  • PENDING: The instruction is pending.
  • REJECTED: The instruction has been rejected.
Enum"APPROVED""CANCELLED""PENDING""REJECTED"
status.​reasonInfoArray of objects(StatusReasonInfo)non-empty

A list of StatusReasonInfo values providing detailed reason information for the outcome.

mandateInformationobject(MandateInformation)

Provides details of the direct debit mandate signed between the creditor and the debtor.

NOTE: This model is a work in progress and may change. In particular, it lacks properties relating to mandate amendments which we may need in the future. Note also that this model is not relevant to the ZA_EFT scheme, and therefore Electrum will not do any special processing for these fields for EFT (e.g. Electrum cannot honour tracking days for EFT payments).

originalTransactionDataobject(OriginalTransactionData)

Contains key elements related to the original transaction that is being referred to.

paymentSchemeobject(PaymentStatusReportPaymentScheme)required

Designates which scheme a payment status report is associated with and describes scheme-specific information for the payment status report.

paymentScheme.​schemastringrequired
Discriminator
schemastringrequired
Value"PaymentStatusReport"
Example: Successful Response
Response
No content
  1. Electrum responds with an acknowledgement (ACK) in the form of an HTTP 202 status code with no additional content.

Error Handling

Technical Error

If you experience a technical error and are unable to process the authorisation request, then respond with an appropriate failure response as described in the Error Handling and Failure Responses section. If Electrum receives a negative HTTP response, or no response at all, we may retry the request message. If the issue persists, a timeout will occur and Electrum will respond to the scheme that the transaction was unsuccessful. Your system will receive an inboundCreditTransferCompletion message with a status code of REJECTED or CANCELLED, to inform you of the attempted payment that has failed. Electrum will send the message to you repeatedly via a store-and-forward (SAF) queue until you acknowledge receipt with an HTTP response.

epc inbound payshap partner-auth error at CC

Negative Outcome

If you are able to process the authorisation request, but the result is negative, then respond with inboundCreditTransferAuthorisationResponse message (PaymentStatusReport schema) that includes appropriate values for status.outcome and status.reasonInfo.reason. The table below indicates the possible status.reasonInfo.reason values in different scenarios. Electrum will respond to the scheme that the transaction was unsuccessful. No further action from you is required.

Scenariostatus.reasonInfo.reason Value and Description
A given proxy is no longer valid at the time of clearing.AG01 (Transaction Forbidden)
The payment is related to an RTP that is no longer valid.AG01 (Transaction Forbidden)
The account or wallet linked to a given proxy is blocked, closed, or non-compliant.
  • AC04 (Closed Account Number)
  • AC06 (Blocked Account Number)
  • NOCM (Customer Account Non-Compliant with Regulatory Requirements)
The transaction is not allowed for the account linked to a given proxy.AG01 (Transaction Forbidden)
Invalid or incorrect payment amount.AM12 (Invalid Amount)
Error at corporate client.
  • FF10 (Bank System Processing Error)
  • FF11 (Clearing Request Aborted)
Technical errors relating to the transaction message.
  • AM18 (Invalid Number of Transactions)
  • CH21 (Mandatory Element Missing)
  • DT01 (Invalid Date)
  • DT02 (Invalid Creation Date and Time)
  • DU03 (Transaction not Unique)
  • DUPL (Duplicate Request)
  • FF02 (Syntax Error)
  • FF05 (Invalid Local Instrument Code)
  • FF08 (Invalid or Missing End-to-End Transaction ID)
  • RF01 (Transaction Reference Not Unique)

epc inbound payshap partner-auth negative outcome

Timeout at Electrum

If Electrum does not receive an inboundCreditTransferAuthorisationResponse from you within the appropriate time limit then Electrum will respond to the scheme that the transaction was unsuccessful. Your system will receive an inboundCreditTransferCompletion message (PaymentStatusReport schema) with a status code of REJECTED or CANCELLED, to inform you of the attempted payment that has failed. Electrum will send the message to you repeatedly via a store-and-forward (SAF) queue until you acknowledge receipt with an HTTP response.

epc inbound payshap partner-auth timeout Electrum

Error at Electrum

If Electrum experiences a technical error and is unable to process the inboundCreditTransferAuthorisationResponse message, then we will respond to you with an appropriate failure response as described in the Error Handling and Failure Responses section. Electrum will respond to the scheme that the transaction was unsuccessful. Your system will receive an inboundCreditTransferCompletion message (PaymentStatusReport schema) with a status code of REJECTED or CANCELLED, to inform you that the attempted payment has failed. Electrum will send the inboundCreditTransferCompletion to you repeatedly via a store-and-forward (SAF) queue until you return an HTTP response to acknowledge receipt.

epc inbound payshap partner-auth error Electrum

NOTE

Although your initial outcome in the inboundCreditTransferAuthorisationResponse message (PaymentStatusReport schema) may have been APPROVED, the final outcome in the inboundCreditTransferCompletion message (PaymentStatusReport schema) may be REJECTED or CANCELLED. It is therefore important that you do not update your own customer records to reflect a payment based on your outcome of the authorisation step, but that you wait for the completion notification from Electrum with the final payment outcome.

Payment Finalisation

After the clearing of an inbound payment has been completed (either successfully or unsuccessfully) at the sponsor bank, Electrum will send an inboundCreditTransferCompletion request to you to notify you of the payment. At this point you can update your own systems to reflect the payment.

  1. Electrum sends you an inboundCreditTransferCompletion message, conforming to the PaymentStatusReport schema, that includes a status.outcome field with the final outcome of the payment.
PaymentStatusReport Schema
messageIdentifiersobject(MessageIdentifiers)required

Holds a point-to-point unique message identification string as well as a message's creation date time.

messageIdentifiers.​creationDateTimestring(date-time)required

The date and time at which the message was created, in senders local timezone or UTC. The date must be formatted as defined by date-time in RFC3339

messageIdentifiers.​messageIdentificationstring<= 35 charactersrequired

A reference used to unambiguously identify the message between the sending and receiving party. Take note that this uniquely identifies a single message in a potentially multi-message exchange to complete a payment.

supplementaryDataobject(SupplementaryData)

A list of key-value pairs to support adding any supplementary/additional data to an Electrum Regulated Payments API message.

originalMessageIdentifiersobject(MessageIdentifiers)required

Holds a point-to-point unique message identification string as well as a message's creation date time.

originalMessageIdentifiers.​creationDateTimestring(date-time)required

The date and time at which the message was created, in senders local timezone or UTC. The date must be formatted as defined by date-time in RFC3339

originalMessageIdentifiers.​messageIdentificationstring<= 35 charactersrequired

A reference used to unambiguously identify the message between the sending and receiving party. Take note that this uniquely identifies a single message in a potentially multi-message exchange to complete a payment.

transactionIdentifiersobject(TransactionIdentifiers)required

Holds a series of identifiers to identify the transaction or an individual message that is part of a transaction.

transactionIdentifiers.​endToEndIdentificationstring<= 35 charactersrequired

Unique identification, as assigned by the initiating party, to unambiguously identify the transaction. This identification is passed on, unchanged, throughout the entire end-to-end chain. Note: this is distinct from the UETR.

transactionIdentifiers.​instructionIdentificationstring<= 35 characters

Unique identification, as assigned by an instructing party for an instructed party, to unambiguously identify the instruction. The instruction identification is a point to point reference that can be used between the instructing party and the instructed party to refer to the individual instruction. It can be included in several messages related to the instruction.

transactionIdentifiers.​transactionIdentificationstring<= 35 characters

Unique identification, as assigned by the first instructing agent, to unambiguously identify the transaction that is passed on, unchanged, throughout the entire interbank chain. Usage: The transaction identification can be used for reconciliation, tracking or to link tasks relating to the transaction on the interbank level. Usage: The instructing agent has to make sure that the transaction identification is unique for a pre-agreed period.

transactionIdentifiers.​uetrstring(UUID)required

Universally unique identifier to provide an end-to-end reference of a payment transaction. This identifier remains the same for all messages related to the same transaction.

instructedAgentobject(InstitutionIdentification)
instructingAgentobject(InstitutionIdentification)
statusobject(Status)required
status.​outcomestringrequired
  • APPROVED: The instruction has been approved.
  • CANCELLED: The instruction has been cancelled.
  • PENDING: The instruction is pending.
  • REJECTED: The instruction has been rejected.
Enum"APPROVED""CANCELLED""PENDING""REJECTED"
status.​reasonInfoArray of objects(StatusReasonInfo)non-empty

A list of StatusReasonInfo values providing detailed reason information for the outcome.

mandateInformationobject(MandateInformation)

Provides details of the direct debit mandate signed between the creditor and the debtor.

NOTE: This model is a work in progress and may change. In particular, it lacks properties relating to mandate amendments which we may need in the future. Note also that this model is not relevant to the ZA_EFT scheme, and therefore Electrum will not do any special processing for these fields for EFT (e.g. Electrum cannot honour tracking days for EFT payments).

originalTransactionDataobject(OriginalTransactionData)

Contains key elements related to the original transaction that is being referred to.

paymentSchemeobject(PaymentStatusReportPaymentScheme)required

Designates which scheme a payment status report is associated with and describes scheme-specific information for the payment status report.

paymentScheme.​schemastringrequired
Discriminator
schemastringrequired
Value"PaymentStatusReport"
Example
Cannot find OpeAPI operation by operationId or pointer
  1. You respond with an acknowledgement (ACK) in the form of an HTTP 2xx status code with no additional content.

Error Handling

No Response from Corporate Client

epc inbound payshap no response from BP

Electrum treats the inboundCreditTransferCompletion as a must-deliver message and will repeatedly send it to you via a store-and-forward (SAF) queue until you acknowledge receipt with an HTTP response.

If your solution includes the use of Electrum Finance for transaction reconciliation and Electrum does not receive an acknowledgement before the reconciliation window closes, the inboundCreditTransferCompletion transaction will be considered a reconciliation exception. The Electrum daily mark-off extract may contain a transaction which was not seen by your system, and subsequently was not included in your daily mark-off extract.

IMPORTANT

Electrum sends an inboundCreditTransferCompletion to you even if the inbound payment was unsuccessful. Refer to the status.outcome field to determine whether or not funds should be credited.

In rare circumstances, Electrum may be unable to determine the final state of the transaction from the payment network. In this case you will not receive an inboundCreditTransferCompletion and no action is required from you. Any discrepancy between your view of the transaction and that of the sending participant will need to be resolved during reconciliation.

Testing Your Implementation

Follow the testing procedure described here to make sure you have implemented the functionality correctly.