> For the complete documentation index, see [llms.txt](https://docs.iyzico.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.iyzico.com/en/products/physical-pos/terminal-api-integration/vuk-507-services/end-of-day.md).

# End Of Day

This service performs the end-of-day (**batch close**) operation for the GMU device.

As a result of the operation, a summary report is returned based on the acquirer.

#### **Retrieve End of Day Report**

## POST /v2/terminal-host/gmu/eod

> Performs the end-of-day batch close operation for the GMU device. The financial day of the device is closed and an acquirer-based summary report is returned.<br>

```json
{"openapi":"3.0.3","info":{"title":"Terminal API - GMU Payment and Transaction Services","version":"1.0.0"},"tags":[{"name":"GMU Payment","description":"GMU sale and transaction services"}],"servers":[{"url":"https://sandbox-api.iyzipay.com","description":"Sandbox Environment"},{"url":"https://api.iyzipay.com","description":"Live Environment"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Bearer Token authentication is performed using the access token."}},"parameters":{"ContentTypeHeader":{"name":"Content-Type","in":"header","required":true,"schema":{"type":"string"},"description":"Content type"}},"schemas":{"GmuEodRequest":{"type":"object","required":["deviceUniqueId"],"properties":{"locale":{"type":"string","description":"Language code. Default is TR"},"conversationId":{"type":"string","description":"Correlation ID"},"deviceUniqueId":{"type":"string","description":"Device unique ID. Maximum 64 characters"},"useSummary":{"type":"boolean","description":"Whether summary end-of-day should be used"}}},"GmuEodResponse":{"type":"object","properties":{"status":{"type":"string","description":"success or failure"},"errorCode":{"type":"string","description":"Error code"},"errorMessage":{"type":"string","description":"Error details"},"conversationId":{"type":"string","description":"Correlation ID"},"systemTime":{"type":"integer","description":"Timestamp"},"batchNo":{"type":"string","description":"Closed batch number"},"resultMessage":{"type":"string","description":"End-of-day result message"},"tails":{"type":"array","description":"Acquirer-based end-of-day summary information","items":{"$ref":"#/components/schemas/TailDto"}}}},"TailDto":{"type":"object","properties":{"acquirerId":{"type":"string","description":"Acquirer bank ID"},"terminalId":{"type":"string","description":"Terminal ID"},"bankMerchantId":{"type":"string","description":"Bank merchant number"},"totalTransactionAmount":{"type":"string","description":"Total transaction amount"},"totalTransactionCount":{"type":"string","description":"Total transaction count"},"acquirerName":{"type":"string","description":"Bank name"},"batchNo":{"type":"string","description":"Batch number"},"responseCode":{"type":"string","description":"Acquirer response code"},"internalErrorCode":{"type":"string","nullable":true,"description":"Internal error code if present"}}}}},"paths":{"/v2/terminal-host/gmu/eod":{"post":{"tags":["GMU Payment"],"description":"Performs the end-of-day batch close operation for the GMU device. The financial day of the device is closed and an acquirer-based summary report is returned.\n","parameters":[{"$ref":"#/components/parameters/ContentTypeHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GmuEodRequest"}}}},"responses":{"200":{"description":"Successful end-of-day result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GmuEodResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GmuEodResponse"}}}}}}}}}
```
