Update Line Items

To update an existing line item, submit a PUT request with the data to be updated as a string of dictionary and specify the line item ID to which these updates must be applied.

Update existing line item

PUT https://api.photoncommerce.com/api/v4/update/line-items/<line_item_id>

This method can be used to update line item values for one specific line item at a time. The line item keys whose values can be updated are listed in the code block after the following API method block.

Path Parameters

Name
Type
Description

line_item_id

string

The ID of the line item that needs to be updated

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 during user registration

AUTHORIZATION

string

Pass your username and unique API Key in the form 'apikey <your-username>:<your-api-key>'

SECRET-KEY

string

Your secret key as a string

PASSWORD

string

Password used during user registration

Content-Type

string

Set to "application/json"

Request Body

Name
Type
Description

data

string

String of dictionary containing fields to be updated with their corresponding values e.g {'SKU': '003'}

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

Line item keys that can be updated:

The syntax for sending an update request:

Last updated

Was this helpful?