I'm creating events through the API ( & Eventbrite php library) and need to set refund_policy.
Currently I have the following code
$eventParams = array(
'event.name.html' => $name,
'event.description.html' => $event_html_description,
'event.start.utc' => $startdatetime,
'event.start.timezone' => $time_zone,
'event.end.utc' => $enddatetime,
'event.end.timezone' => $time_zone ,
'event.currency' => $currency,
'event.listed' => true,
'event.logo_id'=> $imageId,
'event.capacity' => 10,
//'event.refund_policy' => 'no_refunds', // error when I uncomment this line
);
When I uncomment the last line I get this error:
create event result: {"status_code":400,"error_description":"There are errors with your arguments: event.refund_policy - Unknown parameter","error":"ARGUMENTS_ERROR","description":""}
When I comment out the last like the create event API call works.
Please help if you know how to set the "refund_policy" for an event.
Thanks