Products
Get a list of products items
Accounts
Transactions
Cards
Mobile Money
Bank Transfers
Airtime
Internet
Bills
People
Products
Get a list of products items
This endpoint get a list of products items under a product
GET
/
api
/
products
curl --location --request GET 'https://api.xente.co/products/{id}' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
{
"message": "Product items retrieved successfully",
"code": 0,
"data": {
"currentPage": 1,
"pageSize": 2,
"totalCount": 44,
"totalPages": 22,
"collection": [
{
"productItemId": "AIRTELDATABUNDLESUG_24510766",
"name": "Weekly_150MB Phone",
"category": "DATA",
"amount": 2000.00,
"isAmountFixed": true,
"validityPeriod": "Weekly",
"type": "DATA",
"productId": "AIRTELDATABUNDLESUG",
"shortDescription": null,
"longDescription": null,
"productRegex": null,
"isActive": true,
"productItemCode": "24510766",
"sortOrder": 0
},
{
"productItemId": "AIRTELDATABUNDLESUG_24510767",
"name": "Weekly_7GB",
"category": "DATA",
"amount": 20000.00,
"isAmountFixed": true,
"validityPeriod": "Weekly",
"type": "DATA",
"productId": "AIRTELDATABUNDLESUG",
"shortDescription": null,
"longDescription": null,
"productRegex": null,
"isActive": true,
"productItemCode": "24510767",
"sortOrder": 0
}
],
"previousPage": false,
"nextPage": true
}
}
Response
Indicates whether the call was successful. 1 if successful, error code if not.
The contents of the product
The unique id of the product
The name of the product
The image Url of the product
Short description of the product
Long description of the product
Status of the product
Product items of the product. Each item is an object with the following properties:
item_id
(number): The unique ID of the itemitem_name
(string): The name of the itemitem_description
(string): Description of the itemitem_price
(number): Price of the itemavailability
(boolean): Availability status of the item
curl --location --request GET 'https://api.xente.co/products/{id}' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
{
"message": "Product items retrieved successfully",
"code": 0,
"data": {
"currentPage": 1,
"pageSize": 2,
"totalCount": 44,
"totalPages": 22,
"collection": [
{
"productItemId": "AIRTELDATABUNDLESUG_24510766",
"name": "Weekly_150MB Phone",
"category": "DATA",
"amount": 2000.00,
"isAmountFixed": true,
"validityPeriod": "Weekly",
"type": "DATA",
"productId": "AIRTELDATABUNDLESUG",
"shortDescription": null,
"longDescription": null,
"productRegex": null,
"isActive": true,
"productItemCode": "24510766",
"sortOrder": 0
},
{
"productItemId": "AIRTELDATABUNDLESUG_24510767",
"name": "Weekly_7GB",
"category": "DATA",
"amount": 20000.00,
"isAmountFixed": true,
"validityPeriod": "Weekly",
"type": "DATA",
"productId": "AIRTELDATABUNDLESUG",
"shortDescription": null,
"longDescription": null,
"productRegex": null,
"isActive": true,
"productItemCode": "24510767",
"sortOrder": 0
}
],
"previousPage": false,
"nextPage": true
}
}
curl --location --request GET 'https://api.xente.co/products/{id}' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
{
"message": "Product items retrieved successfully",
"code": 0,
"data": {
"currentPage": 1,
"pageSize": 2,
"totalCount": 44,
"totalPages": 22,
"collection": [
{
"productItemId": "AIRTELDATABUNDLESUG_24510766",
"name": "Weekly_150MB Phone",
"category": "DATA",
"amount": 2000.00,
"isAmountFixed": true,
"validityPeriod": "Weekly",
"type": "DATA",
"productId": "AIRTELDATABUNDLESUG",
"shortDescription": null,
"longDescription": null,
"productRegex": null,
"isActive": true,
"productItemCode": "24510766",
"sortOrder": 0
},
{
"productItemId": "AIRTELDATABUNDLESUG_24510767",
"name": "Weekly_7GB",
"category": "DATA",
"amount": 20000.00,
"isAmountFixed": true,
"validityPeriod": "Weekly",
"type": "DATA",
"productId": "AIRTELDATABUNDLESUG",
"shortDescription": null,
"longDescription": null,
"productRegex": null,
"isActive": true,
"productItemCode": "24510767",
"sortOrder": 0
}
],
"previousPage": false,
"nextPage": true
}
}