Catalog
- GETRetrieve all products
- POSTCreate product
- GETRetrieve skus
- GETRetrieve product details
- PUTUpdate product details
- DELDelete product
- GETRetrieve product variants
- POSTCreate variant
- POSTUpdate variants in bulk
- GETRetrieve a variant details
- PUTUpdate a variant
- DELDelete a variant
- GETRetrieve product inventory
- POSTUpdate product inventory
- GETRetrieve product inventory activities
- PUTUpdate product inventory activities
- POSTCreate product inventory activities
- GETRetrieve product reviews
- GETRetrieve product review
- PUTUpdate product review
- DELDelete product review
- GETRetrieve all categories
- POSTCreate category
- GETRetrieve category
- PUTUpdate category
- DELDelete category
- GETRetrieve all attributes
- POSTCreate attribute
- GETRetrieve attribute
- PUTUpdate attribute
- DELDelete attribute
- POSTAdd product pricing
- PUTUpdate product pricing
- DELDelete product pricing
- POSTAdd product image
- PUTUpdate product image
- DELDelete product image
- GETRetrive sku detail
Auth
- PUTActivate user account
- PUTDeactivate user account
- GETCheck domain availability
- GETRetrieve all roles
- POSTCreate new role
- PUTUpdate role
- DELDelete role
- GETRetrieve all permissions of a role
- POSTAdd permission to role
- DELRemove permission from role
- GETRetrieve all members
- POSTCreate new member
- GETRetrieve member detail
- PUTUpdate member details
- DELDelete member
- GETRetrieve all roles of a member
- POSTAssigne role to member
- DELRemove role from member
Coupons & promotions API
- GETList all coupons
- POSTCreate coupon
- GETRetrieve coupon details
- PUTUpdate coupon
- DELDelete coupon
- GETList all coupon codes
- POSTAdd coupon code
- GETList all coupon customers
- GETRetrieve coupon usage
- GETList all promotions
- POSTCreate promotion
- GETRetrieve promotion details
- PUTUpdate promotion
- DELDelete promotion
- GETList all promotion usage
- GETList all promotion customers
Warehouse
Orders API
Shipping API
Customers API
Segments API
Payments API
Media Gallery API
Catalog
Update product inventory activities
PUT
/
catalog
/
products
/
{id}
/
inventory-activity
/
{variant_id}
curl --request PUT \
--url https://services.commercengine.dev/api/v1/x2yh61zw4k/admin/catalog/products/{id}/inventory-activity/{variant_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"warehouse_ulid": "<string>",
"activity_type": "add",
"quantity": 123,
"reason": "<string>"
}'
{
"message": "<string>",
"success": true,
"content": {
"inventory_activity": {
"product_id": "<string>",
"variant_id": "<string>",
"warehouse_ulid": "<string>",
"sku": "<string>",
"activity_type": "add",
"quantity": 123,
"reason": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"modified_at": "2023-11-07T05:31:56Z",
"warehouse": {
"id": "<string>",
"name": "<string>",
"gstin": "<string>",
"city": "<string>",
"address_line1": "<string>",
"address_line2": "<string>",
"larndmark": "<string>",
"pincode": "<string>",
"state": "<string>",
"contact_phone": "<string>",
"contact_email": "<string>",
"is_default": false
}
}
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
warehouse ulid
Maximum length:
128
Available options:
add
, reserve
, reduce
Maximum length:
512
Response
200 - application/json
OK
product ulid
warehouse ulid
Maximum length:
128
Available options:
add
, reserve
, reduce
Maximum length:
512
warehouse ulid
legal name
curl --request PUT \
--url https://services.commercengine.dev/api/v1/x2yh61zw4k/admin/catalog/products/{id}/inventory-activity/{variant_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"warehouse_ulid": "<string>",
"activity_type": "add",
"quantity": 123,
"reason": "<string>"
}'
{
"message": "<string>",
"success": true,
"content": {
"inventory_activity": {
"product_id": "<string>",
"variant_id": "<string>",
"warehouse_ulid": "<string>",
"sku": "<string>",
"activity_type": "add",
"quantity": 123,
"reason": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"modified_at": "2023-11-07T05:31:56Z",
"warehouse": {
"id": "<string>",
"name": "<string>",
"gstin": "<string>",
"city": "<string>",
"address_line1": "<string>",
"address_line2": "<string>",
"larndmark": "<string>",
"pincode": "<string>",
"state": "<string>",
"contact_phone": "<string>",
"contact_email": "<string>",
"is_default": false
}
}
}
}