Skip to content

order object

An order object contains the properties that define a sales order in DropStream.

Order objects are listed by the /orders endpoint.

order schema

{
  "order": {
    "id": integer,
    "store_id": integer,
    "external_id": "string",
    "external_billing_customer_id": "string",
    "customer_email": "string",
    "external_shipping_customer_id": "string",
    "ordered_at": "dateString",
    "invoice_number": "string",
    "payment_type": "string",
    "external_warehouse_order_id": "string",
    "shipping_carrier_name": "string",
    "shipping_carrier_service_level": "string",
    "shipping_warehouse_code": "string",
    "signature_required": boolean,
    "shipping_insurance": boolean,
    "external_shipping_description": "string",
    "external_display_id": "string",
    "external_source_display_id": "string",
    "purchase_order_id": "string",
    "notes": "string",
    "shipping_notes": "string",
    "gift_message": "string",
    "batch_id": "string",
    "shipping_amount": "decimal(8,2)",
    "discount_amount": "decimal(8,2)",
    "tax_amount": "decimal(8,2)",
    "shipping_tax_amount": "decimal(8,2)",
    "third_party_account_number": "string",
    "third_party_billing_code": "string",
    "discount_codes": "string",
    "external_source_id": "string",
    "lead_source": "string",
    "packing_slip_id": "striing",
    "requested_ship_date": "dateString",
    "requested_cancel_date": "dateString",
    "payment_date": "dateString",
    "external_tags": "string (comma-delimited values)",
    "retailer_id": "string",
    "supplier_id": "string",
    "insured_amount": "decimal(8,2)",
    "terms": "string",
    "sales_rep_last_name": "string",
    "sales_rep_first_name": "string",
    "sales_rep_email": "string",
    "fulfillment_state": "string",
    "fulfillment_transitioned_at": "dateString",
    "external_type": "string",
    "fulfillment_warehouse_id": integer,
    "country_of_origin": "string (2-char code)",
    "shipment_contents": "string (16777215)",
    "declared_value": "decimal(8,2)",
    "currency_code": "USD",
    "customer_service_url": "string",
    "customer_service_email": "string",
    "customer_service_telephone": "string",
    "created_at": "dateString",
    "custom": {
      "key1": "string",
      "key2": "string"
      },
    }
    "shipping_address": {
      "first_name": "string",
      "last_name": "string",
      "street1": "string",
      "street2": "string",
      "city": "string",
      "region": "string",
      "postal_code": "string",
      "country": "string (2-char code)",
      "telephone": "string"
    },
    "billing_address": {
      "first_name": "string",
      "last_name": "string",
      "street1": "string",
      "street2": "string",
      "city": "string",
      "region": "string",
      "postal_code": "string",
      "country": "string (2-char code)",
      "telephone": "string"
    },
    "order_items": [
      {
        "name": "string",
        "sku": "string",
        "upc": "string",
        "unit_price": "decimal(8,2)",
        "unit_cost": "decimal(8,2)",
        "weight": "decimal(10,2)",
        "external_order_item_id": "string",
        "discount_amount": "decimal(8,2)",
        "tax_amount": "decimal(8,2)",
        "gift_wrap": boolean,
        "external_product_id": "string",
        "customer_notes": "string",
        "vendor_id": "string",
        "vendor_part_number": "string",
        "buyer_part_number": "string",
        "color_description": "string",
        "size_description": "string",
        "drop_ship": "string",
        "product_type": "string",
        "created_at": "dateString"
        "options": [
          {
            "gift_message": "string"
          }
        ],
        "custom": {
          "gift_message": "string"
        }
      }
(other order_items if any...)
    ]
  }
}

order properties

batch_id

Propertybatch_id
Data typestring
DescriptionExternal platform's batch ID for the order
Example"TRAN3734"

country_of_origin

Propertycountry_of_origin
Data typestring (2-char code)
DescriptionTwo-character code of the country where the order originated
Example"US"

created_at

Propertycreated_at
Data typedateString
DescriptionDateTime when the order was imported to DropStream
Example2022-10-03T04:28:20Z

currency_code

Propertycurrency_code
Data typestring
DescriptionCurrency code applied to monetary amounts for the order
Example"USD"

customer_email

Propertycustomer_email
Data typestring
DescriptionThe customer's email address

customer_service_email

Propertycustomer_service_email
Data typestring
DescriptionEmail address for customer service associated with the order
Example"customer.service@website.com"

customer_service_telephone

Propertycustomer_service_telephone
Data typestring
DescriptionTelephone number for customer service associated with the order
Example"(123) 456-7890"

customer_service_url

Propertycustomer_service_url
Data typestring
DescriptionWebsite URL for customer service associated with the order
Example"https://website.com/customer-service/"

declared_value

Propertydeclared_value
Data typedecimal (8.2)
DescriptionDeclared monetary amount of order contents value
NoteE.g. for customs purposes

discount_amount

Propertydiscount_amount
Data typedecimal (8.2)
DescriptionMonetary amount deducted from total order price
Example1.23

discount_codes

Propertydiscount_codes
Data typestring
DescriptionDiscount code(s) applied to the order, if applicable
Example"ABC1, ABC2"

external_billing_customer_id

Propertyexternal_billing_customer_id
Data typestring
DescriptionThe external platform's billing customer ID

external_display_id

Propertyexternal_display_id
Data typestring
DescriptionThe order ID displayed to the customer in the sales platform
Example"SO12345"

external_id

Propertyexternal_id
Data typestring
DescriptionThe external platform's order ID

external_shipping_customer_id

Propertyexternal_shipping_customer_id
Data typestring
DescriptionThe external platform's shipping customer ID

external_shipping_description

Propertyexternal_shipping_description
Data typestring
DescriptionThe shipping method description, as defined in the sales channel
NoteIn DropStream, this string is mapped to a shipping_carrier_name, shipping_carrier_service_level, and shipping_warehouse_code by a Shipping Transformer rule
Example"Free Shipping"

external_source_display_id

Propertyexternal_source_display_id
Data typestring
DescriptionThe external platform's displayed order source ID
Example"AMZN510"

external_source_id

Propertyexternal_source_id
Data typestring
DescriptionExternal platform's order source ID
Example"ABC123"

external_tags

Propertyexternal_tags
Data typestring (comma-delimited values)
DescriptionComma-delimited list of order tags
Example"ABC1,ABCDEF-2,ABC3"

external_type

Propertyexternal_type
Data typestring
DescriptionExternal platform order type
Example"ABC123"

external_warehouse_order_id

Propertyexternal_warehouse_order_id
Data typestring
DescriptionThe ID assigned to the order by the WMS after it was sent to the warehouse

fulfillment_state

Propertyfulfillment_state
Data typestring
DescriptionDropStream internal fulfillment state for the order
NoteOne of: archived bundled canceled delayed_processing delayed_sending_completion_acknowledgement delayed_sending_receipt_acknowledgement delayed_sending_to_warehouse error error_processing error_sending_completion_acknowledgement error_sending_receipt_acknowledgement error_sending_to_warehouse new new_manual partially_shipped pending_shipment processing queued ready_for_warehouse scheduled_completion_acknowledgement scheduled_processing_order scheduled_receipt_acknowledgement scheduled_request sending_completion_acknowledgement sending_receipt_acknowledgement sending_to_warehouse sent_completion_acknowledgement sent_to_warehouse shipped skipped split waiting
Example"pending_shipment"

fulfillment_transitioned_at

Propertyfulfillment_transitioned_at
Data typedateString
DescriptionDateTime when current fulfillment_state was set
Example2021-10-15T03:25:01Z

fulfillment_warehouse_id

Propertyfulfillment_warehouse_id
Data typeinteger
DescriptionDropStream warehouse ID this order is assigned to be fulfilled by
Example1234

gift_message

Propertygift_message
Data typestring
DescriptionGift message
Example"Happy Birthday, Love Mom"

id

Propertyid
Data typeinteger
DescriptionUnique ID of this order, assigned upon creation
NoteIn other contexts, "order_id" refers to this property
Example123456789

insured_amount

Propertyinsured_amount
Data typedecimal (8.2)
DescriptionMonetary amount the order is insured for for
Example123.45

invoice_number

Propertyinvoice_number
Data typestring
DescriptionThe invoice number, if applicable

lead_source

Propertylead_source
Data typestring
DescriptionLead source for the sale, if applicable

notes

Propertynotes
Data typestring
DescriptionOrder notes

order_items

Propertyorder_items
Data typeArray of order_item objects
DescriptionItems on this order
Example
[
  {
    "name": "Red Shirt",
    "sku": "RDSHRT-123",
    "unit_price": "1.0",
    "external_order_item_id": "4403098091556",
    "discount_amount": "0.0",
    "external_product_id": "4508015558692",
    "vendor_id": "Jane's Apparel",
    "created_at": "2022-02-23T16:52:18Z"
  }
]

ordered_at

Propertyordered_at
Data typedateString
DescriptionDateTime when the order was placed
Example2022-11-29T03:20:18Z

packing_slip_id

Propertypacking_slip_id
Data typestring
DescriptionPacking slip ID

payment_date

Propertypayment_date
Data typedateString
DescriptionDate when the customer paid for the order
Example2022-10-03T12:25:07Z

payment_type

Propertypayment_type
Data typestring
DescriptionThe platform-defined payment type of the order
Example"paypal"

purchase_order_id

Propertypurchase_order_id
Data typestring
DescriptionThe purchase order ID, if applicable
Example"PO15604"

requested_cancel_date

Propertyrequested_cancel_date
Data typedateString
DescriptionDate when the order was requested to be canceled
Example2022-10-08T21:48:57Z

requested_ship_date

Propertyrequested_ship_date
Data typedateString
DescriptionRequested ship date
Example2022-10-05T01:43:07Z

retailer_id

Propertyretailer_id
Data typestring
DescriptionRetailer ID
Example"Target"

sales_rep_email

Propertysales_rep_email
Data typestring
DescriptionSales rep email address
Example"jane.smith@email.com"

sales_rep_first_name

Propertysales_rep_first_name
Data typestring
DescriptionSales rep first name
Example"Jane"

sales_rep_last_name

Propertysales_rep_last_name
Data typestring
DescriptionSales rep last name
Example"Smith"

shipment_contents

Propertyshipment_contents
Data typestring (16777215)
DescriptionVerbose description of shipment contents
NoteE.g. for customs purposes

shipping_amount

Propertyshipping_amount
Data typedecimal (8.2)
DescriptionMonetary amount of shipping price
Example1.23

shipping_carrier_name

Propertyshipping_carrier_name
Data typestring
DescriptionName of the shipping carrier, as set by the store's Shipping Transformer rule
Example"UPS"

shipping_carrier_service_level

Propertyshipping_carrier_service_level
Data typestring
DescriptionCarrier service level, as set by the store's Shipping Transformer rule
Example"Ground"

shipping_insurance

Propertyshipping_insurance
Data typeboolean
DescriptionTrue if the shipment is insured
Exampletrue

shipping_notes

Propertyshipping_notes
Data typestring
DescriptionShipping notes

shipping_tax_amount

Propertyshipping_tax_amount
Data typedecimal (8.2)
DescriptionMonetary amount of tax added to shipping price
Example1.23

shipping_warehouse_code

Propertyshipping_warehouse_code
Data typestring
DescriptionThe warehouse shipping code for the carrier and service level, as set by the store's Shipping Transformer rule
Example"UPSG"

signature_required

Propertysignature_required
Data typeboolean
DescriptionTrue if recipient signature is required for delivery
Examplefalse

store_id

Propertystore_id
Data typeinteger
DescriptionUnique ID of the store associated with this order
Example1234

supplier_id

Propertysupplier_id
Data typestring
DescriptionSupplier ID
Example"Williams Sonoma Inc"

tax_amount

Propertytax_amount
Data typedecimal (8.2)
DescriptionMonetary amount of tax added to total order price
Example1.23

terms

Propertyterms
Data typestring
DescriptionOrder terms
Example"COD"

third_party_account_number

Propertythird_party_account_number
Data typestring
DescriptionThird-party account number for the order
Example"ABC123"

third_party_billing_code

Propertythird_party_billing_code
Data typestring
DescriptionThird-party billing code for the order
Example"ABC123"