PUT
/
bookings
/
{bookingId}
/
products
curl --request PUT \
  --url https://api-alpha.fourvenues.com/integrations/bookings/{bookingId}/products \
  --header 'Content-Type: application/json' \
  --header 'integration_id: <api-key>' \
  --header 'secret: <api-key>' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "products": [
    {
      "_id": "ylgla79ll0000fosz51sl31g5q09Adij",
      "amount": 2,
      "name": "VIP Bottle 70cl",
      "total_price": 200,
      "unit_price": 100
    }
  ],
  "ticket_total": 100
}'
{
  "success": true
}

Authorizations

integration_id
string
header
required

Identifier of the integration (Auth v1)

secret
string
header
required

Secret of the organization (Auth v1)

x-api-key
string
header
required

API key (Auth v2)

Path Parameters

bookingId
string
required

Id of the booking

Body

application/json
Body of the request
products
object[]
ticket_total
integer

Total paid for the products (A discount can be applied).

Example:

100

Response

200
application/json
HTTP OK
success
boolean
Example:

true