Get a list of ticketsalessetups

Content

Resource URL

https://apps.ticketmatic.com/api/1/{accountname}/settings/system/ticketsalessetups

Example

Request

1use Ticketmatic\Endpoints\Settings\System\Ticketsalessetups;
2
3$result = Ticketsalessetups::getlist($client, array(
4    "filter" => "SELECT id FROM conf.ticketsalessetup WHERE integrated=true",
5    "lastupdatesince" => "2014-09-26 15:24:36",
6));
7
8// The parameters array is optional, it can be omitted when empty.
9$result = Ticketsalessetups::getlist($client);

Response

 1object(Ticketmatic\Endpoints\Settings\System\TicketsalessetupsList) (1) {
 2  ["data"]=>
 3  array(1) {
 4    [0]=>
 5    object(\Ticketmatic\Model\Ticketsalessetup) (5) {
 6      ["id"]=>
 7      int(0)
 8      ["name"]=>
 9      string(8) "Websales"
10      ["code"]=>
11      string(36) "d6f72313-bc7a-4dca-a3fc-371057f5f99f"
12      ["integrated"]=>
13      bool(false)
14      ["widgetparams"]=>
15      array(2) {
16        ["oncompletion"]=>
17        string(11) "orderdetail"
18        ["returnurl"]=>
19        string(27) "https://www.ticketmatic.com"
20      }
21    }
22  }
23}

Request

 1import (
 2    "github.com/ticketmatic/tm-go/ticketmatic"
 3    "github.com/ticketmatic/tm-go/ticketmatic/settings/system/ticketsalessetups"
 4)
 5
 6result, err := ticketsalessetups.Getlist(client, &ticketmatic.TicketsalessetupQuery{
 7    Filter: "SELECT id FROM conf.ticketsalessetup WHERE integrated=true",
 8    Lastupdatesince: ticketmatic.NewTime(ticketmatic.MustParseTime("2014-09-26 15:24:36")),
 9})
10
11// The query object is optional, it can be omitted when empty.
12result, err := ticketsalessetups.Getlist(client, nil)

Response

 1result := ticketsalessetups.&List{
 2    Data: []*ticketmatic.Ticketsalessetup{
 3        &ticketmatic.Ticketsalessetup{
 4            Id: 123,
 5            Name: "Websales",
 6            Code: "d6f72313-bc7a-4dca-a3fc-371057f5f99f",
 7            Integrated: false,
 8            Widgetparams: map[string]string{
 9                "oncompletion": "orderdetail",
10                "returnurl": "https://www.ticketmatic.com",
11            },
12        },
13    },
14}

Request

1GET /api/1/{accountname}/settings/system/ticketsalessetups HTTP/1.1

Response

 1HTTP/1.1 200 OK
 2Content-Type: application/json
 3
 4{
 5    "data": [
 6        {
 7            "id": 123,
 8            "name": "Websales",
 9            "code": "d6f72313-bc7a-4dca-a3fc-371057f5f99f",
10            "integrated": false,
11            "widgetparams": {
12                "oncompletion": "orderdetail",
13                "returnurl": "https://www.ticketmatic.com"
14            }
15        }
16    ]
17}

Parameters

FieldDescription
filter
string

Filter the returned items by specifying a query on the public datamodel that returns the ids.

Example value:"SELECT id FROM conf.ticketsalessetup WHERE integrated=true"
lastupdatesince
timestamp

All items that were updated since this timestamp will be returned. Timestamp should be passed in YYYY-MM-DD hh:mm:ss format.

Example value:"2014-09-26 15:24:36"

Type reference: TicketsalessetupQuery

Result fields

This call returns an object with an array of objects in the data field.

FieldDescription
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[]