Token Request to generate a new token.originatorConversationId This a unique identifier of the request from the clientpaymentNotes This a brief summary of the requestname: Name of the remittercontact: Remitter's contactaddress: Address of the remitteridType: remitter Id type e.g. National ID, PassportidNumber: remitter Id type numbercountry:This is the remitter's ALPHA 2 code. Follow ALPHA to learn more.ccy: Remitter's currency codefinancialInstitution: Remitter's financial institutionsourceOfFunds: Remitter's source of fundsprincipalActivity: Remitter's principal activitydateOfBirth:The birth date of the sender in the format yyyy/mm/ddidIssueDate:National identification card issue date of the sender in the format yyyy/mm/dd(This field is optional)idIssuePlace: Location where the national ID was issued (This field is optional)idExpiryDate: The expiration date of the national ID of the sender in the format yyyy/mm/dd(This field is optional)nationality: The country where the sender is from e.g. Americanname: Name of recipientaddress: Address of the recipientemailAddress: Email address of the recipientcontact: Contact of the recipientidType: Id type of the recipientidNumber: Id number of the recipientmccmnc:Mobile country code. Follow this link, MCCMNC, to find out more about the codes. Only mandatory for Mobile payment order requests.financialInstitution: Recipient financial institutioninstitutionIdentifier: An identifier of the recipient institution. This is mandatory for Bank and Business payment order requests. Bank uses SWIFT code e.g. GAFRKENAXXX or an account number while the Business uses a Paybill number(this is a Bank's Paybill).primaryAccountNumber:This is the account number being creditedccy:This is the currency code of the recipientcountry:This is the recipient's ALPHA 2 code. Follow ALPHA to learn more.purpose:This is the purpose of the transfer.routeId: Id of the route transaction to be used for the transaction.This id is generated from the FindTransactionRoutes request.channelType: This is the channel transaction type. It is received after querying the Find Transaction Routes requestamount: Amount to be transferredcustomerAccountNo: Account number to be used. This is an optional field only required if the partner has more than one account and wants to use a specific one that is not the default accountreference: A reference for the transactionsystemTraceAuditNumber: Unique identifier of the transaction from the clientSample Duplicate Callback Response for an example.{
"originatorConversationId": "12211t21412vr434345545x",
"paymentNotes": "Transactions",
"paymentOrderLines": [
{
"remitter": {
"name": "Einstien James Bela",
"address": "49 abc",
"phoneNumber": "+4491509874561",
"idType": "NATIONALIDCARD",
"idIssuePlace": null,
"idNumber": "123456789",
"idIssueDate": null,
"idExpireDate": null,
"nationality": "US",
"country": "KE",
"ccy": "404",
"financialInstitution": "Bank",
"sourceOfFunds": "Salary",
"principalActivity": "Business",
"dateOfBirth": null,
"state": null,
"city": null,
"postalCode": null
}
"recipient": {
"name": "John Doe",
"address": "Nyati",
"emailAddress": "kkhaliboy@gmail.com",
"phoneNumber": "",
"idType": "National ID",
"idNumber": "28475979",
"financialInstitution": "Mpesa",
"primaryAccountNumber": "+254714789009",
"mccmnc": "63902",
"ccy": 404,
"country": "KE",
"purpose": "TEST"
},
"transaction": {
"routeId": "90d7e7a0-2a12-ec11-aaa1-c7e0fb8016f8",
"channelType": 1,
"customerAccountNo":"1224355633",
"amount": 1111,
"reference": "s1199111s5cdd12r32rwwewsuyitt",
"systemTraceAuditNumber": "22f323f3241s14sswwwin9uihjf"
}
}
]
}
{
"originatorConversationId": "12211t21412vr434345545x",
"paymentNotes": "Transactions",
"paymentOrderLines": [
{
"remitter": {
"name": "Einstien James Bela",
"address": "49 abc",
"phoneNumber": "+4491509874561",
"idType": "NATIONALIDCARD",
"idIssuePlace": null,
"idNumber": "123456789",
"idIssueDate": null,
"idExpireDate": null,
"nationality": "US",
"country": "KE",
"ccy": "404",
"financialInstitution": "Bank",
"sourceOfFunds": "Salary",
"principalActivity": "Business",
"dateOfBirth": null,
"state": null,
"city": null,
"postalCode": null
}
"recipient": {
"name": "John Doe",
"address": "Nyati",
"emailAddress": "kkhaliboy@gmail.com",
"phoneNumber": "",
"idType": "National ID",
"idNumber": "100000000",
"financialInstitution": "Bank",
"institutionIdentifier": "GAFRKENAXXX",
"primaryAccountNumber": "0122000000",
"ccy": 404,
"country": "KE",
"purpose": "TEST"
},
"transaction": {
"routeId": "90d7e7a0-2a12-ec11-aaa1-c7e0fb8016f8",
"ChannelType": 1,
"amount": 1111,
"reference": "s1199111s5cdd12r32rwwewsuyitt",
"systemTraceAuditNumber": "22f323f3241s14sswwwin9uihjf"
}
}
]
}
{
"originatorConversationId": "12211t21412vr434345545x",
"paymentNotes": "Transactions",
"paymentOrderLines": [
{
"remitter": {
"name": "Einstien James Bela",
"address": "49 abc",
"phoneNumber": "+4491509874561",
"idType": "NATIONALIDCARD",
"idIssuePlace": null,
"idNumber": "123456789",
"idIssueDate": null,
"idExpireDate": null,
"nationality": "US",
"country": "KE",
"ccy": "404",
"financialInstitution": "Bank",
"sourceOfFunds": "Salary",
"principalActivity": "Business",
"dateOfBirth": null,
"state": null,
"city": null,
"postalCode": null
}
"recipient": {
"name": "John Doe",
"address": "Nyati",
"emailAddress": "kkhaliboy@gmail.com",
"phoneNumber": "",
"idType": "National ID",
"idNumber": "200000000",
"financialInstitution": "Business",
"institutionIdentifier": "172989",
"primaryAccountNumber": "172989",
"ccy": 404,
"country": "KE",
"purpose": "TEST"
},
"transaction": {
"routeId": "90d7e7a0-2a12-ec11-aaa1-c7e0fb8016f8",
"ChannelType": 1,
"amount": 1111,
"reference": "s1199111s5cdd12r32rwwewsuyitt",
"systemTraceAuditNumber": "22f323f3241s14sswwwin9uihjf"
}
}
]
}
{
"message": {
"appDomainName": "LIVE",
"systemConversationId": "16780000-a97d-3024-8e07-08d93713929d",
"originatorConversationId": "origiqjwwqwqnnmqeqersationId",
"remarks": "order submission accepted",
"timestamp": "2021-06-24T13:25:49.5292326Z"
}
}
{
"appDomainName": "LIVE",
"status": "BadRequest",
"timestamp": "2022-02-11T10:13:11.2483928Z",
"systemConversationId": "16780000-a97d-3024-98a9-08d9ed471bab",
"originatorConversationId": "W93323321ei4455t40093334xxiuigggtey",
"errors": [
{
"field": "PaymentOrderLines[0].Remitter",
"message": "The Remitter field is required."
}
]
}
{
"appDomainName": "LIVE",
"status": "BadRequest",
"timestamp": "2022-02-11T10:13:11.2483928Z",
"systemConversationId": "16780000-a97d-3024-98a9-08d9ed471bab",
"originatorConversationId": "W93323321ei4455t40093334xxiuigggtey",
"errors": [
{
"field": "PaymentOrderLines[0].Recipient",
"message": "The Recipient field is required."
}
]
}
transcationOutcome part of the callback.{
"id": "00000000-0000-0000-0000-000000000000",
"customerId": "f45eca19-d0df-eb11-aa67-8d094e8aa279",
"isEnabled": false,
"remarks": null,
"conversationId": null,
"originatorConversationId": "UA5L3LSL53W5P07KWG54",
"dueDate": "0001-01-01T00:00:00",
"dateApproved": null,
"dateRejected": null,
"isProcessed": false,
"dateProcessed": null,
"recordStatus": 0,
"createdBy": null,
"createdDate": "2022-04-28T14:52:57.1131933+03:00",
"orderLines": [
{
"remitter": {
"name": null,
"address": null,
"phoneNumber": null,
"idType": null,
"idNumber": null,
"idIssuePlace": null,
"idIssueDate": null,
"idExpireDate": null,
"country": null,
"nationality": null,
"ccy": null,
"financialInstitution": null,
"sourceOfFunds": null,
"principalActivity": null,
"dateOfBirth": null
},
"recipient": {
"name": "John Doe",
"address": "28 Nii sackey street",
"emailAddress": "test@gmail.com",
"phoneNumber": "+254700000000",
"mccmnc": "63902",
"idType": "National Id",
"idNumber": "10000000",
"primaryAccountNumber": "+254713771963",
"financialInstitution": "Business",
"institutionIdentifier": null,
"ccy": "404",
"purpose": "Withdraw Amount from wallet",
"country": null
},
"transaction": {
"routeId": "dadcb601-7089-ec11-ab85-0ee00e897f52",
"amount": 200,
"reference": "16000000000",
"systemTraceAuditNumber": "UA5L3LSL53W5P07KWG54",
"type": 0,
"channelType": 0,
"customerAccountNo": null,
"routeTransactionTypeId": "00000000-0000-0000-0000-000000000000"
},
"transactionOutcome": {
"id": "00000000-0000-0000-0000-000000000000",
"paymentAmount": 0,
"feeAmount": 0,
"trackingNumber": null,
"transactionStatus": 6,
"transactionStatusDescription": "Failed",
"workingAccountAvailableFunds": 0,
"utilityAccountAvailableFunds": 0,
"transactionDate": null,
"transactionCreditParty": null,
"resultCode": "9",
"resultCodeDescription": "Duplicate transaction",
"thirdPartyPayload": null,
"createdDate": "2022-04-28T14:52:57.1131933+03:00"
}
}
]
}
failed status in the transactionStatus field:resultCode:This is the code shown as defined under the Error Codes sectionresultDescription:This is the description of the resultCodethirdPartyPayload:This body contains fields that gives the exact resultCode and resultDescription from the third party e.g M-Pesa as shown above. The fields are thirdPartyResultCode and thirdPartyResultDescription{
"id": "0c16c3a6-56a7-ec11-ab96-0ee00e897f52",
"customerId": "a393c67c-158b-ec11-ab86-0ee00e897f52",
"isEnabled": true,
"remarks": "ERTU67897RQQEQ",
"conversationId": "908cb9a6-56a7-ec11-ab96-0ee00e897f52",
"originatorConversationId": "8f8cb9a6-56a7-ec11-ab96-0ee00e897f52",
"dueDate": "2022-03-21T00:00:00",
"dateApproved": null,
"dateRejected": null,
"isProcessed": true,
"dateProcessed": "2022-03-19T07:32:04.3",
"recordStatus": 2,
"createdBy": "Flavian",
"createdDate": "2022-03-19T07:31:55.85",
"orderLines": [
{
"remitter": {
"name": "John Gram",
"address": "USA",
"phoneNumber": "1-900-99300000",
"idType": "National ID",
"idNumber": "2000000",
"country": "USA",
"ccy": 404,
"financialInstitution": "Bank",
"sourceOfFunds": "Business",
"principalActivity": "Business"
},
{
"recipient": {
"name": "John Doe",
"address": "Nyati",
"emailAddress": "jjdoe@gmail.com",
"phoneNumber": "",
"idType": "National ID",
"idNumber": "2000000",
"financialInstitution": "Mpesa",
"primaryAccountNumber": "+254714000000",
"mccmnc": "63902",
"ccy": 404,
"country": "KE",
"purpose": "TEST"
},
"transaction": {
"routeId": "b1b67c98-84a6-ec11-ab96-0ee00e897f52",
"amount": 10,
"reference": "ERTU67897RQQEQ",
"systemTraceAuditNumber": "0d4b10f3-e679-4a75-b737-11d7d8600fac",
"type": 0,
"channelType": 0,
"customerAccountNo": null,
"routeTransactionTypeId": "00000000-0000-0000-0000-000000000000"
},
"transactionOutcome": {
"id": "0e16c3a6-56a7-ec11-ab96-0ee00e897f52",
"paymentAmount": 10,
"feeAmount": 2,
"trackingNumber": "5O18CE9I",
"transactionStatus": 4,
"transactionStatusDescription": "Completed",
"workingAccountAvailableFunds": 0,
"utilityAccountAvailableFunds": 0,
"transactionDate": "20220319073158",
"transactionCreditParty": null,
"resultCode": "0",
"resultCodeDescription": "Success",
"thirdPartyPayload": {
"thirdPartyResultCode": "0",
"thirdPartyResultCodeDescription": "Transaction processed successfully.",
"thirdPartyReceiptNumber": null
},
"createdDate": "2022-03-19T07:31:55.85"
}
}
]
}
curl --location --request POST 'https://auth.zamupay.com/v1/payment-order/new-order' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"originatorConversationId": "string",
"paymentNotes": "string",
"paymentOrderLines": [
{
"remitter": {
"name": "string",
"address": "string",
"phoneNumber": "string",
"idType": "string",
"idNumber": "string",
"country": "string",
"ccy": 0,
"financialInstitution": "string",
"sourceOfFunds": "string",
"principalActivity": "string",
"institutionIdentifier": "string"
},
"recipient": {
"name": "string",
"address": "string",
"emailAddress": "user@example.com",
"phoneNumber": "string",
"idType": "string",
"idNumber": "string",
"financialInstitution": "string",
"primaryAccountNumber": "string",
"mccmnc": "string",
"ccy": 0,
"country": "string",
"purpose": "string",
"institutionIdentifier": "string"
},
"transaction": {
"routeId": "string",
"ChannelType": 0,
"amount": 0,
"reference": "string",
"systemTraceAuditNumber": "string"
},
"metaDataList": [
{
"key": "string",
"value": "string"
}
]
}
]
}'{}