Alokai

Order

Order object returned in responses.

interface Order {
	base_handling_cost: string;
	base_shipping_cost: string;
	base_wrapping_cost: number | string;
	billing_address: OrderBillingAddress;
	readonly cart_id: string;
	channel_id: number;
	readonly coupon_discount: string;
	coupons: {
    resource: string;
    url: string;
  };
	readonly currency_code: string;
	readonly currency_exchange_rate: string;
	readonly currency_id: number;
	custom_status: string;
	customer_id: number;
	customer_locale: string;
	customer_message: string;
	date_created: string;
	readonly date_modified: string;
	readonly date_shipped: string;
	default_currency_code: string;
	readonly default_currency_id: number;
	discount_amount: string;
	ebay_order_id: 0 | string;
	external_id: null | string;
	external_merchant_id: any | string;
	external_source: null | string;
	geoip_country_iso2: string;
	geoip_country: string;
	readonly gift_certificate_amount: string;
	handling_cost_ex_tax: string;
	handling_cost_inc_tax: string;
	readonly handling_cost_tax_class_id: number;
	readonly handling_cost_tax: string;
	readonly id: number;
	ip_address_v6: string;
	ip_address: string;
	is_deleted: boolean;
	readonly is_email_opt_in: boolean;
	items_shipped: number;
	items_total: number;
	order_is_digital: boolean;
	readonly order_source: string;
	payment_method: OrderPaymentMethod;
	payment_provider_id: number | string;
	readonly payment_status: OrderPaymentStatus;
	products: {
    resource: string;
    url: string;
  };
	refunded_amount: string;
	readonly shipping_address_count: number;
	shipping_addresses: {
    resource: string;
    url: string;
  };
	shipping_cost_ex_tax: string;
	shipping_cost_inc_tax: string;
	readonly shipping_cost_tax_class_id: number;
	readonly shipping_cost_tax: string;
	staff_notes: string;
	status_id: number;
	status: string;
	readonly store_credit_amount: string;
	store_default_currency_code: string;
	store_default_to_transactional_exchange_rate: string;
	subtotal_ex_tax: string;
	subtotal_inc_tax: string;
	readonly subtotal_tax: string;
	tax_provider_id: OrderTaxProviderId;
	total_ex_tax: string;
	total_inc_tax: string;
	total_tax: string;
	wrapping_cost_ex_tax: string;
	wrapping_cost_inc_tax: string;
	readonly wrapping_cost_tax_class_id: number;
	readonly wrapping_cost_tax: string;
}

Properties

NameRequiredTypeDescription
base_handling_costRequiredstringThe value of the base handling cost. (Float, Float-As-String, Integer)
base_shipping_costRequiredstringThe value of the base shipping cost. (Float, Float-As-String, Integer)
base_wrapping_costRequirednumber | stringThe value of the base wrapping cost. (Float, Float-As-String, Integer)
billing_addressRequiredOrderBillingAddressOrder billing address.
cart_idRequiredstringThe cart ID from which this order originated, if applicable. Correlates with the Cart API. This is a READ-ONLY field; do not set or modify its value in a POST or PUT request.
channel_idRequirednumberShows where the order originated. The channel_id will default to 1.
coupon_discountRequiredstringA read-only value. Do not pass in a POST or PUT. (Float, Float-As-String, Integer)
couponsRequired{ resource: string; url: string; }Order coupons.
currency_codeRequiredstringThe currency code of the display currency used to present prices on the storefront. A read-only value. Do not pass in a POST or PUT.
currency_exchange_rateRequiredstringThe exchange rate between the store's default currency and the display currency. A read-only value. Do not pass in a POST or PUT. (Float, Float-As-String, Integer)
currency_idRequirednumberThe display currency ID. May be different from transactional currency. A read-only value. Do not pass in a POST or PUT.
custom_statusRequiredstringAn alias to status
customer_idRequirednumberOrder customer ID.
customer_localeRequiredstringThe customer's locale
customer_messageRequiredstringMessage that the customer entered (number, optional) -o the Order Comments box during checkout.
date_createdRequiredstringThe date the order was created, formatted in the RFC-2822 standard. You set this attribute on Order creation (POST) to support the migration of historical orders. If you do not provide a value, then it will default to the current date/time. e.g., Tue, 20 Nov 2012 00:00:00 +0000
date_modifiedRequiredstringA read-only value representing the last modification of the order. Do not attempt to modify or set this value in a POST or PUT operation. RFC-2822
date_shippedRequiredstringA read-only value representing the date of shipment. Do not attempt to modify or set this value in a POST or PUT operation. RFC-2822
default_currency_codeRequiredstringThe currency code of the transactional currency the shopper pays in; writeable when multi-currency is enabled.
default_currency_idRequirednumberThe transactional currency ID. A read-only value. Do not pass in a POST or PUT.
discount_amountRequiredstringAmount of discount for this transaction. (Float, Float-As-String, Integer)
ebay_order_idRequired0 | stringIf the order was placed through eBay, the eBay order number will be included. Otherwise, the value will be 0.
external_idRequirednull | stringID of the order in another system. For example, the Amazon Order ID if this is an Amazon order. This field can be updated in a /POST, but using a /PUT to update the order will return a 400 error. The field 'external_id' cannot be written to. Please remove it from your request before trying again. It can not be overwritten once set.
external_merchant_idRequiredany | stringThe merchant ID represents an upstream order from an external system. It is the source of truth for orders. After setting it, you can not write to or update the external_merchant_id. For example, you can update the Facebook by Meta page ID in a /POST request, but a /PUT request to update the order will return a 400 error. Please remove it from your request before trying again.
external_sourceRequirednull | stringThis value identifies an external system that generated the order and submitted it to BigCommerce via the Orders API. When supplying the value, we recommend combining the type of system and vendor, e.g., ERP (Acumatica) or POS (Square). If you are migrating historical orders processed on another eCommerce platform to BigCommerce, supply the following code as the value: M-MIG. This code will exclude historical orders from the store’s GMV/order count, which factors into pricing. If you do not provide a value, then it will default to null.
geoip_country_iso2RequiredstringThe country where the customer made the purchase, in ISO2 format, based on the IP.
geoip_countryRequiredstringThe full name of the country where the customer made the purchase, based on the IP.
gift_certificate_amountRequiredstringA read-only value. Do not pass in a POST or PUT. (Float, Float-As-String, Integer)
handling_cost_ex_taxRequiredstringThe value of the handling cost, excluding tax. (Float, Float-As-String, Integer)
handling_cost_inc_taxRequiredstringThe value of the handling cost, including tax. (Float, Float-As-String, Integer)
handling_cost_tax_class_idRequirednumberA read-only value. Do not attempt to set or modify this value in a POST or PUT operation. (NOTE: Value ignored if automatic tax is enabled on the store.)
handling_cost_taxRequiredstringA read-only value. Do not attempt to modify or set this value in a POST or PUT operation. (Float, Float-As-String, Integer)
idRequirednumberRead-only. The ID of the order.
ip_address_v6RequiredstringIPv6 Address of the customer, if known. Note: You can set either ip_address or ip_address_v6. Setting the ip_address_v6 value will reset the ip_address value and vice versa.
ip_addressRequiredstringIPv4 Address of the customer, if known. Note: You can set either ip_address or ip_address_v6. Setting the ip_address value will reset the ip_address_v6 value and vice versa.
is_deletedRequiredbooleanIndicates whether the order was deleted (archived). Set to to true, to archive an order.
is_email_opt_inRequiredbooleanIndicates whether the shopper has selected an opt-in check box (on the checkout page) to receive emails. A read-only value. Do not pass in a POST or PUT.
items_shippedRequirednumberThe number of items that have been shipped.
items_totalRequirednumberThe total number of items in the order.
order_is_digitalRequiredbooleanWhether this is an order for digital products.
order_sourceRequiredstringOrders submitted via the store's website will include a www value. Orders submitted via the API will be set to external. A read-only value. Do not pass in a POST or PUT.
payment_methodRequiredOrderPaymentMethodThe payment method for this order. Can be one of the following: Manual, Credit Card, cash, Test Payment Gateway, etc.
payment_provider_idRequirednumber | stringThe external Transaction ID/Payment ID within this order's payment provider (if a payment provider was used).
payment_statusRequiredOrderPaymentStatusA read-only value. Do not attempt to set or modify this value in a POST or PUT operation.
productsRequired{ resource: string; url: string; }Order products.
refunded_amountRequiredstringThe amount refunded from this transaction. (Float, Float-As-String, Integer)
shipping_address_countRequirednumberThe number of shipping addresses associated with this transaction. A read-only value. Do not pass in a POST or PUT.
shipping_addressesRequired{ resource: string; url: string; }Order shipping addresses.
shipping_cost_ex_taxRequiredstringThe value of shipping cost, excluding tax. (Float, Float-As-String, Integer)
shipping_cost_inc_taxRequiredstringThe value of shipping cost, including tax. (Float, Float-As-String, Integer)
shipping_cost_tax_class_idRequirednumberShipping-cost tax class. A read-only value. Do not attempt to modify or set this value in a POST or PUT operation. (NOTE: Value ignored if automatic tax is enabled on the store.)
shipping_cost_taxRequiredstringA read-only value. Do not attempt to modify or set this value in a POST or PUT operation. (Float, Float-As-String, Integer)
staff_notesRequiredstringAny additional notes for staff.
status_idRequirednumberThe status ID of the order.
statusRequiredstringThe status will include one of the (string, optiona) - values defined under Order Statuses. This value is read-only. Do not attempt to modify or set this value in a POST or PUT operation.
store_credit_amountRequiredstringRepresents the store credit that the shopper has redeemed on this individual order. This is a read-only value. Do not pass in a POST or PUT. (Float, Float-As-String, Integer)
store_default_currency_codeRequiredstringThe currency code of the store's default currency.
store_default_to_transactional_exchange_rateRequiredstringThe exchange rate between the store's default currency and the transactional currency used in the order.
subtotal_ex_taxRequiredstringOverride value for subtotal excluding tax. If specified, the field subtotal_inc_tax is also required. (Float, Float-As-String, Integer)
subtotal_inc_taxRequiredstringOverride value for subtotal including tax. If specified, the field subtotal_ex_tax is also required. (Float, Float-As-String, Integer)
subtotal_taxRequiredstringA read-only value. Do not attempt to set or modify this value in a POST or PUT operation. (Float, Float-As-String, Integer)
tax_provider_idRequiredOrderTaxProviderIdBasicTaxProvider - Tax is set to manual. AvaTaxProvider - This is for when the tax provider has been set to automatic and the order was NOT created by the API. Used for Avalara. "" (blank) - When the tax provider is unknown. This includes legacy orders and orders previously created via API. This can be set when creating an order using a POST.
total_ex_taxRequiredstringOverride value for the total, excluding tax. If specified, the field total_inc_tax is also required. (Float, Float-As-String, Integer)
total_inc_taxRequiredstringOverride value for the total, including tax. If specified, the field total_ex_tax is also required. (Float, Float-As-String, Integer)
total_taxRequiredstringTotal tax of the order
wrapping_cost_ex_taxRequiredstringThe value of the wrapping cost, excluding tax. (Float, Float-As-String, Integer)
wrapping_cost_inc_taxRequiredstringThe value of the wrapping cost, including tax. (Float, Float-As-String, Integer)
wrapping_cost_tax_class_idRequirednumberA read-only value. Do not attempt to set or modify this value in a POST or PUT operation. (NOTE: Value ignored if automatic tax is enabled on the store.)
wrapping_cost_taxRequiredstringA read-only value. Do not attempt to modify or set this value in a POST or PUT operation. (Float, Float-As-String, Integer)

Referenced Types

On this page