Get Field
Endpoint: GET /field/assigned/byBillId/{billId}
Description: Retrieves the fields required for a specific bill ID.
Authentication: Basic Auth (Username, Password)
Path Parameters:
billId (required): The ID of the bill (e.g., 1099 for Ikeja Prepaid).
Response:
200 OK: Returns a JSON object containing the bill ID, fee, field ID, fields, type, and validation status.
Sample Implementation
curl --request GET \
--url 'http://154.113.16.142:9999/provipay/webapi/field/assigned/byBillId/1099' \
--header 'Authorization: Basic <base64-encoded-username:password>'
Example Response:
{
"bill_id": 1099,
"fee": 0,
"field_id": 1093,
"fields": [
{
"call_tag": "",
"field_type": "compulsory",
"key": "merchantFK",
"list": {
"items": [
{
"id": "2",
"name": "Ikeja Electricity Prepaid"
}
],
"list_type": "single"
},
"name": "Biller Name"
},
...
],
"type": "static",
"validate": "y"
}
Last updated