Create an order.
Please refer to the common scenario documentation for the usage of AfterShip Tracking, Shipping and Returns.
If you receive 41204 error (The store could not be found), please create a store with the Create a store endpoint before calling this 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.
The order number.
Specifies the currency for the order, adhering to the ISO 4217 Currency Codes standard.
The status of the order.
The status of payments associated with the order. Defaults to null
if not provided.
The status of fulfillment associated with the order. If not provided, this value is automatically determined. Since fulfillment hasn't been created at the time of order creation, it defaults to unfulfilled
.
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. The value should be equal to the sum of all item discounts.
The price of the order after discounts but before shipping and taxes.
Purchased items of the order.
A unique identifier for the line item in your system. This should be provided when creating an order.
Please note:
product.source_id
of the Product
resource.source_id
should be the same as fulfillments.*.line_items.source_id
.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.Show all...
The title of the product.
The title of the product variant.
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 in your system.
Note that it should be the same as the product.source_id
of the Product
resource.
The ID of the product variant in source system.
Note that it should be the same as the product.variants.source_id
of the Product
resource.
Harmonized System (HS) Codes.
The origin country of this product. The field should in ISO 3166-1 alpha-3 format.
Image urls of this variant.
Product tags of this variant.
Product categories of this variant.
This field allows you to set the maximum returnable quantity for an order item when importing the order. When a shopper requests a return, they will not be able to select a quantity exceeding this specified limit.
A note that the shop owner can optionally attach to the order.
The date and time, formatted in ISO 8601, indicating when the order was created in your e-commerce system.
The date and time, formatted in ISO 8601, indicating when the order was updated in your e-commerce system.
Customer information of the order.
A unique identifier for the customer of your store platform. It could be the customer ID of your system, or a URL friendly name or slug which is unique in your system.
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.
Shipping address of the order.
The type of address.
First line of the street address.
Second line of the street address.
Third line of the street address.
The location's city, town, or village.
The state or region of the location, such as a province, state, or prefecture.
The postal code of the location (also known as zip code, postcode, Eircode, etc.).
The address country/region in ISO 3166-1 alpha-3 format. API will automatically convert input to uppercase.
The name of the company associated to the address.
The first name of the person associated to the address.
The last name of the person associated to the address.
The email address of the person associated to the address.
The phone number of the person associated to the address.
Billing address of the order.
The type of address.
First line of the street address.
Second line of the street address.
Third line of the street address.
The location's city, town, or village.
The state or region of the location, such as a province, state, or prefecture.
The postal code of the location (also known as zip code, postcode, Eircode, etc.).
The address country/region in ISO 3166-1 alpha-3 format. API will automatically convert input to uppercase.
The name of the company associated to the address.
The first name of the person associated to the address.
The last name of the person associated to the address.
The email address of the person associated to the address.
The phone number of the person associated to the address.
Tags attached to the order.
The name of the shipping method.
Delivery method of the order.Show all...
To indicate the pickup location of the order when the delivery method of the order is pickup
.Show all...
The unique identifier for the address. You can find or create the corresponding value here.
To indicate the detailed pickup instruction of the order when the delivery method of the order is pickup
.Show all...
The expected date and time when the items in this fulfillment order will be ready for pickup.Show all...
The latest time by which the pickup must be completed, formatted in ISO 8601.Show all...
This object tracks the timestamps for each status change.Show all...
Datetime when the status was set to open
.
Datetime when the status was set to canceld
.
Datetime when the status was set to closed
.
Custom fields that accept an object with string field. In order to protect the privacy of your customers, do not include any personal data in custom fields.Show all...