Get a list of order fees

Content

Resource URL

https://apps.ticketmatic.com/api/1/{accountname}/settings/ticketsales/orderfees

Example

Request

 1use Ticketmatic\Endpoints\Settings\Ticketsales\Orderfees;
 2
 3$result = Orderfees::getlist($client, array(
 4    "filter" => "SELECT id FROM tm.orderfee WHERE createdts > (now() - INTERVAL '1 year')",
 5    "includearchived" => true,
 6    "lastupdatesince" => "2014-09-26 15:24:36",
 7));
 8
 9// The parameters array is optional, it can be omitted when empty.
10$result = Orderfees::getlist($client);

Response

 1object(Ticketmatic\Endpoints\Settings\Ticketsales\OrderfeesList) (1) {
 2  ["data"]=>
 3  array(1) {
 4    [0]=>
 5    object(\Ticketmatic\Model\OrderFee) (7) {
 6      ["id"]=>
 7      int(0)
 8      ["typeid"]=>
 9      int(0)
10      ["name"]=>
11      string(12) "Payment cost"
12      ["isarchived"]=>
13      bool(false)
14      ["archivedts"]=>
15      object(\DateTime) (3) {
16        ["date"]=>
17        string(26) "2014-09-26 15:24:36.000000"
18        ["timezone_type"]=>
19        int(3)
20        ["timezone"]=>
21        string(3) "UTC"
22      }
23      ["createdts"]=>
24      object(\DateTime) (3) {
25        ["date"]=>
26        string(26) "2014-09-26 15:24:36.000000"
27        ["timezone_type"]=>
28        int(3)
29        ["timezone"]=>
30        string(3) "UTC"
31      }
32      ["lastupdatets"]=>
33      object(\DateTime) (3) {
34        ["date"]=>
35        string(26) "2014-09-26 15:24:36.000000"
36        ["timezone_type"]=>
37        int(3)
38        ["timezone"]=>
39        string(3) "UTC"
40      }
41    }
42  }
43}

Parameters

FieldDescription
filter
        </td>
        <td class="description">
            <p>Filter the returned items by specifying a query on the public datamodel that returns the ids.</p> 
            <strong>Example value:</strong><code>&#34;SELECT id FROM tm.orderfee WHERE createdts &gt; (now() - INTERVAL &#39;1 year&#39;)&#34;</code>
        </td>
    </tr><tr>
        <td class="field">
            <div class="name">includearchived</div>
            
        </td>
        <td class="description">
            <p>If this parameter is true, archived items will be returned as well.</p> 
            <strong>Example value:</strong><code>true</code>
        </td>
    </tr><tr>
        <td class="field">
            <div class="name">lastupdatesince</div>
            
        </td>
        <td class="description">
            <p>All items that were updated since this timestamp will be returned. Timestamp should be passed in <code>YYYY-MM-DD hh:mm:ss</code> format.</p> 
            <strong>Example value:</strong><code>&#34;2014-09-26 15:24:36&#34;</code>
        </td>
    </tr>
</tbody>

Type reference: OrderFeeQuery

Result fields

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

FieldDescription
id
int

Unique ID

Example value:123
typeid
int

Type of the order fee. Can be Automatic (2401), Script (2402) or Manual (2403)

Example value:2401
name

Name for the order fee

Example value:"Payment cost"
isarchived
bool

Whether or not this item is archived

archivedts
timestamp

Archived timestamp

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

Created timestamp

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

Last updated timestamp

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

Type reference: OrderFee[]