Skip to main content

accountingSalesCreate

Creates an invoice or sales receipt in Endless from order financial lines.

Business Rules​

  • The document uses an Endless customer and can be created without an accounting integration.
  • Quantities can be selected; prices and amounts come from the order.
  • An invoice may include quantities that have not shipped yet.
  • The first invoice or receipt for each order carries that order's shipping and sales tax.

Error Scenarios​

  • Rejects unavailable quantities, invalid customers, and orders in different sales channels.

Permissions Required​

  • accounting:create_order_financial
accountingSalesCreate(
input: AccountingSalesCreateInput!
): AccountingSalesCreatePayload

Arguments​

accountingSalesCreate.input ● AccountingSalesCreateInput! non-null input common​

Parameters for AccountingSalesCreate

Type​

AccountingSalesCreatePayload object common​

Autogenerated return type of AccountingSalesCreate.