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

# Get All Payment ticket

GET https://heimdall.eka.io/#get8

### GET /apis/external/paymentTicket/getAll

This endpoint retrieves a list of payment tickets based on the specified date range. It allows users to filter the results by creation date, providing an efficient way to access payment ticket data.

#### Query Parameters

- **dateType** (string): Specifies the type of date to filter by. In this case, it is set to `created`.
    
- **startDate** (integer): The start date for filtering payment tickets, represented as a Unix timestamp.
    
- **endDate** (integer): The end date for filtering payment tickets, also represented as a Unix timestamp.
    
- **offset** (integer): The offset for pagination, indicating the starting point of the results to be returned.
    

#### Expected Response Format

- **Status**: 200 OK
    
- **Content-Type**: application/json
    
- **Response Body**:
    
    - **paymentTickets** (array): An array containing the list of payment tickets. This will be empty if no tickets match the criteria.
        
    - **total** (integer): The total number of payment tickets found.
        
    - **currentPage** (integer): The current page number of the results.
        
    - **totalPages** (integer): The total number of pages available based on the pagination.
        

This endpoint does not require a request body, as all necessary parameters are provided via the query string.

Reference: https://open-api-docs.dice.tech/dice-standardized-ap-is-v-2-copy/payment-ticket/get-all-payment-ticket

## Servers

- `https://heimdall.eka.io` (https://heimdall.eka.io, default)
- `https://heimdall.eka.ioapis` (https://heimdall.eka.ioapis)

## Response

### 200

OK

## Examples

**Response**

```json
{}
```

**SDK Code**

```python
import requests

url = "https://heimdall.eka.io/#get8"

response = requests.get(url)

print(response.json())
```

```javascript
const url = 'https://heimdall.eka.io/#get8';
const options = {method: 'GET'};

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://heimdall.eka.io/#get8"

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

	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://heimdall.eka.io/#get8")

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

request = Net::HTTP::Get.new(url)

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://heimdall.eka.io/#get8")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://heimdall.eka.io/#get8');

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

```csharp
using RestSharp;

var client = new RestClient("https://heimdall.eka.io/#get8");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "https://heimdall.eka.io/#get8")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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()
```