API Playground - generate_coupon_payment_request

generate_coupon_payment_request


Use this function to add a new coupon to your site. (click for full documentation)

coupon_type_id

ID of the existing coupon type (coupon definition) for the site. You can find coupon types valid for your site on the Create coupons page.

holder_email

Email address of the coupon holder.

holder_name

Name of the coupon holder.

buyer_info

Info about the coupon buyer.

valid_with_email

If true, the coupon will be valid only with the specified email address. Note that at least one of the fields valid_with_email  and access_code needs to specified.

access_code

If specified, the code the needs to be used when using the coupon. Coupon code needs to contain at least one letter and one digit and be at least 8 characters long.

first_day_of_validity

Choose when the coupon validity should start. Leave it empty if it should start today. For example, you can have the coupon valid for 7 days, starting next Friday. E.g '2015-10-25'.

feedback_url

The url of the page on your website where you embedded the Planyo module/plugin. This will be used to create the url to the coupon payment form. If not specified, the value of the URL of the reservation page on your website entered on Settings / Integrate with my website / Integration settings will be used. If this is also empty, then the url of the Simple integration with template page on our domain will be used.

language

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

* - pole wymagane