Manage Inventory

Get item quantity

For a correct API request you need your API key and the SKU of the item.

Request:

curl -X POST https://offerkingz.com/api.php?object=quantity&key={{YOUR-API-KEY}} \
-H "Content-Type: application/json" \
-d '{
  "read": "{{SKU-OF-YOUR-ITEM}}"
}'

Sample Response:

{
  "status": "success",
  "quantity": "5"
}

A successful request returns the HTTP 200 OK status code and a JSON response body.

status (char)
Status of this request.

quantity (int)
Currently available quantity.

Update item quantity

For a correct API request you need your API key, your Account Password, SKU and the new Quantity of the item.

Request:

curl -X POST https://offerkingz.com/api.php?object=quantity&key={{YOUR-API-KEY}} \
-H "Content-Type: application/json" \
-d '{
  "update": "{{SKU-OF-YOUR-ITEM}}",
  "quantity": "{{NEW-QUANTITY}}",
  "password": "{{YOUR-ACCOUNT-PASSWORD}}"
}'

Sample Response:

{
  "status": "success",
  "quantity-o": "5",
  "quantity": "2"
}

A successful request returns the HTTP 200 OK status code and a JSON response body.

status (char)
Status of this request.

quantity-o (int)
Old quantity.

quantity (int)
Current available quantity.