Products

Browse the prepaid product catalog available to the account.

Connection settings
No credentials set.
GET /api/v2/product/all Requires auth

Lists every product available on the platform for the account. Use the returned code as productId when creating a transaction.

Headers

HeaderRequiredDescription
useridRequiredAccount user ID.
api-keyRequiredAccount client API key.
curl "http://localhost:4907/api/v2/product/all" \
  -H "userid: " \
  -H "api-key: "
Example response
{
  "code": 200,
  "status": "Success",
  "data": [
    {
      "code": "TLKOM10",
      "name": "Telkomsel 10.000",
      "detail": "Paket isi ulang Telkomsel 10k",
      "category": "Mobile",
      "type": "Prepaid",
      "price": 12000,
      "status": "Active",
      "operator": "Telkomsel"
    },
    {
      "code": "XLAX5",
      "name": "XL 5.000",
      "detail": "Paket isi ulang XL 5k",
      "category": "Mobile",
      "type": "Prepaid",
      "price": 6500,
      "status": "Active",
      "operator": "XL"
    }
  ]
}
FieldTypeDescription
codestringProduct code. Send this as productId for top-up.
namestringDisplay name of the product.
detailstringLong description / terms.
categorystringCategory such as Mobile.
typestringProduct type such as Prepaid or Postpaid.
pricenumberSelling price in IDR (charged to the account balance).
statusstringActive or Non Active.
operatorstringOperator name such as Telkomsel, XL.
Active only

The API only returns products whose availability is Platform. A product can be listed here while its operational status (status) is Non Active; filter on status === "Active" in the client before offering it.

Try it

Uses the userid & api-key from the connection settings above.