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

# POS (AND, not OR)

GET https://

**Do not Send.** Documentation only. This collection is POS only.

Lucky Tom does **not** offer a menu of auth methods. POS requires **identity + Bearer + HMAC together** (AND, not OR).

| Header                                  | Required | Meaning                                                          |
| --------------------------------------- | -------- | ---------------------------------------------------------------- |
| `X-Lucky-Tom-Partner-Id`                | Yes      | Public partner id                                                |
| `Authorization: Bearer {client_secret}` | Yes      | Static onboarding secret, not OAuth                              |
| `X-Lucky-Tom-Timestamp`                 | Yes      | Unix milliseconds; Pre-request Script overwrites the placeholder |
| `X-Lucky-Tom-Signature`                 | Yes      | HMAC-SHA256 of the canonical string with `hmacSecretKey`         |
| `X-Lucky-Tom-Key-Id`                    | No       | During HMAC rotation                                             |

Canonical string (UTF-8, four lines, no trailing newline after the body hash):

```
{METHOD}
{pathAndQuery}
{timestamp}
{sha256HexOfRawBody}
```

Empty body SHA-256 is always `e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855`. Clock skew ±5 minutes → `422 hmac-skew`. Identity failure → `401 unauthorized`. Signature failure → `422 hmac-invalid`. POS `{countryId}` ≠ credential → `403 country-mismatch`.

`client_secret` and `HMAC_SECRET_KEY` are **two different secrets**. `Idempotency-Key` is **not** in the canonical string.

## Postman on this collection

1. Select **Lucky Tom UAT** or **Lucky Tom Production**.
2. Set `hmacSecretKey` (never equal to `clientSecret`).
3. Set `partnerId` + `clientSecret`.
4. On Send, the collection Pre-request Script overwrites Timestamp/Signature for `/v1/api/pos/` only.
5. Sign the exact JSON bytes you send. Pretty-print changes the signature.
6. Retry timeouts with a fresh timestamp/signature and the **same** idempotency key + body.

Postman Authorization tab is unused on purpose: configuring Bearer there would look like an alternative to HMAC.

Game Provider and SeamlessWallet live in **Lucky-Tom Casino**. The full worked HMAC example is in `docs/api/hmac.md`.

Reference: https://pos-api-docs.lucky-tom.com/lucky-tom-pos-api/authentication/pos-and-not-or

## Response

### 200

Successful response

## Examples

**Response**

```json
{}
```

**SDK Code**

```python
import requests

url = "https://https/"

response = requests.get(url)

print(response.json())
```

```javascript
const url = 'https://https/';
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://https/"

	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://https/")

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://https/")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://https/');

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

```csharp
using RestSharp;

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

```swift
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "https://https/")! 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()
```