Line Items

Add line items

Method: POST

URL: /quotes/1234/line_items


The request will add new line items to the existing quote with the id of 1234


Required Fields:

This endpoint expects to receive an array of line_item objects


Regarding line_litems:

If custom_product is TRUE, then the price and title fields are required for the product to be added to the quote.


If custom_product is FALSE, the variant_id field is required for the product to be added to the quote.


This endpoint will return 200 OK with the current JSON representation of the line items if the creation was a success. See the Get Line Items endpoint for more info on the payload.

Example JSON request

Get line items

Method: GET 

URL: /quotes/1234/line_items 


This request will return the line items for the quote with the id of 1234.

Example JSON response

Update line items

Mothod: PUT 

URL: /quotes/1234/line_items/1 


The request will update the line item with the id of 1 in the quote with the id of 1234


Shopify Products:

the only property that can be updated for real Shopify products is the quantity. Products are considered to be real Shopify products if they have a product_id or a variant_id.


This endpoint will return 200 OK with the current JSON representation of the Line Item if the creation was a success. See the Get Line Items endpoint for more info on the payload.

Example JSON Request to update the Price 

Example JSON Request to update SKU and the Title

Delete line items

Method: DELETE 

URL: /quotes/1234/line_items/1 


The request will delete the line item with the id of 1 from the quote with the id of 1234


No parameters are required. Returns 200 OK if successful.

Was this article helpful?

0 out of 0 liked this article

Still need help? Message Us