Funzioni
Prezzi
Integrazioni
Contattaci
Prova gratuita di 30 giorni
Il mio account
Esci
Italiano
English
Français
Deutsch
Italiano
Español
Polski
Norsk
Holiday Apartment Demo
Sito: 51045
Dashboard
Prenotazioni
Recenti prenotazioni inserite
Prossime prenotazioni
Prenotazioni in attesa
Confermato
Affitto in corso
Prenotazioni passate
Checked-in
Non compiuto/a
Cancellato dall’utente
Cancellato dal'amministratore
Registro eventi
Prenotazioni modificata dal cliente
Conflitti
Offerte
Prenotazioni bloccate
Fatture
Revisioni
Cerca
Orario
Disponibilità
Elenco dei clienti
Utenti con prenotazioni
Utenti creati dagli amministratori / Aggiungere un nuovo utente
Utenti bloccati & pre-approvati
Importazione di utenti
Mostrare i buoni
Abbonamento
Configurazione rapida
Impostazioni del sito
Informazioni aziendali
Funzionalità attive
Pagamenti online
Impostazioni regionali
Prodotti supplementari
Dati del formulario di prenotazione
Impostazioni di notifica (Email / SMS)
Manager di prezzi
Ferie della risorsa
Impostazioni stagionali
Voucher
Buoni
Traduzioni personalizzate
Editore CSS
Schema
Etichette per colori & Manager di colori
Gestione di impostazioni personalizzate delle risorse
Mostra tutto...
Risorse
Impostazioni Risorsa
Elenco delle risorse
Resource search
Informazioni generali
Processo di prenotazione
Opzioni di tempo
Immagini
Voucher
Mostra tutto...
Aggiungi nuova risorsa
Nuovo pacchetto
Aggiungi un nuovo raggruppamento
Rapporti
Integrazione con sito web
Codice QR
Messaggi in arrivo
Aiuto
Esci
API Playground - list_coupons
Cerca
Effettua prenotazione
list_coupons
Lists the purchased coupons. You can specify a number of parameters to filter the results.
(click for full documentation)
resource_id
int
---
Casa Sole (155470)
Casa Scim (155471)
Mountain Villa (156148)
Cima Rustico (160405)
If you specify resource ID only coupons which can be used for this resource will be listed.
site_id
int
Setting site_id and not specifying any resource_id will list coupons compatible with multiple resources. If your api key is valid for a single site, you can leave this empty. When using a metasite api key, you can specify a site to list the coupons from that site only. You can also use a special value
all
which will list coupons on the site level for all the sites belonging to the meta site.
coupon_code
string
You can enter a coupon code if you want to list only coupons with this code.
email
string
You can enter an email address if you want to list only coupons purchased for this email address.
check_if_valid
bool
---
true
false
If true, only coupons which can still be used are returned. This basically checks if the amount is greater than 0 and for the 'valid for given number of days' coupon type, the valid-until date is checked against the rental_time parameter (only if passed)
include_reservations
bool
---
true
false
If true, all reservations for which given coupon was used will be returned in the results
include_usage_data
bool
---
true
false
If true, the amount of the coupon that was already used (amount_used) and the last time the coupon was used (latest_usage_time) will be returned in the results
rental_time
DateTime (date part)
DateTime (time part)
If passed AND if check_if_valid is true, only coupons which can still be used at the time passed in this parameter will be returned. Please note that Planyo checks if the rental's end time lies within the coupon's validity date.
type
int
If passed, only coupons matching the specified type will be returned. If not specified, the function will return coupons of all types. The allowed values are: 1 - Prepaid amount, 2 - Number of hours, 3 - Number of entries, 4 - Valid for given number of days, 5 - Discount valid for given number of days.
page
int
Zero-based page number. The default is 0. Each page lists max 5000 coupons. Note: you can change the page size (max 5000) with the page_size parameter
language
string
---
Afrikaans (AF)
български (BG)
Català (CA)
Čeština (CS)
Dansk (DA)
Deutsch (DE)
Eesti keel (ET)
English (EN)
Español (ES)
Føroyskt (FO)
Français (FR)
Hrvatski (HR)
Íslenska (IS)
Italiano (IT)
Kalaallisut (KL)
Lietuvių kalba (LT)
Magyar (HU)
Nederlands (NL)
Norsk (NO)
Polski (PL)
Português (PT)
Português brasileiro (BR)
Română (RO)
Suomi (FI)
Slovenčina (SK)
Slovenski (SL)
Svenska (SV)
Euskara (EU)
Ελληνικά (EL)
한국어 (KO)
日本語 (JA)
Русский (RU)
繁體中文 (TW)
Tiếng Việt (VI)
Український (UA)
ภาษาไทย (TH)
हिन्दी (HI)
اَلْعَرَبِيَّةُ (AR)
by specifying a 2-letter (ISO 639-1) language code (all capital letters e.g. EN, DE, FR, ES, IT) you can change the language of the text values returned
api_key
string
*
your API key -
Click here to get your key
*
- Campo obbligatorio