Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

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

Attributes

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

FieldData TypeRequiredInformation

The following details are returned about a basket.

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 BasketLinesNItems in the basket.
OrderTotalDecimalYTotal amount payable for the order.
  • No labels