Estimates Mutations

CreateEstimate

Creates a new estimate (quote) document record from scratch.

Parameters:

ParameterTypeDescription
inputEstimateInput!All estimate data.

Example Query:

mutation CreateEstimate($input: EstimateInput!) {
  CreateEstimate(input: $input) {
    id
    label
    status
    total
  }
}

UpdateEstimate

Updates an existing estimate record.

Parameters:

ParameterTypeDescription
idInt!ID of the estimate document.
inputEstimateInput!Fields to update.

DeleteEstimate / DeleteEstimates

Deletes one or multiple estimates.


GenerateEstimateNumber

Generates the next available sequence label for a new estimate.

ParameterTypeDescription
location_idIDOptional location to use for sequence prefix.

GenerateEstimatePublicId / DisableEstimatePublicId

Manages the public URL token for customer viewing.


TransformIntoOrder

Converts the estimate into a Sales Order document.


TransformIntoInvoice

Converts the estimate into an Invoice document.


DuplicateEstimate

Creates a full copy of an existing estimate.


GenerateEstimatesPdfs

Generates PDF documents for multiple estimates.


Input Data Types

EstimateInput

FieldTypeDescription
idIntID for updates.
labelStringEstimate number.
statusEstimateStatusInitial or updated status.
expire_atDateExpiration date.
dated_atDateDocument date.
shipping_atDateTarget shipping date.
currencyCurrencyInputCurrency link data.
tax_typeTaxType"exclusive" or "inclusive".
discount_typeDiscountType"percentage" or "amount".
default_discountFloatGlobal discount value.
exchange_rateFloatCurrency exchange rate.
notesStringPublic notes for PDF.
internal_notesStringPrivate office notes.
for_the_attention_ofStringRecipient contact name.
external_referenceStringInternal reference.
line_items[LineItemEstimateInput]List of items quoted.
customerCustomerInputLinked customer link.
price_levelPriceLevelInputPrice list link.
account_representativeAccountRepresentativeInputAssigned representative.
seasonSeasonInputBusiness season data.
payment_informationPaymentInformationInputBank details link.
billing_addressAddressInputBilling address link.
shipping_addressAddressInputShipping address link.
pdf_templatePdfTemplateInputPDF design link.
files[FileInput]Attachments.
custom_fields[EntityCustomFieldInput]Custom fields for this entity.

UpdateEstimatesStatus

Updates the status of multiple estimates at once.

Parameters:

ParameterTypeDescription
ids[ID!]!List of estimate IDs.
statusEstimateStatus!New status to apply.

Example Query:

mutation UpdateEstimatesStatus($ids: [ID!]!, $status: EstimateStatus!) {
  UpdateEstimatesStatus(ids: $ids, status: $status)
}

Example Variables:

{
  "ids": [1001, 1002],
  "status": "accepted"
}
Return TypeDescription
Booleantrue if successful.

Enums

EstimateStatus

ValueDescription
unpublishedDraft status (hidden).
pendingDocument sent/awaiting response.
acceptedOffer accepted by customer.
rejectedOffer declined by customer.
cancelledDocument voided.

DiscountType

ValueDescription
amountFixed discount amount.
percentagePercentage-based discount.

TaxType

ValueDescription
exclusiveTax calculated on top of the net price.
inclusiveTax included in the displayed price.