A product component is primarily a merchant object, which represents an sub-item group of the parent item for sale on the Shopwave platform. A product component along with its parent item can be placed into a basket and be sold with associated transactions. Products component can have associated stock detail per store, which are tracked and can be reported on.
This API DELETE can be used to delete a product component or an item in the product component.
Supply both productComponentIds and productComponentInstanceIds to delete a product component item or just supply productComponentIds to delete the group.
The endpoint you need to use for this is:
/product/component
Key | Details | Example |
---|---|---|
Authorization | {token_type} {access_token} | Bearer c3499c2729730a7f807efb8676a92dcb6f8a3f8f |
Method | DELETE | DELETE |
x-accept-version | {recommended_latest_version_number} | 2 |
productComponentIds | {productComponentId_to_delete} | 1,2,3 |
productComponentInstanceIds | {productInstanceId_to_delete} | 1,2,3 |
Key | Details | Data Type | Example |
---|---|---|---|
statusCode | Very important to check this for shopwave server uptime. 205 for success. | int | 205 |
Please check the live API calls for more details on the API messages.
ID | Status Code | Title | Details |
---|---|---|---|
908 | 401 | Expired Token | Token expired or invalid. Please renew your token |
911 | 401 | Authorization Header Invalid | The authorization header is invalid. The correct format is Authorization: {token_type} {accessToken} |
913 | 400 | Required parameter or object missing in request | One or more of the required parameters or object formation is missing in your request. Please refer the documentation |
912 | 403 | Resource Not Allowed For Specified User | The user does not own this resource and its forbidden |
899 | 500 | Unknown Error | Something went wrong. Please contact the site administrator |
Please check the live API calls for more info on the API messages.
ID | Status Code | Title | Details |
---|---|---|---|
205 | 205 | Content reset | Your request was processed successfully, it is recommended that you refresh your contents to see these changes. |
202 | 200 | Token is valid | Token is validated and found valid. |