Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Baskets are an order which hasn't been finalized. A User must make a basket and add Projects into it (by creating Basket Lines) in order to place a print order. The baskets are only visible to the users who created them, and can only contain projects that the user created (this is enforced by the Session).

Requires:

Actions

URLVerbInformation
/basketPOSTCreates a new basket
/basketsGET

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

/basket/{Guid}GETReturns the details of a basket identified by Guid
/basket/{Guid}DELETEDeletes the basket identified by Guid

...

FieldData TypeRequiredInformation
GuidGuidYUsed to uniquely identify a basket
CreatedDateUtcDateTimeYThe date time the basket was created, in UTC
LastSavedDateUtcDateTimeYThe date time the basket was last saved, in UTC
LinesArray Of BasketLines Basket LinesNItems in the basket.
OrderTotalDecimalYTotal amount payable for the order.