Skip to main content

addQuoteCredit

Puts a discount position on a quote and recalculates the quote. The amount is deducted from the quote total and its tax is derived from the tax buckets of the merchandise already on the quote, so add the merchandise first. Only a quote in state draft can be changed — any other state fails the mutation. Returns the recalculated quote.

Required scopes​

The token needs the quotes:write access scope.

addQuoteCredit(
input: AddQuoteCreditInput!
): Quote!

Arguments​

addQuoteCredit.input ● AddQuoteCreditInput! non-null input​

Type​

Quote object​

A sales quotation prepared for a customer: priced line items, a validity date and its own state machine. Becomes an order once the customer accepts it, at which point orderId points at the resulting order.