List available products

GET p8auth/products

Example Request

GET /api/v1/p8auth/products HTTP/1.1
Host: tph.io
X-Token: c9c0a840-b5f1-4e0e-84da-e8a4eedfc63b

Response Structure

  • data: array[object]
    • id: int
    • type: string
    • softcap: int
    • hardcap: int
    • description: string
    • is_enabled: bool
    • top_up_enabled: bool
    • max_top_up_count: int
    • max_top_up_value: int

Example Response

{
  "data": [
    {
      "id": 1,
      "type": "ADSL",
      "softcap": 524288000,
      "hardcap": 1073741824,
      "description": "ADSL product for Example Reseller",
      "is_enabled": true,
      "top_up_enabled": false,
      "max_top_up_count": null,
      "max_top_up_value": null
    },
    {
      "id": 2,
      "type": "APN",
      "softcap": 524288000,
      "hardcap": 1073741824,
      "description": "APN product for Example Reseller",
      "is_enabled": true,
      "top_up_enabled": true,
      "max_top_up_count": null,
      "max_top_up_value": null
    }
  ]
}