Unique identifier generated by AfterShip.
A unique identifier for the order.
The order name. Default is the same value as number.
The order number.
The curreny of order.
The status of this order.
The status of payments associated with the order.
The status of fulfillment associated with the order.
The total price of the order.
The total shipping fee applied to the price of the order.
The sum of all the taxes applied to the order.
The total discount applied to the order. Its value should be equal to the sum of all item discounts.
The price of the order after discounts but before shipping and taxes.
Items of order. Some fields of order item are defined as snapshot fields. These snapshot fields are related to product and can only be specified when creating an order.
A unique identifier for the line item.
Snapshot field
The item's SKU (stock keeping unit). Cannot be changed after creating in AfterShip.
The number of items that have been purchased.
Snapshot field
The price of the item before discounts and taxes have been applied. Cannot be changed after creating in AfterShip.
Please note that the item total price needs to meet the following formula:
item total price paid = unit_price*quantity - discount + tax
The total amount of the discount allocated to the line item. Including the discount applied only on this item and the allocated discount for the order level discount.
The total amount of the tax allocated to the line item.
Total items available to fulfill.
Snapshot field
The ID of the product that the line item belongs to. It cannot be changed after creating in AfterShip.
Snapshot field
The ID of the product variant. Default is the same value as source_product_id. Cannot be changed after creating in AfterShip.
The title of the product variant.
Harmonized System (HS) Codes.
The origin country of this product.
Snapshot field
Image urls of this variant. Cannot be changed after creating in AfterShip.
Snapshot field
Product categories of this variant. Cannot be changed after creating in AfterShip.
Snapshot field
Product tags of this variant. Cannot be changed after creating in AfterShip.
order shipments.
Tracking number.
Unique code of the courier. Get couriers here: https://www.aftership.com/couriers.
A list of line item objects, each containing information about an item in the shipment.
The ID of shipment.
The date and time (ISO 8601 format) when shipment was created.
The date and time (ISO 8601 format) when shipment was delivered.
Custom fields that accept an object with string field.Show all...
An optional note that a shop owner can attach to the order.
The date and time (ISO 8601 format) when an order was created.
The date and time (ISO 8601 format) when an order was updated.
The date and time (ISO 8601 format) when an order was created in AfterShip.
The date and time (ISO 8601 format) when an order was updated in AfterShip.
A unique identifier for the customer.
The customer's first name.
The customer's last name.
The customer's email.
The customer's phone number.
The language code of the customer, eg: en-US.
The name or description of this address.
The company of the person associated with this address.
The customer’s first name.
The customer’s last name.
The unique email address of the customer.
The customer's mailing address.
An additional field for the customer's mailing address.
An additional field for the customer's mailing address.
The customer’s city, town, or village.
The customer’s region name. Typically a province, a state, or a prefecture.
The customer's country.
The customer’s postal code, also known as zip, postcode, Eircode, etc.
The customer’s phone number at this address.
The type of address (Eg: My home address, My office address).
Tax number for the address.
A unique identifier for the address.
Tags attached to the order.
The name of the shipping method.
preparing...