Goods & Services API documentation

Goods & Services API documentation
1. Services


Services

DT One Goods & Services API offers different kind of services for your loved ones:

  • Television
  • Grocery
  • Pharmacy
  • Health Care
  • Electricity (Prepaid/Postpaid)
  • Data Bundles
  • Public Transport

This section presents the different methods you can use to access the list of available services activated on your account.

These methods return the list of services available.

Note that an object service is defined by an id and name.

{
    "service_id": => NUMERIC,
    "service":    => VARCHAR
}

1- Main list of services

Request :

GET /services[?country_id=XXX] - List of all services available on account which can be filtered by country using the country_id

Response :

HTTP Code: 200

Body:

{
    "services":[
        {
            "service_id":1,
            "service":"television"
        },
        {
            "service_id":2,
            "service":"grocery"
        },
    ]
}

2- List of services by country

Request :

GET /countries/{country_id}/services - Retrieve the list of all services present in a given country and available on your account.

Response :

HTTP Code: 200

Body:

{
    "services":[
        {
            "service_id":1,
            "service":"television"
        }
    ]
}