Set property settings
documentedUpdate or set property settings.
POST /property-api/properties/{propertyId}/settingsProperty APIno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://supply-xml.booking.com/property-api/properties/{{$property_id}}/settings" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"property_settings": {"require_cvc": {{$require_cvc}},"view_cc_details": {{$view_cc_details}},"curfew": {"enabled": {{$curfew_enabled}},"start": "{{$curfew_start}}","end": "{{$curfew_end}}"},"require_booker_address": {{$require_booker_address}},"require_booker_phone_number": {{$require_booker_phone_number}},"age_restriction": {"enabled": {{$age_restriction_enabled}},"min": {{$age_restriction_min}},"max": {{$age_restriction_max}}},"auto_replenish": {{$auto_replenish}},"replenish_closed_rooms": {{$replenish_closed_rooms}},"long_stay": {"enabled": {{$long_stay_enabled}},"max_length_of_stay": {{$long_stay_max_length_of_stay}}},"pricing_type": "{{$pricing_type}}","allow_smoking": {{$allow_smoking}}},"pets": {"pets_allowed": "{{$pets_allowed}}","pets_price_type": "{{$pets_price_type}}"},"damage_policy": {"amount": {{$damage_policy_amount}},"policy_type": "{{$damage_policy_type}}","damage_programme_terms_agreed": {{$damage_programme_terms_agreed}},"collection_mode": "{{$damage_collection_mode}}","return_mode": "{{$damage_return_mode}}","collection_when": "{{$damage_collection_when}}","return_when": "{{$damage_return_when}}"},"standard_phrases": [{"name": "{{$standard_phrase_name}}","enabled": {{$standard_phrase_enabled}}}],"quiet_hours": {"enabled": {{$quiet_hours_enabled}},"start": "{{$quiet_hours_start}}","end": "{{$quiet_hours_end}}"},"renovation": {"enabled": {{$renovation_enabled}},"start": "{{$renovation_start}}","end": "{{$renovation_end}}"},"bed_linen_policy": {"enabled": {{$bed_linen_policy_enabled}},"amount": {{$bed_linen_policy_amount}}},"accepted_payment_types": {"codes": [{{$accepted_payment_codes}}]},"french_tax_details": {"category_id": "{{$french_tax_category_id}}","nature_id": "{{$french_tax_nature_id}}","declare_revenue": {{$french_tax_declare_revenue}},"has_vat": {{$french_tax_has_vat}},"registered_in_rcs": {{$french_tax_registered_in_rcs}}},"cancellation_exceptions": {"grace_period": {"enabled": {{$cancellation_grace_enabled}},"after_booking": "{{$cancellation_grace_after_booking}}"},"advance_cancellation": {"enabled": {{$cancellation_advance_enabled}},"before_check_in": "{{$cancellation_before_check_in}}"}},"age_buckets": [{"min_age": {{$age_bucket_min_age}},"max_age": {{$age_bucket_max_age}}}],"children_policies": {"allow_children": {{$children_allow}},"min_age": {{$children_min_age}},"policy_rules": [{"rule_type": "{{$children_rule_type}}","from_age": {{$children_from_age}},"to_age": {{$children_to_age}},"price_type": "{{$children_price_type}}","price_mode": "{{$children_price_mode}}","price": {{$children_price}}]}]},"booking_model": {"type": "{{$booking_model_type}}"},"invoice_settings": {"legal_name": "{{$invoice_legal_name}}","contact_person": "{{$invoice_contact_person}}","address": "{{$invoice_address}}","country_code": "{{$invoice_country_code}}","city": "{{$invoice_city}}","postal_code": "{{$invoice_postal_code}}","state": "{{$invoice_state}}","notification_channel": "{{$invoice_notification_channel}}","brazil_tax_details": {"tax_payer_number_type": "{{$invoice_brazil_tax_type}}","tax_payer_number": "{{$invoice_tax_payer_number}}","city_hall_id": "{{$invoice_city_hall_id}}","email": "{{$invoice_email}}"}} }' }