Skip to main content

AppCreateSalesOrderInput

A new DRAFT sales order. Prices, tax, shipping, totals, currency, rate and dates are set by the server.

input AppCreateSalesOrderInput {
customerId: ID!
customerPoNumber: String
deliveryAddressId: ID
lines: [AppDocumentLineInput!]!
notes: String
paymentTerms: String
reference: String
}

Fields​

AppCreateSalesOrderInput.customerId ● ID! non-null scalar​

The ID of the customer.

AppCreateSalesOrderInput.customerPoNumber ● String scalar​

The buyer's purchase order number.

AppCreateSalesOrderInput.deliveryAddressId ● ID scalar​

The ID of one of the customer's saved addresses to deliver to. Without it the customer's default applies.

AppCreateSalesOrderInput.lines ● [AppDocumentLineInput!]! non-null input​

The order lines: at least 1, at most 200.

AppCreateSalesOrderInput.notes ● String scalar​

Notes for the customer.

AppCreateSalesOrderInput.paymentTerms ● String scalar​

A payment term code the organization offers, such as NET_30. Without it the customer's own term, else the organization's default, applies.

AppCreateSalesOrderInput.reference ● String scalar​

Your reference, shown on the document.

Member Of​

appCreateSalesOrder mutation