Definitions

GetQrCodeRequest

NameTypeRequiredRestrictionsDescription
idstringrequired
The randomly generated UUID identifying this transaction, as defined for a variant 4 UUID in [RFC 4122](https://tools.ietf.org/html/rfc4122)
timestringrequired format: date-time
The date and time of the message as recorded by the sender. The format shall be as defined for date-time in [RFC 3339 section 5.6](https://tools.ietf.org/html/rfc3339#section-5.6). It is recommended that the optional time-secfrac be included up to millisecond precision
originator Originator required
Data relating to the originator of the transaction.
rrnstringrequired
The retrieval reference number for this transaction set by the sender.
amount LedgerAmount optional
The amount to be tendered.

GetQrCodeResponse

NameTypeRequiredRestrictionsDescription
idstringrequired
The randomly generated UUID identifying this transaction, as defined for a variant 4 UUID in [RFC 4122](https://tools.ietf.org/html/rfc4122)
timestringrequired format: date-time
The date and time of the message as recorded by the sender. The format shall be as defined for date-time in [RFC 3339 section 5.6](https://tools.ietf.org/html/rfc3339#section-5.6). It is recommended that the optional time-secfrac be included up to millisecond precision
originator Originator required
Data relating to the originator of the transaction.
amounts LedgerAmount optional
The amount to be tendered.
qrCodestringrequired
A QR code as described in the Advanced Topics section.
tranIdstringrequired
The unique transaction identifier related to this transaction. This transaction identifier is encoded within the QR Code and is to be used to associate the scan and the payment request.

PaymentRequest

NameTypeRequiredRestrictionsDescription
idstringrequired
The randomly generated UUID identifying this transaction, as defined for a variant 4 UUID in [RFC 4122](https://tools.ietf.org/html/rfc4122)
timestringrequired format: date-time
The date and time of the message as recorded by the sender. The format shall be as defined for date-time in [RFC 3339 section 5.6](https://tools.ietf.org/html/rfc3339#section-5.6). It is recommended that the optional time-secfrac be included up to millisecond precision
originator Originator required
Data relating to the originator of the transaction.
rrnstringrequired
The retrieval reference number for this transaction set by the sender.
amount LedgerAmount required
The amount to be tendered.
tranIdstringrequired
The unique transaction identifier related to this transaction. This transaction identifier is encoded within the QR Code and is to be used to associate the scan and the payment request.

PaymentResponse

NameTypeRequiredRestrictionsDescription
idstringrequired
The randomly generated UUID identifying this transaction, as defined for a variant 4 UUID in [RFC 4122](https://tools.ietf.org/html/rfc4122)
timestringrequired format: date-time
The date and time of the message as recorded by the sender. The format shall be as defined for date-time in [RFC 3339 section 5.6](https://tools.ietf.org/html/rfc3339#section-5.6). It is recommended that the optional time-secfrac be included up to millisecond precision
originator Originator required
Data relating to the originator of the transaction.
rrnstringrequired
The retrieval reference number for this transaction set by the sender.
amount LedgerAmount required
The amount to be tendered.
tranIdstringrequired
The unique transaction identifier related to this transaction. This transaction identifier is encoded within the QR Code and is to be used to associate the scan and the payment request.
partner Institution required
Data relating to the entity which processed the tender request.

ConfirmationAdvice

The data required in all advice messages

NameTypeRequiredRestrictionsDescription
idstringrequired
The randomly generated UUID identifying this advice, as defined for a variant 4 UUID in [RFC 4122](https://tools.ietf.org/html/rfc4122)
requestIdstringrequired
The UUID identifying the request that this advice relates to
timestringrequired format: date-time
The date and time of the message as recorded by the sender. The format shall be as defined for date-time in [RFC 3339 section 5.6](https://tools.ietf.org/html/rfc3339#section-5.6). It is recommended that the optional time-secfrac be included up to millisecond precision
rrnstringrequired
The retrieval reference number for this transaction set by the sender in the PaymentRequest.
partner Institution required
Data relating to the entity which processed the tender request as returned in the PaymentResponse.

ReversalAdvice

An advice that notifies of the negative completion of a transaction. This can be either due to customer cancellation, or as a result of receiving a non-final response (or no response) to a request

NameTypeRequiredRestrictionsDescription
idstringrequired
The randomly generated UUID identifying this advice, as defined for a variant 4 UUID in [RFC 4122](https://tools.ietf.org/html/rfc4122)
requestIdstringrequired
The UUID identifying the request that this advice relates to
timestringrequired format: date-time
The date and time of the message as recorded by the sender. The format shall be as defined for date-time in [RFC 3339 section 5.6](https://tools.ietf.org/html/rfc3339#section-5.6). It is recommended that the optional time-secfrac be included up to millisecond precision
reversalReasonstringrequired
[ TIMEOUT, CANCELLED, RESPONSE_NOT_FINAL]
The reason for the reversal
rrnstringrequired
The retrieval reference number for this transaction set by the sender in the payment request.
partner Institution optional
Data relating to the entity which processed the tender request as returned in the PaymentResponse.

AdviceResponse

Basic advice response information.

NameTypeRequiredRestrictionsDescription
idstringrequired
The randomly generated UUID identifying this advice, as defined for a variant 4 UUID in [RFC 4122](https://tools.ietf.org/html/rfc4122)
requestIdstringrequired
The UUID identifying the request that this advice relates to
timestringrequired format: date-time
The date and time of the message as recorded by the sender. The format shall be as defined for date-time in [RFC 3339 section 5.6](https://tools.ietf.org/html/rfc3339#section-5.6). It is recommended that the optional time-secfrac be included up to millisecond precision
rrnstringrequired
The retrieval reference number for this transaction set by the sender in the payment request.

ErrorDetail

Represents the outcome of a completed transaction

NameTypeRequiredRestrictionsDescription
errorTypestringrequired
[ GENERAL_ERROR]
The type of error that occurred
errorMessagestringrequired minLength: 0 maxLength: 20
A short description of the error
idstringrequired
The UUID of the message for which error occurred.
originalIdstringoptional
The UUID of the original request message in the case of an error occurring for an advice message.
detailMessageobjectoptional properties: [object Object]
A free form detailed description of a particular failure condition may optionally be supplied

Institution

Originating, acquiring, processing, or receiving institution details

NameTypeRequiredRestrictionsDescription
idstringrequired pattern: [0-9]{1,11}
The institution's id as assigned by Electrum
namestringrequired minLength: 0 maxLength: 40
The institutions's name

Merchant

Merchant related data. Must be included if available

NameTypeRequiredRestrictionsDescription
merchantTypestringrequired pattern: [0-9]{4}
The assigned four digit merchant category code
merchantIdstringrequired minLength: 15 maxLength: 15
The assigned merchant identifier. Also known as card acceptor id
merchantName MerchantName required
The name of a merchant

MerchantName

A container object representing the Merchant Name and Location

NameTypeRequiredRestrictionsDescription
namestringrequired minLength: 0 maxLength: 23
The merchant or trading as name associated with the merchant
citystringrequired minLength: 0 maxLength: 13
The city where the merchant is located
regionstringrequired minLength: 0 maxLength: 2
The state or region where the merchant is located
countrystringrequired minLength: 0 maxLength: 2
The country where the merchant is located

Originator

The Originator object encapsulates data relating to the originator of the transaction

NameTypeRequiredRestrictionsDescription
institution Institution required
The institution originating the request, as issued by Electrum
terminalIdstringrequired minLength: 8 maxLength: 8
The ID that uniquely identifies each device or system in an originator's institution capable of sending requests. Required for transactions initiated from physical card entry or point-of-sale devices
merchant Merchant required
Merchant data. Required if available

LedgerAmount

An amount object only containing value and currency, and optionally an indicator of DEBIT/CREDIT

NameTypeRequiredRestrictionsDescription
amountintegerrequired format: int64
Amount in minor denomination, e.g. R799.95 is encoded as 79995
currencystringrequired pattern: [0-9]{3}
Three digit currency number from ISO 4217, e.g. South African Rand is encoded as 710
ledgerIndicatorstringoptional
[ DEBIT, CREDIT]
Indicates whether this amount is a debit or a credit. Only required when the amount can be either a debit or a credit