Create an order.
If you receive an error message stating "Precondition failed, the store not found.", please first create a store using the Create a store API.
The unique store identifier is generated by AfterShip. You can obtain this id by making a GET /stores call to get existing stores or a POST /stores to create a new store.
A unique identifier for the order.
The order name. Default is the same value as number.
The order number.
The curreny of order. ISO 4217 Currency Codes.
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 discounts 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.
A unique identifier for the line item in your system. You should pass it when create order. Please note:
The item's SKU (stock keeping unit).
The number of items that have been purchased.
The item's weight.
The price of the item before discounts and taxes have been applied.
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.
Deprecated, do not use. This field is no longer supported and should not be included in API requests. Total items available to fulfill.
The ID of the product that the line item belongs to. It Please note:
The ID of the product variant. Default is the same value as source_product_id. Please note:
The title of the product variant.
Harmonized System (HS) Codes.
The origin country of this product.
Image urls of this variant.
Product tags of this variant.
Product categories of this variant.
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.
A unique identifier for the shipment in your system.
The date and time (ISO 8601 format) when shipment was created.
The type of logistics service selected for this shipment, e.g. FedEx, SmartPost.
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.
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.
Tags attached to the order.
The name of the shipping method.