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.
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.