Skip to main content
PUT
/
bookings
/
{bookingId}
/
update-fields
cURL
curl --request PUT \
  --url https://api-alpha.fourvenues.com/integrations/bookings/{bookingId}/update-fields \
  --header 'Content-Type: application/json' \
  --header 'integration_id: <api-key>' \
  --header 'secret: <api-key>' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "name": "John Doe Updated",
  "email": "john.updated@example.com",
  "phone": "+34666123456",
  "for": 6,
  "status": "confirmed",
  "price": 2000,
  "pos_ticket_total": 25,
  "pos_total_service_charge": 0,
  "pos_total_tips": 0,
  "commentary_reserve": "Cumpleaños",
  "commentary_client": "",
  "deposit_paid": 30,
  "walkin": false,
  "duration": 0,
  "enter": 6,
  "date": "2025-08-14T22:00:00.000Z",
  "pos_products": [
    {
      "_id": "<string>",
      "name": "<string>",
      "amount": 123,
      "unit_price": 123,
      "total_price": 123
    }
  ],
  "pos_payments": [
    {
      "type": "<string>",
      "amount": 123
    }
  ]
}
'
{
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "data": {
      "type": "object",
      "properties": {
        "updated": {
          "type": "boolean"
        },
        "changes_count": {
          "type": "integer"
        },
        "state_changed": {
          "type": "boolean"
        },
        "changes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}

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

name
string
Example:

"John Doe Updated"

email
string
Example:

"john.updated@example.com"

phone
string
Example:

"+34666123456"

for
integer
Example:

6

status
string
Example:

"confirmed"

price
number
Example:

2000

pos_ticket_total
number
Example:

25

pos_total_service_charge
number
Example:

0

pos_total_tips
number
Example:

0

commentary_reserve
string
Example:

"Cumpleaños"

commentary_client
string
Example:

""

deposit_paid
number
Example:

30

walkin
boolean
Example:

false

duration
number
Example:

0

enter
integer
Example:

6

date
string<date-time>
Example:

"2025-08-14T22:00:00.000Z"

pos_products
object[]
pos_payments
object[]

Response

HTTP OK

type
string
Example:

"object"

properties
object