> This page is for API Reference.

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

# Retrieve End of Day report by specifying (ChainNo, StoreNo, and SessionNo).

GET https://api.fiftytwo.com/receipt/endofday/v1/chain/{chainNo}/store/{storeNo}/session/{sessionNo}

An End of Day (EoD) report contains aggregated information about a session (that is a sales day) identified by a sessionNo.
The report contains:
Turnover per article groupPayments per payment typePayments per card typeAccount paymentsTotal flow in (amount added to tills)Total flow out (amount removed from tills)Bank transfers (local and foreign currency)System discrepancy (difference between sales and payments)Cash drawer discrepancy (expected vs. actual amounts in cash drawers)

Reference: https://fiftytwo-demo.ferndocs.com/api/transactions/receipt-reference/end-of-day-reports-from-fiftytwo/retrieve-end-of-day-report-by-specifying-chain-no-store-no-and-session-no

## Request

### Path parameters

- `chainNo` (integer, required) — Chain ID
- `storeNo` (integer, required) — Store ID
- `sessionNo` (integer, required) — Method returns a list of reports starting from sessionNo+1. The client should keep the last received sessionNo. If no reports are found, an empty array is returned.

### Query parameters

- `limit` (integer, optional, default: 1) — Limits how many End of Day reports to return. Method returns End of Day reports up to the specified limit, by default one report at a time. We recommend that you don't specify a limit of more than 100.

## Response

### 200

Success

## Examples

**Response**

```json
{}
```

**SDK Code**

```python
import requests

url = "https://api.fiftytwo.com/receipt/endofday/v1/chain/1/store/1/session/1"

response = requests.get(url)

print(response.json())
```

```javascript
const url = 'https://api.fiftytwo.com/receipt/endofday/v1/chain/1/store/1/session/1';
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://api.fiftytwo.com/receipt/endofday/v1/chain/1/store/1/session/1"

	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://api.fiftytwo.com/receipt/endofday/v1/chain/1/store/1/session/1")

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://api.fiftytwo.com/receipt/endofday/v1/chain/1/store/1/session/1")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.fiftytwo.com/receipt/endofday/v1/chain/1/store/1/session/1');

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

```csharp
using RestSharp;

var client = new RestClient("https://api.fiftytwo.com/receipt/endofday/v1/chain/1/store/1/session/1");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "https://api.fiftytwo.com/receipt/endofday/v1/chain/1/store/1/session/1")! 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()
```