Purge orders

Content

Resource URL

https://apps.ticketmatic.com/api/1/{accountname}/orders/purge

Description

Purge all orders. This is only possible for test or staging accounts.

Example

Request

 1use Ticketmatic\Endpoints\Orders;
 2
 3$result = Orders::purge($client, array(
 4    "contacts" => true,
 5    "createdsince" => "2015-03-01 20:00:00",
 6    "events" => true,
 7));
 8
 9// The parameters array is optional, it can be omitted when empty.
10$result = Orders::purge($client);

Request

 1import (
 2    "github.com/ticketmatic/tm-go/ticketmatic"
 3    "github.com/ticketmatic/tm-go/ticketmatic/orders"
 4)
 5
 6result, err := orders.Purge(client, &ticketmatic.PurgeOrdersRequest{
 7    Contacts: true,
 8    Createdsince: "2015-03-01 20:00:00",
 9    Events: true,
10})
11
12// The query object is optional, it can be omitted when empty.
13result, err := orders.Purge(client, nil)

Request

1POST /api/1/{accountname}/orders/purge HTTP/1.1

Parameters

FieldDescription
contacts
required

Also purge contacts

Example value:true
createdsince
required

Only purge orders created since this timestamp

Example value:"2015-03-01 20:00:00"
events
required

Also purge events (incl. vouchers, products and bundles)

Example value:true

Type reference: PurgeOrdersRequest