Orders

Add a line item to an order

Add a new line item to an unpaid order. Order totals will be recalculated.

post/admin/orders/{order_id}/line-items

Request

  • Base URL: https://api.presscart.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.presscart.com/admin/orders/{order_id}/line-items
  • Auth: HTTP bearer

Path parameters

order_idstring uuid required
Example:c074a01d-97e2-48b5-b054-8b173d3402cf

Request body

product_idstring uuid nullable required
quantitynumber required
pricenumber nullable required
internal_costnumber nullable
is_add_onboolean nullable
linked_order_line_item_idstring uuid nullable

Example request

{
  "quantity": 1,
  "price": 24.69,
  "internal_cost": 673.75
}

Response

Line item added successfully

idstring uuid required
order_idstring uuid required
product_idstring uuid nullable required
quantitynumber required
pricenumber nullable required
internal_costnumber nullable required
is_add_onboolean nullable
linked_order_line_item_idstring uuid nullable required
sourcestring nullable required

Example response

{
  "quantity": 1,
  "price": 24.69,
  "internal_cost": 673.75,
  "source": "opportunity_card"
}

Changes

No recorded changes to this operation across all 3 revisions of this API.