> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://wt.hhr.systems/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://wt.hhr.systems/_mcp/server.

# Download all tickets

GET https://api.sar.worldticket.cloud/sms-gateway-service/tickets/confirmation/{rloc}/download

Download every ticket for a booking as a single ZIP of PDFs. Pass the record locator in the path.


Reference: https://wt.hhr.systems/hhr-ticketing-system-api/tickets/download

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /sms-gateway-service/tickets/confirmation/{rloc}/download:
    get:
      operationId: download
      summary: Download all tickets
      description: >
        Download every ticket for a booking as a single ZIP of PDFs. Pass the
        record locator in the path.
      tags:
        - Tickets
      parameters:
        - name: rloc
          in: path
          description: The booking's W1 record locator.
          required: true
          schema:
            type: string
        - name: mode
          in: query
          description: Which tickets to include.
          required: false
          schema:
            $ref: >-
              #/components/schemas/SmsGatewayServiceTicketsConfirmationRlocDownloadGetParametersMode
        - name: x-api-key
          in: header
          required: true
          schema:
            type: string
      responses:
        '200':
          description: A ZIP archive of ticket PDFs.
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
servers:
  - url: https://api.sar.worldticket.cloud
    description: Production
  - url: https://test-api.worldticket.net
    description: Test
components:
  schemas:
    SmsGatewayServiceTicketsConfirmationRlocDownloadGetParametersMode:
      type: string
      enum:
        - full
        - delta
        - legacy
      title: SmsGatewayServiceTicketsConfirmationRlocDownloadGetParametersMode

```

## Examples



**SDK Code**

```python
import requests

url = "https://api.sar.worldticket.cloud/sms-gateway-service/tickets/confirmation/rloc/download"

headers = {"x-api-key": "x-api-key"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.sar.worldticket.cloud/sms-gateway-service/tickets/confirmation/rloc/download';
const options = {method: 'GET', headers: {'x-api-key': 'x-api-key'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.sar.worldticket.cloud/sms-gateway-service/tickets/confirmation/rloc/download"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "x-api-key")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.sar.worldticket.cloud/sms-gateway-service/tickets/confirmation/rloc/download")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = 'x-api-key'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.sar.worldticket.cloud/sms-gateway-service/tickets/confirmation/rloc/download")
  .header("x-api-key", "x-api-key")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.sar.worldticket.cloud/sms-gateway-service/tickets/confirmation/rloc/download', [
  'headers' => [
    'x-api-key' => 'x-api-key',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.sar.worldticket.cloud/sms-gateway-service/tickets/confirmation/rloc/download");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "x-api-key");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["x-api-key": "x-api-key"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.sar.worldticket.cloud/sms-gateway-service/tickets/confirmation/rloc/download")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```