Create Order
Add a new order to LoyaltyLion. This may trigger rules and award points to a customer. Merchants using a supported platform such as Shopify should usually not use this endpoint, as LoyaltyLion will retrieve orders from the platform via webhooks instead.
Query Parameters
Create the order in the specified site. This is only required for programs that have multiple sites. Programs with only a single site can omit this parameter, and the order will be created in the program's only site
Body
The ID of the customer in your platform or ecommerce store who placed the order
The email address of the customer who placed the order
The ID of the order in your platform or ecommerce store
The total amount of order as a decimal string without formatting, e.g. 99.99
The total shipping amount for the order as a decimal string without formatting, e.g. 3.49
not_paid
, partially_paid
, paid
The total amount paid for the order as a decimal string without formatting, e.g. 9.99
A optional order number to identify this order in your system
A list of LoyaltyLion claimed reward IDs that were used with this order
An ISO 8601
timestamp representing the date of the order. Defaults to now if not provided
The IP address of the customer who placed the order. Used to track referrals
The user agent of the customer who placed the order. Used to track referrals
A LoyaltyLion referral ID, used to link this order to a referral
A LoyaltyLion tracking ID, used to link this order to a tracking source
Whether this order was placed by a guest customer
Response
The response is of type enum<string>
.