Integrations > Xero > xeroCreate
Commerce APIIntegrationsXeroxeroCreate
xeroCreate
POST:xero.json

Description

Modify Xero settings.

Permission bit: "shop.modify"

Topic: Xero

Arguments

data: XeroSettingsCreate!

Main argument for mutations.


shop_id: String!

Unique shop identifier. See also: Unique Identifiers

Example: "sh_EQzGqWoY"


Data Argument Fields

customer_balance_account_code: String

Customer balance account code

Example: "270"

Valid when: customer_balance_account_code's length doesn't exceed 250 characters


daily_summary: Boolean

Create daily summary invoices instead of an invoice per order

Example: true


daily_summary_prefix: String

Daily summary prefix to use when creating an order number

Example: "DAILY"

Valid when: daily_summary_prefix's length doesn't exceed 250 characters


discount_account_code: String

Discount account code

Example: "356"

Valid when: discount_account_code's length doesn't exceed 250 characters


enabled: Boolean

Whether syncing is enabled or not

Example: true


invoice_status: XeroInvoiceStatus

Create xero invoices in this status


payment_map: [XeroPaymentMapCreate!]


refund_adjustment_account_code: String

Refund adjustment account code

Example: "200"

Valid when: refund_adjustment_account_code's length doesn't exceed 250 characters


rounding_account_code: String

Rounding account code

Example: "860"

Valid when: rounding_account_code's length doesn't exceed 250 characters


sales_account_code: String

Sales account code

Example: "200"

Valid when: sales_account_code's length doesn't exceed 250 characters


sales_tax_account_code: String

Salexs tax account code

Example: "250"

Valid when: sales_tax_account_code's length doesn't exceed 250 characters


shipping_account_code: String

Shipping account code

Example: "200"

Valid when: shipping_account_code's length doesn't exceed 250 characters


synced_customers_at: String

Date and time when customers were last synced

Example: "2014-09-04T12:23:34Z"

Timestamp (RFC 3339)


synced_orders_at: String

Date and time when orders were last synced

Example: "2014-09-04T12:23:34Z"

Timestamp (RFC 3339)


synced_products_at: String

Date and time when products were last synced

Example: "2014-09-04T12:23:34Z"

Timestamp (RFC 3339)


tax_map: [XeroTaxMapCreate!]


use_single_customer: Boolean

Use single customer instead of exported ones (disables customer syncing as well)

Example: false


Result

XeroSettings

Preview (typescript)

Loading module