Token Request to generate a new token.ShortCode: This is the credit party in the transactionAmount: This is the amount to be debitedPhoneNumber: This is the debit party in the transactionAccountNo: This is a nullable field only to be provided if it's a paybill express depositTransactionDesc: This is a brief description of the transactionOriginatorConversationId: This is a unique identifier for the transaction from the clientCallBackUrl: This is your callback urlType : This is a description of the C2B typeSuccessRedirectUrl : This is the success callback urlFailedRedirectUrl : This is the failed callback urlServiceCode : This is the code describing the serviceCurrency : This is the currency of the countryFirstName: This is the first name of the debit partyLastName: This is the last name of the debit party| Field Name | Data Type | Max Length |
|---|---|---|
ShortCode | string | 7 |
Amount | decimal | 8 |
PhoneNumber | string | 13 |
TransactionDesc | string | 100 |
OriginatorConversationId | string | 100 |
CallBackUrl | string | 256 |
Type | string | 3 |
SuccessRedirectUrl | string | 256 |
FailedRedirectUrl | string | 256 |
ServiceCode | string | 6 |
Currency | string | 6 |
FirstName | string | 128 |
LastName | string | 128 |
{
"message": {
"appDomainName": "LIVE",
"remarks": "Express Deposit submission accepted",
"originatorConversationId": "r279b231rf89238723489733ygge998121",
"systemConversationId": "16780000-a97d-3024-2e57-08d937173800",
"timestamp": "2021-06-24T13:51:51.3331004Z"
}
}
{
"appDomainName": "LIVE",
"timestamp": "2022-02-11T10:13:11.2483928Z",
"systemConversationId": "16780000-a97d-3024-98a9-08d9ed471bab",
"originatorConversationId": "W93323321ei4455t40093334xxiuigggtey",
"errors": [
{
"field": "OriginatorConversationId",
"message": "duplicate originator conversation id 'W93323321ei4455t40093334xxiuigggtey'"
}
]
}
{
"appDomainName": "LIVE",
"status": "BadRequest",
"timestamp": "2022-02-11T10:13:11.2483928Z",
"systemConversationId": "16780000-a97d-3024-98a9-08d9ed471bab",
"originatorConversationId": "W93323321ei4455t40093334xxiuigggtey",
"errors": [
{
"field": "ShortCode",
"message": "The Shortcode field is required."
}
],
}
{
"Body": {
"StkCallback": {
"MerchantRequestID": "14237-1707571-2",
"CheckoutRequestID": "ws_CO_210520211255325781",
"ResultCode": "1032",
"ResultDesc": "Request cancelled by user",
"OriginatorConversationId": "F1002939292022",
"SystemConversationId": "7f520000-0e89-0ee0-ea10-08d91c3e9181",
"CallbackMetadata": null
}
}
{
"Body": {
"StkCallback": {
"MerchantRequestID": "59675-2838158-2",
"CheckoutRequestID": "ws_CO_110520211915044651",
"OriginatorConversationId": "2134568790",
"SystemConversationId": "456575345435",
"ResultCode": 0,
"ResultDesc": "The service request is processed successfully.",
"CallbackMetadata": {
"Item": [
{
"Name": "Amount",
"Value": 1
},
{
"Name": "MpesaReceiptNumber",
"Value": "PEB0U5YIQ2"
},
{
"Name": "Balance"
},
{
"Name": "TransactionDate",
"Value": 20210511191517
},
{
"Name": "PhoneNumber",
"Value": 254799182092
}
]
}
}
}
}
curl --location --request POST 'https://auth.zamupay.com/v1/express-deposit' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"ShortCode": "string",
"Amount": "string",
"PhoneNumber": "string",
"TransactionDesc": "string",
"OriginatorConversationId": "string",
"CallBackUrl": "http://example.com",
"type": 0,
"successRedirectUrl": "http://example.com",
"failedRedirectUrl": "http://example.com",
"serviceCode": "string",
"currency": "string",
"firstName": "string",
"lastName": "string"
}'{}