bookings

Set the buyer company name and tax ID for a booking's invoice

Runs booking.updateBuyerTaxDetails; owner-only. REPLACES all three fields: an omitted field is cleared, so send {} to remove the company details entirely. buyerTaxId needs buyerTaxIdCountry and is validated for that country (GSTIN for IN, VAT for EU/UK). Refused with 400 once a non-void invoice exists for the booking — the issued invoice keeps its own snapshot. Read the current values from buyer on GET /v1/bookings/{publicId}/receipt, whose editable flag says whether this call will be accepted.

put/v1/bookings/{publicId}/buyer-tax-details

Request

  • Base URL: https://api.getmyhotels.com
  • URL: https://api.getmyhotels.com/v1/bookings/{publicId}/buyer-tax-details
  • Auth: HTTP bearer

Path parameters

publicIdstring required

Request body

buyerCompanyNamestring
buyerTaxIdCountry'IN' | 'GB' | 'AT' | 'BE' | 'BG' | 'CY' | 'CZ' | 'DE' | 'DK' | 'EE' | 'ES' | 'FI' | 'FR' | 'GR' | 'HR' | 'HU' | 'IE' | 'IT' | 'LT' | 'LU' | 'LV' | 'MT' | 'NL' | 'PL' | 'PT' | 'RO' | 'SE' | 'SI' | 'SK'
buyerTaxIdstring

Response

Success

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.