Preview

createQuote is in Preview status and is subject to change without notice. For more information about Preview status, see the GraphQL API policy.

createQuote

Create a new quote

This page contains

    Authorization Rules

    This request requires authorization with at least one of the following scopes:

    Scopes

    ROLE_RESELLER

    ROLE_SALES_SUPPORT

    ROLE_CHANNEL_ADMIN

    ROLE_PARTNER

    Arguments

    input CreateQuoteInput! PREVIEW

    CreateQuoteInput fields

    ownerCompanyId ID!

    Sales agent company ID

    ownerId ID!

    Sales agent user ID

    customerCompanyId ID

    Customer company ID (optional for anonymous quotes)

    customerId ID

    Customer user ID (optional for anonymous quotes)

    currency Currency

    Quote currency

    items [CreateQuoteItemInput!]! PREVIEW

    Initial items for the quote

    purchaseEffectiveDate DateTime

    Purchase effective date

    name String

    Quote name

    createdByCompanyId ID

    Company of user who created the quote

    createdById ID

    User who created the quote

    purchaseCustomAttributes CustomAttributeMap

    Custom purchase attributes

    billingRelationshipId ID

    Reference to an existing billing relationship that determines who is billed for the quote (customer or reseller) when finalized. Optional; if omitted, defaults are applied based on quote owner and customer.

    Return Fields

    quote Quote PREVIEW

    Created quote (null if creation failed)

    userErrors [CreateQuoteError!] PREVIEW

    Validation errors that prevented creation

    Interactive example

    This is an example mutation query. Use the embedded interactive tool below to edit the query.

    Hint: use Ctrl + Space for autocompleting fields.