Version 2

Get Product by Code

API to get one prepaid product by its product code.

Path

MethodPath
POSTapi/product

Request Body

AttributesTypeDescriptionMandatory
usernameStringYour registered phone numberYes
codeStringProduct code. Use the code returned as product_code by the Pricelist APIYes
signStringSignature. Value: md5(username+api_key+'product')Yes

The response uses the product price and visibility configured for your account.

{
  "username": "123123123",
  "code": "tseldata10000",
  "sign": "{your sign}"
}

Response

AttributesTypeDescriptionMandatory
productObjectProduct matching the requested codeYes
product.product_codeStringProduct codeYes
product.product_descriptionStringProduct operator nameYes
product.product_detailsStringProduct descriptionYes
product.product_nominalStringProduct denominationYes
product.product_priceDoublePrice configured for your accountYes
product.product_typeStringProduct typeYes
product.active_periodStringProduct active period, where applicableYes
product.statusStringProduct status: active or non activeYes
product.icon_urlStringProduct operator icon URLYes
product.product_categoryStringProduct categoryYes
rcStringResponse code. See the response code listYes
messageStringResponse messageYes
{
  "data": {
    "product": {
      "product_code": "tseldata10000",
      "product_description": "Telkomsel Paket Internet",
      "product_details": "-",
      "product_nominal": "40MB sesuai zona",
      "product_price": 11500,
      "product_type": "data",
      "active_period": "7",
      "status": "active",
      "icon_url": "-",
      "product_category": "data"
    },
    "rc": "00",
    "message": "SUCCESS"
  }
}

If the product code does not exist or is unavailable to your account, the API returns response code 20 (CODE NOT FOUND).

Live Testing

Request URL
https://prepaid.iak.dev/api/product
Request Method
Request Header
Content-Type: application/json
Body
Result