Funkcje Planyo
Cennik
Integracje
Kontakt
Darmowy 30-dniowy test
Moje konto
Wyloguj
Polski
English
Français
Deutsch
Italiano
Español
Polski
Norsk
Holiday Apartment Demo
Kalendarz: 51045
Dashboard
Rezerwacje
Ostatnio dodane rezerwacje
Nadchodzące rezerwacje
Oczekujące rezerwacje
Potwierdzone
W trakcie wynajmu
Rezerwacje wygasłe
Zarejestrowany
Niezakończone
Skasowane przez użytkownika
Skasowane przez administratora
Historia aktywności
Rezerwacje zmodyfikowana przez klienta
Konflikty
Oferty cenowe
Zablokowane rezerwacje
Faktury
Oceny
Wyszukiwanie
Harmonogram
Dostępność
Lista klientów
Użytkownicy z rezerwacjami
Użytkownicy dodani przez administratora / Dodaj nowego użytkownika
Zablokowani/zaufani użytkownicy
Importuj użytkowników
zobacz kupony
Abonament
Szybka konfiguracja
Ustawienia kalendarza
Informacje o firmie
Aktywne opcje
Płatności online
Ustawienia regionalne
Dodatkowe produkty
Dodatkowe dane rezerwacji
Edytuj ustawienia powiadomień (Email / SMS)
Menadżer cen
Wakacje zasobu
Ustawienia sezonowe
Vouchery
Kupony
Spersonalizowane tłumaczenia
Edytor CSS
Szablony
Znaczenia kolorów & Menadżer kolorów
Dodatkowe właściwości zasobów
Pokaż wszystkie...
Zasoby
Ustawienia zasobu
Lista zasobów
Resource search
Dane ogólne
Proces rezerwacji
Ustawienia związane z czasem
Zdjęcia
Vouchery
Pokaż wszystkie...
Dodaj nowy zasób
Dodaj nowy pakiet
Dodaj nowe zgrupowanie
Raporty
Integracja z Twoją stroną
Skanuj kod QR
Skrzynka odbiorcza
Pomoc
Wyloguj
API Playground - list_coupons
Wyszukiwanie
Zarezerwuj
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
*
- pole wymagane