{
"OriginatorConversationId" : "{{$guid}}", // Mandatory - Must be unique with each request
"ShortCode" : "648732", //Mandatory- Shortcode will be provided by us
"Amount" : "1", //Mandatory
"PhoneNumber" : "254719000000", //Mandatory - A valid Safaricom phone number
"TransactionDesc": "Deposit to wallet", // Mandatory - Not more than 30 characters
"Currency" : "KES", // Mandatory
"AccountNo": "00324-{unique reference not more than 12 characters}" // Mandatory eg. "00324-XC7UL3JKJNO", AccountNo will be provided by us
"type": 0, // Mandatory - use 0 for Safaricom
"CallBackUrl" : "https://eo2j2658kmohqiy.m.pipedream.net", // Mandatory
"mccmnc": "63902", // Optional- Safaricom MCCMNC Code if Safaricom request
"successRedirectUrl": "https://guidgenerator.com/", // Optional
"failedRedirectUrl": "https://guidgenerator.com/", //Optional
"serviceCode": "ZAMUPAYCOLLECTIONS", //optional
"firstName": "John", //Optional
"lastName": "Doe" //Optional
}{
"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."
}
],
}
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 |
curl --location '/v1/express-deposit' \
--header 'Content-Type: application/json' \
--data '{
"OriginatorConversationId": "{{$guid}}",
"ShortCode": "172170",
"Amount": "1",
"PhoneNumber": "254716465401",
"TransactionDesc": "Deposit to wallet",
"Currency": "KES",
"AccountNo": "01770-254716465401",
"type": 0,
"CallBackUrl": "https://eo2j2658kmohqiy.m.pipedream.net"
}'{
"message": {
"appDomainName": "LIVE",
"remarks": "Express Deposit submission accepted",
"originatorConversationId": "r279b231rf89238723489733ygge998121",
"systemConversationId": "16780000-a97d-3024-2e57-08d937173800",
"timestamp": "2021-06-24T13:51:51.3331004Z"
}
}