OBJECT

Basket

Query: basket, returns Basket For all basket operations, there will be a default, unique API Basket name based on the user name. If a basket ID is not passed in, all operations will be performed on the default stored basket.

link GraphQL Schema definition

  • type Basket {
  • # Name is the identifier for this basket
  • basket_name: String
  • basket_id: ID
  • basket_lines: [BasketLine]
  • unavailable_items: [BasketLine]
  • creator: String
  • date_created: String
  • item_count: Int
  • basket_total: Price
  • basket_total_inc_vat: Float
  • basket_total_exc_vat: Float
  • shipping: Price
  • shipping_inc_vat: Float
  • shipping_exc_vat: Float
  • currency: String
  • shipping_address: Address
  • billing_address: Address
  • delivery_contact: String
  • delivery_contact_phone: String
  • delivery_contact_email: String
  • po_number: String
  • # check now if any products in the basket are bigbox. Regardless of whether
  • # bigbox options have been generated for this basket
  • has_bigbox_lines: Boolean!
  • # if bigbox services has been set on this basket, return the bigbox data,
  • # otherwise null.
  • # if has_bigbox_lines is true but bigbox is null, use the refreshbigbox mutation
  • # to start,
  • # and later to refresh, this data.
  • bigbox: BigBox
  • }