Skip to main content
POST
/
v1
/
bill
/
validate
Validate a bill recipient
curl --request POST \
  --url http://localhost:3000/v1/bill/validate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "category": "electricity",
  "product_code": "<string>",
  "recipient": "<string>",
  "account_type": "prepaid"
}
'
{
  "status": "success",
  "message": "message for success",
  "data": {
    "customer_name": "<string>",
    "recipient": "<string>",
    "customer_address": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer Authentication

Body

application/json
category
enum<string>
required

Bill category to validate

Available options:
electricity,
cable,
betting
product_code
string
required

Product code (disco code, cable name, or betting product)

recipient
string
required

Meter number, smartcard number, or customer ID

account_type
enum<string>

Meter type (required for electricity, ignored otherwise)

Available options:
prepaid,
postpaid

Response

200 - application/json

Recipient validated

General response Values

status
enum<string>
required
Available options:
success,
error
Example:

"success"

message
string
required
Example:

"message for success"

data
object