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

NameTypeDescription

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

NameTypeDescription

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"

{"message":"Deleted line item successfully","status":"success"}

Syntax for sending a POST request to delete an existing line item:

curl -X DELETE -H 'Content-Type: application/json' -H "CLIENT-ID:<client-id>" -H "AUTHORIZATION:apikey <username>:<api-key>" -H 'PASSWORD:<password>' -H "SECRET-KEY:<secret-key>" "https://api.photoncommerce.com/api/v4/update/line-items/<line-item-id>?api_key=<your-api-key>&photon_key=<mention-the-photon-key-here>

Last updated