• PXM Products/
    PXM Products Inventory API/
    Delete Inventory

    Delete Inventory

    Product Experience Manager (EP PXM) Only

    This endpoint works only with products that are created with the EP PXM Products API.

    DELETE Inventory

    https://api.moltin.com/v2/inventories/:productId
    

    Deletes the inventory for the specified product. The product inventory is null and is no longer managed by Elastic Path Commerce Cloud.

    If you want to keep managing inventory but have none of the product in stock, set the inventory to 0 instead of deleting the inventory.

    Parameters

    Path parameters

    NameRequiredTypeDescription
    productIdRequiredstringThe unique identifier of the product.

    Headers

    NameRequiredTypeDescription
    AuthorizationRequiredstringThe Bearer token to grant access to the API.

    Request Example

    curl -X POST https://api.moltin.com/v2/inventories/f5bd4e59-a95f-4bda-bfe6-0f34f47ac94b \
         -H "Authorization: Bearer XXXX" \
    

    Response Example

    204 No Content

    
    
    

    Was this helpful?

    Previous
    Update Inventory