Create Reservation / Create Cart
POST {{baseUrl}}/reservations
This API is called to reserve one or multiple product(s). * This endpoint can also be requested for products without managed capacity. * This endpoint should be called only once per order. Followup request such as amending the cart should be done using the 'Update Reservation` endpoint.
Request Body
{"data"=>{"reservation"=>{"reservation_distributor_id"=>"{{distributorID}}", "reservation_external_reference"=>"{{$randomUUID}} - ", "reservation_details"=>[{"booking_external_reference"=>"{{$randomUUID}}", "booking_language"=>"{{$randomLocale}}", "product_id"=>"{{ProductID}}", "product_type_details"=>[{"product_type_id"=>"{{product_type_id}}", "product_type_count"=>1}]}]}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: Created