API - Planyo Web Services - get_bundle_contents

Ti trovi qui: Planyo » Aiuto » API » get_bundle_contents

get_bundle_contents

Description:

This function returns the list of resources and coupons included in a bundle

Input:

resource_id int required
ID of the resource
method string required
must be set to get_bundle_contents
language string optional
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 required
your API key - Click here to get your key. If your API key uses a hash key, you must also include the parameters hash_key and hash_timestamp.

Output:

bundle_resources array
Array with the following keys: resource_id (ID of the included resource), resource_name, quantity_used, time_offset (in hours), duration (in hours), internal_price (set to 0 if not used)
bundle_coupons array
Array of coupon IDs included in the bundle

API playground:

Click here to test this function in the API playground.