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
| Header | Required | Description |
|---|---|---|
userid | Required | Account user ID. |
api-key | Required | Account 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"
}
]
}
| Field | Type | Description |
|---|---|---|
code | string | Product code. Send this as productId for top-up. |
name | string | Display name of the product. |
detail | string | Long description / terms. |
category | string | Category such as Mobile. |
type | string | Product type such as Prepaid or Postpaid. |
price | number | Selling price in IDR (charged to the account balance). |
status | string | Active or Non Active. |
operator | string | Operator 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.