Token Request to generate a new token.serviceId: This is a number that represents the different services available. Check the table Services for the list of service IdsaccountNumber: Account number reference for pay bill transactions.phoneNumber: This is the mobile number of the customer doing the paymenttransactionDesc: This is a brief description of the payment.RemindMeDueDate: This is a boolean, that can be set to notify a customer of the due date of payment of a service.| Field Name | Data Type | Options |
|---|---|---|
| serviceId | integer | Mandatory |
| accountNumber | string | Mandatory |
| phoneNumber | string | Optional |
| transactionDesc | string | Optional |
| RemindMeDueDate | boolean | Optional |
{
"message": {
"appDomainName": "LIVE",
"remarks": "Bill Number submission accepted",
"customerName": "JOSEPH WAMBURA",
"systemConversationId": "7f520000-0e89-0ee0-f4a9-08d9922fd97b",
"lastKnownBalance": 2697.0,
"dueDate": "2021-10-18T00:00:00",
"timestamp": "2021-10-18T12:07:28.1220926Z"
}
}
{
"appDomainName": "LIVE",
"timestamp": "2021-10-18T07:14:53.1362329Z",
"reason": "Account number number is invalid."
}
{
"errors": {
"AccountNumber": [
"The AccountNumber field is required."
]
},
"type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
"title": "One or more validation errors occurred.",
"status": 400,
"traceId": "00-03529608f740804d9e7bf8210d6e1cb9-df15d6e73e04804c-00"
}
curl --location --request POST 'https://auth.zamupay.com/v1/bill-numbers' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"serviceCode": "string",
"accountNumber": "string",
"phoneNumber": "string",
"transactionDesc": "string",
"RemindMeDueDate": true
}'{}