Delete Line Item
Delete line item
Path Parameters
Name
Type
Description
Headers
Name
Type
Description
{"message":"Deleted line item successfully","status":"success"}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>import requests
headers = {
'Content-Type': 'application/json',
'CLIENT-ID': '<client-id>',
'AUTHORIZATION': 'apikey <username>:<api-key>',
'PASSWORD': '<password>',
'SECRET-KEY': '<secret-key>',
}
params = (
('photon_key', '<mention-the-photon-key-here>'),
)
response = requests.delete('https://api.photoncommerce.com/api/v4/update/line-items/<line-item-id>', headers=headers, params=params)var request = require('request');
var headers = {
'Content-Type': 'application/json',
'CLIENT-ID': '<client-id>',
'AUTHORIZATION': 'apikey <username>:<api-key>',
'PASSWORD': '<password>',
'SECRET-KEY': '<secret-key>'
};
var options = {
url: 'https://api.photoncommerce.com/api/v4/update/line-items/<line-item-id>?photon_key=<mention-the-photon-key-here>',
method: 'DELETE',
headers: headers
};
function callback(error, response, body) {
if (!error && response.statusCode == 200) {
console.log(body);
}
}
request(options, callback);Last updated