get https://bbps-sb.payu.in/payu-nbc/v1/nbc/getAllBillerCategory
The Get Biller Categories API will fetch all the categories from PayU.
Environment
Test Environment | https://bbps-sb.payu.in . |
Production Environment | Contact your Account Manager to get access to the production environment |
Note:
Send the scope of the GET Token API as read_biller_categories to obtain the access_token for this request. For more information, refer to Get Token API - BBPS.
Sample request
curl --location -g --request GET 'https://{{host_name}/payu-nbc//v1/getbillercategory' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{access_token}}'
Response parameters
Field Name | Description |
---|---|
code | The global response code and can be any of the following: - 0: If web service call failed - 1: if web service call succeeded |
status | The status of the API command and can be any of the following: - SUCCESS - FAILURE |
payload | It will contain a list of biller categories. For more information, refer to the payload table. |
payload
Field Name | Description |
---|---|
Success Scenarios | |
billerCategories | This field contains the biller categories in an array format. |
Failure Scenarios | |
refId | For failure scenarios, This parameter contains the reference ID. Note: In case of category fetch refId will be null. |
type | For failure scenarios, this field contains the type of error. |
code | The global response code |
payload | It will contain payload with error messages. |
status | The status of the response. Example, SUCCESS/FAILURE |
message | For failure scenarios, this field contains the description of error type for failure or success. |
errors | For failure scenarios, this field contains the following in the response: - reason: The error description if the request has failed. - errorCode: The error code of the error if the request has failed |
additionalParams | For failure scenarios, this field contains the additional fields (if any) related to billers in an array format. |
Sample response
Success scenario
{
"code": 200,
"status": "SUCCESS",
"payload": {
"billerCategories": [
"INSURANCE",
"LOAN",
"EDUCATION",
"SOCIETY BILLER"
]
}
}
Failure scenario
{
"code": 600,
"status": "FAILURE",
"payload": {
"errors": [
{
"reason": "<error message>",
"errorCode": "<error code>"
}
],
"refId": null,
"type": "category_response",
"message": "category_response_failed"
"additionalParams":{
"Key1": "value1"
"Key2": "value2"
"Key3": "value3"
}
}
}
Request Parameters
No request parameters input required for this API.