Skip to main content

Create a hotel

POST

https://api-v2.test.eldowallet.fr/hotels

Creates a hotel, i.e. the pass template (title, colours, advantages, barcode format, address, strip image) shared by all its bookings. The request is sent as multipart/form-data and returns the created hotel.

Good to know
  • Body is multipart/form-data: nested objects (colors, security, locations…) are sent as a JSON string, booleans as "true"/"false". Images: PNG or JPEG, 1 KB to 5 MB.

Request​

header parameters
  • x-lang string
    Language for responses
    enum: en, frdefault: "en"
Body multipart/form-data required
  • strip string <binary>
  • title string required
  • hotelName string
  • description string
  • code string
  • advantages string[]
  • colors object
    • backgroundColor string required
    • labelColor string required
    • foregroundColor string required
  • barcodeFormat stringenum: AZTEC, CODE_128, PDF_417, QR_CODE, NONE
  • location object
    • latitude number
    • longitude number
    • relevantName string
    • relevantAddress string

Responses​

Schema application/json
  • wallet oneOf required
    • Wallet
      • name string required
      • logo string required
      • icon string required
      • androidLogo string
      • displayIdentifiant boolean required
      • passBuilderPassTemplateId string
      • passBuilderBusinessId string
      • passBuilderToken string
      • identifier string required
      • identifierQr string required
      • address string
      • website string required
      • servicePhone string required
      • businessPhone string required
      • socialMedia object required
        • linkedin string
        • facebook string
        • instagram string
        • tiktok string
        • twitter string
        • youtube string
        • snapchat string
        • pinterest string
        • reddit string
        • whatsapp string
        • telegram string
      • additionalContacts object[] required
        • title string required
        • value string required
        • kind string requiredenum: URL, PHONE, EMAIL
      • termsAndConditions object required
        • type string requiredenum: PDF, URL, NONE
        • customUrl string
        • pdfUrl string
      • webHookUrl string required
      • rootDomain string required
      • timezone string
      • allowedPasses string[] requiredenum: ALL, EVENT_TICKET, TRANSIT, CINEMA, BOARDING_PASS, COUPON, GENERIC, STORE_CARD, OFFER, HOTEL
      • expiredCleanupEnabled boolean required
      • _id string required
      • createdAt string <date-time> required
      • updatedAt string <date-time> required
    • option 2
  • title string required
  • hotelName string
  • description string
  • strip string
  • code string
  • advantages string[] required
  • colors object
    • labelColor string required
    • backgroundColor string required
    • foregroundColor string required
  • barcodeFormat stringenum: AZTEC, CODE_128, PDF_417, QR_CODE, NONE
  • passBuilderPassTemplateId string
  • location object
    • longitude number
    • latitude number
    • relevantName string
    • relevantAddress string
  • _id string required
  • createdAt string <date-time> required
  • updatedAt string <date-time> required

API news, once a month

New endpoints, upcoming changes, guides and use cases. No spam, one-click unsubscribe.

Report a technical problem

An API error, a pass that does not update, an email that does not arrive? Describe the problem: our technical team will answer.

For a fast answer, include:

  • The method and endpoint (e.g. POST /clients)
  • The error code returned (errorCode) and the body sent
  • The date and time of the call
  • The identifiers involved (customer, template, pass)

Never include an API token or a password.

AI assistant

Beta

Loading…

AI-generated answers (Claude): double-check important details.

Sign in to use the assistant