Set Quotation Lines

Replaces all lines on a draft quotation with the given set and recalculates line and quotation totals (including taxes and the quotation-level discount). Only drafts can be modified. Quantities are expressed as unit + unit_quantity using one of the variant's configured units.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
integer
required

The quotation id.

Body Params
lines
array of objects
required

The full set of lines. Each line: variant_id (required), unit (required, a unit key of the variant, e.g. pcs), unit_quantity (required, > 0), base_sales_price (unit price), taxes (array of {id} of taxes to apply), text (line description override), discount_amount, discount_type, discount_type_value, quotation_discount_amount, price_level, note (max 512), note_internal (max 255).

lines*
string | null

Quotation-level discount type: amount or percent.

number | null
number | null

Quotation-level discount amount subtracted from the lines total.

Headers
string
required

The merchant install this request acts on (install.store_id from the app.installed webhook).

Response

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json