Skip to content

Products ​

GET /api/v1/merchant/products requires products:read. PUT /api/v1/merchant/products requires products:write.

Use GET to check a SKU before you create an order. Use PUT to create or update one catalog product by SKU. PUT stores a NON_STOCK ACTIVE product. The response is id, sku, name, unit, status, inventoryTracking.

sku is the external product identity. After trim and uppercase it is unique per merchant. Match products on sku. Do not store id as the identity in your system: a recreated product can have a new id and the same sku.

Inactive products stay in the list. Their status says so. An order with an inactive SKU returns 422 PRODUCT_SKU_INACTIVE. An unknown SKU returns 422 PRODUCT_SKU_NOT_FOUND.

inventoryTracking does not change the SKU contract. Stock rules apply after the order is confirmed.

Query parameters:

  • sku — exact SKU after normalization
  • search — name or SKU contains
  • page, pageSize
bash
curl "https://api.chuchu.mn/api/v1/merchant/products?sku=PAPER-A4" \
  -H "Authorization: Bearer $CHUCHU_API_KEY"

curl -X PUT "https://api.chuchu.mn/api/v1/merchant/products" \
  -H "Authorization: Bearer $CHUCHU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"sku":"PAPER-A4","name":"A4 Paper","unit":"pcs"}'

Public documentation. No login.