Get Biller Categories API

The Get Biller Categories API will fetch all the categories from PayU.

Environment

Test Environmenthttps://bbps-sb.payu.in .
Production EnvironmentContact 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 NameDescription
codeThe global response code and can be any of the following:

- 0: If web service call failed
- 1: if web service call succeeded
statusThe status of the API command and can be any of the following:

- SUCCESS
- FAILURE
payloadIt will contain a list of biller categories. For more information, refer to the payload table.

payload

Field NameDescription
Success Scenarios
billerCategoriesThis field contains the biller categories in an array format.
Failure Scenarios
refIdFor failure scenarios, This parameter contains the reference ID.
Note: In case of category fetch refId will be null.
typeFor failure scenarios, this field contains the type of error.
codeThe global response code
payloadIt will contain payload with error messages.
statusThe status of the response. Example, SUCCESS/FAILURE
messageFor failure scenarios, this field contains the description of error type for failure or success.
errorsFor 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
additionalParamsFor 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.

Language
Authorization
Bearer
Click Try It! to start a request and see the response here!