Modify an existing ticketsalessetup
Content
Resource URL
https://apps.ticketmatic.com/api/1/{accountname}/settings/system/ticketsalessetups/{id}
Example
Request
1use Ticketmatic\Endpoints\Settings\System\Ticketsalessetups;
2
3$result = Ticketsalessetups::update($client, $id, array(
4 "name" => "Websales",
5 "code" => "d6f72313-bc7a-4dca-a3fc-371057f5f99f",
6 "integrated" => false,
7 "widgetparams" => array(
8 "oncompletion" => "orderdetail",
9 "returnurl" => "https://www.ticketmatic.com",
10 ),
11));
Response
1object(\Ticketmatic\Model\Ticketsalessetup) (5) {
2 ["id"]=>
3 int(0)
4 ["name"]=>
5 string(8) "Websales"
6 ["code"]=>
7 string(36) "d6f72313-bc7a-4dca-a3fc-371057f5f99f"
8 ["integrated"]=>
9 bool(false)
10 ["widgetparams"]=>
11 array(2) {
12 ["oncompletion"]=>
13 string(11) "orderdetail"
14 ["returnurl"]=>
15 string(27) "https://www.ticketmatic.com"
16 }
17}
Request body fields
Field | Description |
---|---|
name string (required) | Name Example value:"Websales" |
code string (required) | Unique code used for the public link to the ticketsalessetup docs Example value:"d6f72313-bc7a-4dca-a3fc-371057f5f99f" |
integrated bool (required) | Whether or not the ticket sales setup is integrated with the website
|
Type reference: Ticketsalessetup
Result fields
Field | Description |
---|---|
id int | Unique ID Example value:123 |
name string | Name Example value:"Websales" |
code string | Unique code used for the public link to the ticketsalessetup docs Example value:"d6f72313-bc7a-4dca-a3fc-371057f5f99f" |
integrated bool | Whether or not the ticket sales setup is integrated with the website |
widgetparams map<string, string> | Widget parameters used for all flows in this setup Example value:{ "oncompletion": "orderdetail", "returnurl": "https://www.ticketmatic.com" } |
Type reference: Ticketsalessetup