Skip to content

Price List

This API will give you information about current price list you have set in DGflazz.

Endpoint

https://api.my.dgflazz.com/v1/buyer/api/price-list

Request

Example

Here is the JSON structure we expect:

{
  "username": "username",
  "sign": "740b00a1b8784e028cc8078edf66d12b"
}

Caution!

Getting Price List with parameter category / brand / type is not real time. There will be a little differences between Your data and DGflazz's system, around 10 - 15 minutes.

Description

Parameter Description Data Type Mandatory
username Username you get from API connection configuration String Yes
code Your product code as Buyer String No
category Product's category as shown at DGflazz string No
brand Product's brand as shown at DGflazz string No
type Product's Type as shown at DGflazz string No
sign Signature with formula md5(username + apiKey + "pricelist") String Yes

Price List Response

Example

Here is the example of JSON you will get:

{
  "data": [
    {
      "product_name": "Maxis 5",
      "category": "Reload",
      "brand": "Maxis",
      "type": "General",
      "seller_name": "PT. ABC",
      "price": 5.12,
      "buyer_sku_code": "Maxis5",
      "buyer_product_status": true,
      "seller_product_status": true,
      "unlimited_stock": true,
      "stock": 0,
      "multi": true,
      "start_cut_off": "23:45",
      "end_cut_off": "00:15",
      "desc": "Reload Maxis 5"
    },
    {
      "product_name": "Maxis 10",
      "category": "Reload",
      "brand": "Maxis",
      "type": "General",
      "seller_name": "PT. BCA",
      "price": 10.22,
      "buyer_sku_code": "Maxis10",
      "buyer_product_status": true,
      "seller_product_status": false,
      "unlimited_stock": false,
      "stock": 1200,
      "multi": false,
      "start_cut_off": "00:00",
      "end_cut_off": "00:00",
      "desc": "Reload Maxis 10"
    }
  ]
}

Description

Parameter Description Data Type Mandatory
product_name Product Name String Yes
category Category Name String Yes
brand Brand Name String Yes
type Type Name String Yes
seller_name Seller Name String Yes
price Product price determined by seller String Yes
buyer_sku_code Product code you set as Buyer String Yes
buyer_product_status Product status you set as Buyer Boolean Yes
seller_product_status Product Status set by Seller Boolean Yes
unlimited_stock A marker whether a stock is unlimited or not Boolean Yes
stock Remaining stock (you can ignore this if unlimited_stock is true) String Yes
multi A marker whether a transaction is able to be done one or more times on the same customer number on the same day Bool Yes
start_cut_off Cut Off start (Format: hh:mm) String Yes
end_cut_off Cut Off end (Format: hh:mm) String Yes
desc Product Description String Yes

Attention

JSON Response will be wrapped in data variable, make sure you parse it correctly.