/shop/basket/{basketId}/itemsAdd an item to a Basket
Use this endpoint to add an item to a Basket.
Path parameters
The unique identifier of the
Basket.
Request body
Manual discount to apply to this line item, in the smallest currency unit (e.g. pence, cents). Subtracted from the line subtotal before tax. Defaults to 0 / null (no discount).
ID of the offering being added to the basket. Required for every
offering_typeother than free-form vouchers. The format depends on the offering type — practitioner-scheduled offerings use Mongo ObjectIDs.Discriminator describing what kind of sellable item an
Offeringrepresents. The value determines which downstream schema (Appointment,Session,Package, etc.) the offering'soffering_idresolves against, and which checkout/booking flow applies.Possible values:appointmentappointment_enquiryarea_bookingcoursehotel_room_reservationmembershippackageproductsessiontable_reservationvoucherOverride price for this line item in the smallest currency unit (e.g. pence, cents). Omit to let the server compute the price from the offering's current price rules.
Number of units to add to the basket. Defaults to 1.
Responses
- 200
Successfully added an item to a
Basket. - 400
The request failed.
- 401
The user is unauthenticated
- 403
The authenticated user does not have permission.
- 404
The resource couldn't be found
- 422
The request didn't pass validation