Skip to content
← Back to Index

Order

Type

Definition

filtrera
let Order: {
  channelKey: nothing|text
  createdAt: instant
  currencyCode: text
  deliveries: [{
    createdAt: instant
    deliveryAddress: {
      addressLine1: text
      addressLine2: text
      attention: text
      careOf: text
      city: text
      countryCode: text
      email: text
      name: text
      phone: text
      postalCode: text
      state: text
    }
    deliveryId: uuid
    deliveryNumber: text
    deliveryState: 'open'|'processing'|'completed'|'cancelled'|'cancelledByOrder'
    dynamic: {text->value}
    finalizedAt: nothing|instant
    inventoryDate: nothing|instant
    inventoryKey: nothing|text
    orderLines: [{
      description: text|nothing
      dynamic: {text->value}
      image: text|nothing
      orderLineId: uuid
      orderLineNumber: text
      orderLineTotal: number
      productNumber: text
      quantity: number
      releasedToInvoice: boolean
      returnedQuantity: number
      skus: [{
        orderLineSkuId: uuid
        reservedQuantity: number
        skuNumber: text
        totalQuantity: number
        totalReturnedQuantity: number
        unitQuantity: number
      }]
      taxFactor: nothing|number
      taxTotal: number
      unitPrice: number
    }]
    releasedToInvoice: boolean
    shippingDescription: nothing|text
    shippingPrice: number
    shippingProductNumber: nothing|text
    shippingTax: number
    shippingTaxFactor: nothing|number
    shippingTotal: number
    tags: [text]
  }]
  dynamic: {text->value}
  invoiceAddress: {
    addressLine1: text
    addressLine2: text
    attention: text
    careOf: text
    city: text
    countryCode: text
    email: text
    name: text
    phone: text
    postalCode: text
    state: text
  }
  invoices: [{
    capturedTotal: number
    createdAt: instant
    invoiceAddress: {
      addressLine1: text
      addressLine2: text
      attention: text
      careOf: text
      city: text
      countryCode: text
      email: text
      name: text
      phone: text
      postalCode: text
      state: text
    }
    invoiceId: uuid
    invoiceLines: [{
      description: nothing|text
      discounts: [{
        amount: number
        description: nothing|text
        discountId: uuid
        invoiceLineDiscountId: uuid
      }]
      invoiceLineId: uuid
      invoiceLineNumber: number
      net: number
      originalInvoiceLineId: nothing|uuid
      productNumber: nothing|text
      quantity: nothing|number
      referenceId: uuid
      referenceType: 'none'|'orderLine'|'return'|'delivery'
      tax: number
      total: number
    }]
    invoiceNetTotal: number
    invoiceNumber: text
    invoiceTaxTotal: number
    invoiceTotal: number
    isCancelled: boolean
  }]
  journalEntries: [{
    amount: number
    invoiceId: uuid|nothing
    orderJournalEntryId: uuid
    orderJournalEntryType: 'receivable'|'capture'|'clearing'|'fee'
    paymentId: uuid|nothing
    timestamp: instant
  }]
  orderId: uuid
  orderNumber: text
  orderState: 'pending'|'confirmed'|'cancelled'
  orderTaxTotal: number
  orderTotal: number
  tags: [text]
  taxIncluded: boolean
}

Availability

DiscountRuleReactor

© 2024 Hantera AB. All rights reserved.