[DEPRECATED] Export tickets to PDF

Content

Resource URL

https://apps.ticketmatic.com/api/1/{accountname}/orders/{id}/tickets/pdf

Description

DEPRECATED: Use /{id}/pdf instead.

Example

Request

 1use Ticketmatic\Endpoints\Orders;
 2
 3$result = Orders::postticketspdf($client, $id, array(
 4    "tickets" => array(
 5        1,
 6        2,
 7        3,
 8    ),
 9    "vouchercodes" => array(
10        1,
11        2,
12        3,
13    ),
14));

Response

1object(\Ticketmatic\Model\Url) (1) {
2  ["url"]=>
3  string(26) "http://www.ticketmatic.com"
4}

Request

 1import (
 2    "github.com/ticketmatic/tm-go/ticketmatic"
 3    "github.com/ticketmatic/tm-go/ticketmatic/orders"
 4)
 5
 6result, err := orders.Postticketspdf(client, id, &ticketmatic.TicketsPdfRequest{
 7    Tickets: []int64{
 8        1,
 9        2,
10        3,
11    },
12    Vouchercodes: []int64{
13        1,
14        2,
15        3,
16    },
17})

Response

1result := &ticketmatic.Url{
2    Url: "http://www.ticketmatic.com",
3}

Request

1POST /api/1/{accountname}/orders/{id}/tickets/pdf HTTP/1.1
2Content-Type: application/json
3
4{
5    "tickets": [ 1, 2, 3 ],
6    "vouchercodes": [ 1, 2, 3 ]
7}

Response

1HTTP/1.1 200 OK
2Content-Type: application/json
3
4{
5    "url": "http://www.ticketmatic.com"
6}

Request body fields

FieldDescription
tickets
int[] 
(required)

Ticketids

Example value:[ 1, 2, 3 ]
vouchercodes
int[] 
(required)

Vouchercodeids

Example value:[ 1, 2, 3 ]

Type reference: TicketsPdfRequest

Result fields

FieldDescription
url
string

Url.

Example value:"http://www.ticketmatic.com"

Type reference: Url