TransactionUpsertRequest
- externalType: string · External Id
_id min length:1max length:256requiredUnique identifier from your system
- sourceType: string · DataSourceenumrequired
Namespace that scopes external_id to prevent collisions across integrations. All transactions sharing the same source must have unique external_ids.
values- netsuite
- priority
- zoho
_books - quickbooks
- salesforce
- transactionType: string · Transaction DateFormat: date-time
_date requiredIssue date of document
- addressesType: object · TransactionAddressesRequest nullable
Transaction addresses (billing, shipping, etc.)
- billingType: object · AddressDto nullable
Billing address
- shippingType: object · ShippingAddressRequest nullable
Shipping destination address (used for tax jurisdiction)
- shippingType: object · AddressDto nullable
_from Ship-from / origin address
- supplierType: object · AddressDto nullable
Supplier address
- currencyType: object · TransactionCurrencyDetailsRequest nullable
_details Currency and exchange rate information
- currencyType: string · Currency nullable
Currency code (e.g., USD, EUR)
- manualType: string · Manual Exchange RateFormat: decimal nullable
_exchange _rate Manual exchange rate override
- customerType: object · TransactionCustomerDetailsRequest nullable
_details Customer reference information
- customerType: object · EmbeddedCustomerRequest nullable
Embedded customer object for inline upsert
- customerType: string · Customer External Id nullable
_external _id External customer ID for lookup (requires customer_source)
- customerType: string · Customer IdFormat: uuid nullable
_id Internal customer UUID for lookup
- customerType: stringenum nullable
_source Source namespace of the customer to look up. Must match the source value used when the customer was originally created.
values- netsuite
- priority
- zoho
_books - quickbooks
- salesforce
- customerType: stringenum nullable
_type _override Override customer type for this transaction only (retail, marketplace, wholesale, retail_exempt)
values- retail
- marketplace
- reseller
- documentType: string · Document Name
_name max length:50 nullableAs shown in ERP systems
- externalType: string · External Created AtFormat: date-time nullable
_created _at Your system created timestamp (ISO8601 format, used for tax calculation)
- externalType: string · External Updated AtFormat: date-time nullable
_updated _at Your system updated timestamp (ISO8601 format, used for tax calculation)
- idType: string · IdFormat: uuid nullable
Optional UUID (generated if not provided)
- isType: boolean · Is Tax Inclusive nullable
_tax _inclusive Whether tax is embedded in prices (true) or separate (false)
- itemsType: array object[] | null · Items 1… nullable
Line items in this transaction
- unitType: string · Unit PriceFormat: decimal
_price requiredPer-item cost (can be positive or negative)
- descriptionType: string · Description nullable
Detailed information about the item
- discountType: string · DiscountFormat: decimal nullable
Applied discount amount (positive number)
- exemptionType: string · Exemption IdFormat: uuid nullable
_id Reference to an exemption certificate for this item
- exemptionType: string · Exemption Reason
_reason max length:256 nullableReason this item is exempt from tax
- manualnullable
_sales _tax _rate - Type: number · Manual Sales Tax Ratemin:0max:1
Manual rate for tax calculation (if provided, overrides automatic tax calculation)
- nameType: string · Namemax length:256 nullable
Item designation or label
- quantityType: string · QuantityFormat: decimal nullable
Number of items (positive number)
- taxType: string · Tax Code
_code max length:256 nullableProduct tax classification
- linkedType: string · Linked Transaction
_transaction max length:256 nullableFor refunds: the external_id of the original invoice to link to. Tax rates from the original invoice date will be used.
- overrideType: boolean · Override Threshold
_threshold When true, skips threshold establishment checks and forces tax calculation regardless of threshold status.
- shippingType: object · ShippingFeeRequest nullable
_fee Shipping cost with tax configuration
- totalType: string · Total PriceFormat: decimal
_price requiredCost amount
- manualnullable
_sales _tax _rate - Type: number · Manual Sales Tax Ratemin:0max:1
Manual rate for tax calculation (if provided, overrides automatic tax calculation)
- taxType: string · Tax Code
_code max length:256 nullableProduct tax classification
- transactionType: string · Transaction Level DiscountFormat: decimal nullable
_level _discount Discount applied to entire transaction
- transactionType: stringenum nullable
_status Lifecycle state. active: included in tax reports, cancelled: excluded from tax filing reports, paid: finalized and included in filing
values- active
- cancelled
- paid
- transactionType: stringenum nullable
_type Document type that determines tax treatment. sales_order: preliminary order (not reported), invoice: taxable sale, estimate: quote (not reported), refund: credit memo — use linked_transaction to link to original invoice and inherit its tax rate period
values- sales
_order - invoice
- estimate
- refund