Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Add additional fields to the order definition

An Order that is not a basket anymoreis a Basket that has gone through the checkout process to become a placed order. The orders are only visible to the users who created them, and can only contain projects that the user created (this is enforced by the Session)cannot be modified.

Requires:

...

Actions

URL
Verb
Information
/ordersGET

Returns a list of all existing orders for the currently logged in user

Attributes

The following attributes are for creating or updating a order. (Currently nothing is required to create orders)

FieldData TypeRequiredInformation
/order/{Guid}GETReturns a order for the specified {Guid} and the currently logged in user
/orders?ProjectGuid=GETReturns a list of all existing orders for the currently logged in user and the projectGuid specified in the query string.

Attributes

The following details are returned about a order.

Field
Data Type
Required
Information
GuidOrderGuidGuidYUsed to uniquely identify a basketorder
OrderNumberIntegerYA customer friendly order number, unique to the order, assigned when the order is placed
CurrencyStringYThe 3 letter ISO code of the currency the order was processed in, for example, "USD"
CreatedDateUtcDateTimeYThe date time the basket order was created as a basket, in UTC
LastSavedDateUtcDateTimeYThe date time the basket order was last saved, in UTC
CompletedDateUtcDateTimeYThe date time the order was completed, in UTC
LinesArray Of Basket LinesNYItems in the basket.
SubTotalDecimalYTotal amount of the order before shipping and discounts are applied
DiscountTotalDecimalYThe total amount the order was discounted by
ShippingTotalDecimalYThe total amount paid for shipping on the order
OrderTotalDecimalYTotal amount payable for the order.CompletedDateUTCDateTime
StatusOrderStatusYThe current status of the order
ShippingMethodStringYThe date time the basket was completed, in UTCStatusOrderStatusYEnum status based on status Idname of the shipping method the order was shipped by
ShippingAddressOrderAddressYThe address the order was shipped to