This operation is asynchronous. It is responded to by the inboundPaymentReturnResponse operation.
Invoked when an inbound return is received for an earlier outbound direct debit or outbound credit transfer. The response to this operation will indicate the success or failure of the return. Note that some payment schemes may not support rejecting the return. In these cases, a rejected response will cause Electrum to flag the transaction as broken.
The return is expected to have immediate financial impact if approved; there is no completion leg associated with this operation.
This operation must be idempotent, i.e. no action should be taken if the operation is received more than once with an identical request body. This allows Electrum to retry the request if the initial request fails. An identical HTTP response is expected to be returned for each retry.
Scheme | Applicable |
---|---|
ZA_EFT | ✓ |
ZA_RPP | ✗ |
ZA_RTC | ✗ |
traceparent | string (traceparent) ^[A-Fa-f0-9]{2}\-[A-Fa-f0-9]{32}\-[A-Fa-f0-9]... A value used to trace an HTTP message within an Electrum Regulated Payments implementation.
This field must be set as per the |
tracestate | string (tracestate) ^[A-Za-z0-9=, _\*/@]{0,1024}$ A value used to provide context to an HTTP message as it is traced within an Electrum Regulated
Payments implementation. This field must be set as per the |
Accepted. RFC9110 - 202
Bad request. RFC9110 - 400
Unauthorized. RFC9110 - 401
Forbidden. RFC9110 - 403
Method not allowed. RFC9110 - 405
Unprocessable content. RFC9110 - 422
Too Many Requsts. RFC6585 - 429
Internal server error. RFC9110 - 500
Service unavailable. RFC9110 - 503
{- "schema": "PaymentReturn",
- "messageIdentifiers": {
- "messageIdentification": "9fd51c1234ba4819bbheyde296a68e1da",
- "creationDateTime": "2022-05-04T03:22:11Z"
}, - "originalMessageIdentifiers": {
- "messageIdentification": "8fd51c7124ba4819b9253e296a68e1da",
- "creationDateTime": "2022-05-04T03:02:01Z"
}, - "paymentScheme": {
- "schema": "ZA_EFT",
- "schemeData": {
- "returnType": "UNPAID"
}
}, - "paymentTypeInformation": {
- "localInstrument": {
- "schema": "CODE",
- "value": "BTR"
}
}, - "transactionIdentifiers": {
- "endToEndIdentification": "6249118655591098",
- "transactionIdentification": "RRN000000001",
- "uetr": "f27a34ad-c5ab-4b70-a3f9-946d743eaeaa"
}, - "reasonInfo": [
- {
- "reason": {
- "schema": "CODE",
- "value": "AC01"
}, - "additionalInformation": "string"
}
], - "returnedAmounts": {
- "bankSettlementAmount": {
- "value": 1,
- "currency": "ZAR"
}, - "instructedAmount": {
- "value": 1,
- "currency": "ZAR"
}
}, - "settlementDate": "2022-05-04",
- "instructingAgent": {
- "bicfi": "RY8PEG0L",
- "memberId": "AmazingBankId",
- "name": "Amazing Bank Inc",
- "branch": {
- "identification": 210514,
- "name": "ABC Plettenberg Bay",
- "address": {
- "addressType": "ADDR",
- "department": "Department of Mysteries",
- "streetName": "Street of Mysteries",
- "buildingNumber": 42,
- "buildingName": "Mysterious Building",
- "floor": 42,
- "postBox": 1024,
- "postCode": 4242,
- "townName": "Mysty Town",
- "townLocationName": "Mysty Location",
- "districtName": "Mysty District",
- "countrySubDivision": "Mysterious Cape",
- "country": "ZA",
- "addressLine": [
- "16A",
- "New market street",
- "Foreshore",
- "Cape Town",
- "ZA",
- 8001
]
}
}
}, - "instructedAgent": {
- "bicfi": "RY8PEG0L",
- "memberId": "AmazingBankId",
- "name": "Amazing Bank Inc",
- "branch": {
- "identification": 210514,
- "name": "ABC Plettenberg Bay",
- "address": {
- "addressType": "ADDR",
- "department": "Department of Mysteries",
- "streetName": "Street of Mysteries",
- "buildingNumber": 42,
- "buildingName": "Mysterious Building",
- "floor": 42,
- "postBox": 1024,
- "postCode": 4242,
- "townName": "Mysty Town",
- "townLocationName": "Mysty Location",
- "districtName": "Mysty District",
- "countrySubDivision": "Mysterious Cape",
- "country": "ZA",
- "addressLine": [
- "16A",
- "New market street",
- "Foreshore",
- "Cape Town",
- "ZA",
- 8001
]
}
}
}, - "creditor": {
- "address": {
- "addressType": "ADDR",
- "department": "Department of Mysteries",
- "streetName": "Street of Mysteries",
- "buildingNumber": "42",
- "buildingName": "Mysterious Building",
- "floor": "42",
- "postBox": "1024",
- "postCode": "4242",
- "townName": "Mysty Town",
- "townLocationName": "Mysty Location",
- "districtName": "Mysty District",
- "countrySubDivision": "Mysterious Cape",
- "country": "ZA",
- "addressLine": [
- "16A",
- "New market street",
- "Foreshore",
- "Cape Town",
- "ZA",
- "8001"
]
}, - "contactDetails": {
- "phoneNumber": "+27-0214620000",
- "mobileNumber": "+27-08230000000",
- "emailAddress": "developer.dave@electrum.com"
}, - "countryOfResidence": "ZA",
- "identification": {
- "schema": "PERSON",
- "identifiers": [
- {
- "identification": "90001236549870",
- "scheme": {
- "schema": "CODE",
- "value": "NIDN"
}, - "issuer": "Dept of Home Affairs"
}
]
}
}, - "creditorAccount": {
- "identification": {
- "schema": "GENERIC",
- "scheme": {
- "schema": "PROPRIETARY",
- "value": "AProprietaryCode123"
}, - "issuer": "Amazing Bank",
- "value": "abcdef987654"
}, - "type": {
- "schema": "CODE",
- "value": "CACC"
}
}, - "creditorAgent": {
- "bicfi": "RY8PEG0L",
- "memberId": "AmazingBankId",
- "name": "Amazing Bank Inc",
- "branch": {
- "identification": 210514,
- "name": "ABC Plettenberg Bay",
- "address": {
- "addressType": "ADDR",
- "department": "Department of Mysteries",
- "streetName": "Street of Mysteries",
- "buildingNumber": 42,
- "buildingName": "Mysterious Building",
- "floor": 42,
- "postBox": 1024,
- "postCode": 4242,
- "townName": "Mysty Town",
- "townLocationName": "Mysty Location",
- "districtName": "Mysty District",
- "countrySubDivision": "Mysterious Cape",
- "country": "ZA",
- "addressLine": [
- "16A",
- "New market street",
- "Foreshore",
- "Cape Town",
- "ZA",
- 8001
]
}
}
}, - "debtor": {
- "address": {
- "addressType": "ADDR",
- "department": "Department of Mysteries",
- "streetName": "Street of Mysteries",
- "buildingNumber": "42",
- "buildingName": "Mysterious Building",
- "floor": "42",
- "postBox": "1024",
- "postCode": "4242",
- "townName": "Mysty Town",
- "townLocationName": "Mysty Location",
- "districtName": "Mysty District",
- "countrySubDivision": "Mysterious Cape",
- "country": "ZA",
- "addressLine": [
- "16A",
- "New market street",
- "Foreshore",
- "Cape Town",
- "ZA",
- "8001"
]
}, - "contactDetails": {
- "phoneNumber": "+27-0214620000",
- "mobileNumber": "+27-08230000000",
- "emailAddress": "developer.dave@electrum.com"
}, - "countryOfResidence": "ZA",
- "identification": {
- "schema": "PERSON",
- "identifiers": [
- {
- "identification": "90001236549870",
- "scheme": {
- "schema": "CODE",
- "value": "NIDN"
}, - "issuer": "Dept of Home Affairs"
}
]
}
}, - "debtorAccount": {
- "identification": {
- "schema": "GENERIC",
- "scheme": {
- "schema": "PROPRIETARY",
- "value": "AProprietaryCode123"
}, - "issuer": "Amazing Bank",
- "value": "abcdef987654"
}, - "type": {
- "schema": "CODE",
- "value": "CACC"
}
}, - "debtorAgent": {
- "bicfi": "RY8PEG0L",
- "memberId": "AmazingBankId",
- "name": "Amazing Bank Inc",
- "branch": {
- "identification": 210514,
- "name": "ABC Plettenberg Bay",
- "address": {
- "addressType": "ADDR",
- "department": "Department of Mysteries",
- "streetName": "Street of Mysteries",
- "buildingNumber": 42,
- "buildingName": "Mysterious Building",
- "floor": 42,
- "postBox": 1024,
- "postCode": 4242,
- "townName": "Mysty Town",
- "townLocationName": "Mysty Location",
- "districtName": "Mysty District",
- "countrySubDivision": "Mysterious Cape",
- "country": "ZA",
- "addressLine": [
- "16A",
- "New market street",
- "Foreshore",
- "Cape Town",
- "ZA",
- 8001
]
}
}
}, - "originalTransactionData": {
- "settlementDate": "2022-05-04",
- "creditor": {
- "address": {
- "addressType": "ADDR",
- "department": "Department of Mysteries",
- "streetName": "Street of Mysteries",
- "buildingNumber": "42",
- "buildingName": "Mysterious Building",
- "floor": "42",
- "postBox": "1024",
- "postCode": "4242",
- "townName": "Mysty Town",
- "townLocationName": "Mysty Location",
- "districtName": "Mysty District",
- "countrySubDivision": "Mysterious Cape",
- "country": "ZA",
- "addressLine": [
- "16A",
- "New market street",
- "Foreshore",
- "Cape Town",
- "ZA",
- "8001"
]
}, - "contactDetails": {
- "phoneNumber": "+27-0214620000",
- "mobileNumber": "+27-08230000000",
- "emailAddress": "developer.dave@electrum.com"
}, - "countryOfResidence": "ZA",
- "identification": {
- "schema": "PERSON",
- "identifiers": [
- {
- "identification": "90001236549870",
- "scheme": {
- "schema": "CODE",
- "value": "NIDN"
}, - "issuer": "Dept of Home Affairs"
}
]
}
}, - "creditorAccount": {
- "identification": {
- "schema": "GENERIC",
- "scheme": {
- "schema": "PROPRIETARY",
- "value": "AProprietaryCode123"
}, - "issuer": "Amazing Bank",
- "value": "abcdef987654"
}, - "type": {
- "schema": "CODE",
- "value": "CACC"
}
}, - "creditorAgent": {
- "bicfi": "RY8PEG0L",
- "memberId": "AmazingBankId",
- "name": "Amazing Bank Inc",
- "branch": {
- "identification": 210514,
- "name": "ABC Plettenberg Bay",
- "address": {
- "addressType": "ADDR",
- "department": "Department of Mysteries",
- "streetName": "Street of Mysteries",
- "buildingNumber": 42,
- "buildingName": "Mysterious Building",
- "floor": 42,
- "postBox": 1024,
- "postCode": 4242,
- "townName": "Mysty Town",
- "townLocationName": "Mysty Location",
- "districtName": "Mysty District",
- "countrySubDivision": "Mysterious Cape",
- "country": "ZA",
- "addressLine": [
- "16A",
- "New market street",
- "Foreshore",
- "Cape Town",
- "ZA",
- 8001
]
}
}
}, - "amounts": {
- "bankSettlementAmount": {
- "value": 1,
- "currency": "ZAR"
}, - "instructedAmount": {
- "value": 1,
- "currency": "ZAR"
}
}, - "remittanceInformation": {
- "unstructured": [
- "some",
- "unstructured",
- "information"
], - "structured": [
- {
- "referredDocuments": [
- {
- "type": {
- "issuer": "AmazeBank123456",
- "schema": "CODE",
- "value": "CINV"
}, - "documentIdentifier": "A0123456789"
}
], - "referredDocumentAmount": {
- "duePayableAmount": {
- "value": 1,
- "currency": "ZAR"
}, - "remittedAmount": {
- "value": 1,
- "currency": "ZAR"
}
}, - "creditorReference": {
- "type": {
- "issuer": "AnotherAmazeBank1234",
- "schema": "CODE",
- "value": "RADM"
}, - "reference": "ABC123XYZ999"
}, - "additionalRemittanceInformation": [
- "Some",
- "Additional",
- "Information"
]
}
]
}, - "debtor": {
- "address": {
- "addressType": "ADDR",
- "department": "Department of Mysteries",
- "streetName": "Street of Mysteries",
- "buildingNumber": "42",
- "buildingName": "Mysterious Building",
- "floor": "42",
- "postBox": "1024",
- "postCode": "4242",
- "townName": "Mysty Town",
- "townLocationName": "Mysty Location",
- "districtName": "Mysty District",
- "countrySubDivision": "Mysterious Cape",
- "country": "ZA",
- "addressLine": [
- "16A",
- "New market street",
- "Foreshore",
- "Cape Town",
- "ZA",
- "8001"
]
}, - "contactDetails": {
- "phoneNumber": "+27-0214620000",
- "mobileNumber": "+27-08230000000",
- "emailAddress": "developer.dave@electrum.com"
}, - "countryOfResidence": "ZA",
- "identification": {
- "schema": "PERSON",
- "identifiers": [
- {
- "identification": "90001236549870",
- "scheme": {
- "schema": "CODE",
- "value": "NIDN"
}, - "issuer": "Dept of Home Affairs"
}
]
}
}, - "debtorAccount": {
- "identification": {
- "schema": "GENERIC",
- "scheme": {
- "schema": "PROPRIETARY",
- "value": "AProprietaryCode123"
}, - "issuer": "Amazing Bank",
- "value": "abcdef987654"
}, - "type": {
- "schema": "CODE",
- "value": "CACC"
}
}, - "debtorAgent": {
- "bicfi": "RY8PEG0L",
- "memberId": "AmazingBankId",
- "name": "Amazing Bank Inc",
- "branch": {
- "identification": 210514,
- "name": "ABC Plettenberg Bay",
- "address": {
- "addressType": "ADDR",
- "department": "Department of Mysteries",
- "streetName": "Street of Mysteries",
- "buildingNumber": 42,
- "buildingName": "Mysterious Building",
- "floor": 42,
- "postBox": 1024,
- "postCode": 4242,
- "townName": "Mysty Town",
- "townLocationName": "Mysty Location",
- "districtName": "Mysty District",
- "countrySubDivision": "Mysterious Cape",
- "country": "ZA",
- "addressLine": [
- "16A",
- "New market street",
- "Foreshore",
- "Cape Town",
- "ZA",
- 8001
]
}
}
}
}
}
{- "detail": "string",
- "message": "string",
- "schema": "ErrorDetail"
}