Delete Line Item
To delete an existing line item, submit a DELETE request with the corresponding line item ID.
Delete line item
DELETE
https://api.photoncommerce.com/api/v4/update/line-items/<line-item-id>
This method can be used to delete one line item at a time.
Path Parameters
Name | Type | Description |
---|---|---|
line_item_id | string | The ID of the line item that needs to be deleted |
photon_key | string | Photon Key of the JSON file that needs to be updated |
Headers
Name | Type | Description |
---|---|---|
CLIENT-ID | string | Unique client-id provided upon user registration |
AUTHORIZATION | string | Pass your username and password in the form 'apikey <your-username>:<your-api-key>' |
SECRET-KEY | string | Secret key as a string |
PASSWORD | string | Password used during user registration |
Content-Type | string | Set to "application/json" |
Syntax for sending a POST request to delete an existing line item:
Last updated