This endpoint is to get all the credit companies (lenders) that are available for a channel.
Request Message description
Field
# | Field name | Data type | Max length | Required | Description |
1 | channelCode | String | true | The Code of the Channel from which this request is originating. | |
2 | ServiceType | String | false | The code for the service type |
Endpoint
GET /offers/providers?channelCode={channelCode}&serviceType={serviceType}
Headers
Authorization: Bearer {{token}} |
Sample request
/offers/providers?channelCode= QTUSSD |
Response Message field description
Field
# | Field name | Description |
1 | responseCode | The Code representing the result of the request processing. |
2 | responseMessage | The Description of the responseCode. |
3 | providers | Arrays of the available Providers. |
3a. | name | The Name of the Provider. |
3b. | code | The Code of the Provider. |
Sample Response (success)
{
"responseCode": "00",
"responseMessage": "Offers available",
"provider": [
{
"name": "AB Credit",
"code": "ABCREDIT"
},
{
"name": "CD Credit",
"code": "CDCREDIT"
}
]
}
Sample Response (failure)
{
"responseCode": "01",
"responseMessage": "There is no providers available for this channel.",
"providers": []
}