> 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-509-services/end-of-day.md).

# End of Day

### End Of Day

## POST /v2/terminal-host/eod

> This service runs the end-of-day (EOD) operation for the terminal and returns totals.\
> Example: "End of day is executed and a summary is reported via the totals/batchNo/resultMessage fields."\
> \
> Authorization (Bearer Token):\
> \- The token value is the access\_token returned by the OAuth token service.\
> \- Header format:\
> &#x20; Authorization: Bearer {access\_token}<br>

```json
{"openapi":"3.0.3","info":{"title":"Terminal API – Outside Flow","version":"1.0.3"},"tags":[{"name":"Terminal Host"}],"servers":[{"url":"https://api.iyzipay.com"},{"url":"https://sandbox-api.iyzipay.com"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Authorization with Bearer Token.\nHeader format:\nAuthorization: Bearer {access_token}\n\nThe access_token is generated by the OAuth token service and is used in Terminal Host services.\n"}},"schemas":{"EndOfDayRequest":{"type":"object","required":["conversationId","locale","deviceUniqueId"],"properties":{"conversationId":{"type":"string","description":"ID value used to match the request and response. It is determined by the merchant, and the value sent in the request is returned in the response."},"locale":{"type":"string","description":"Request language.","enum":["tr","en"]},"deviceUniqueId":{"type":"string","description":"Unique identifier defined for the terminal/device where the transaction is performed."},"useSummary":{"type":"boolean","description":"If sent as true, transaction details are shown on the printed slip. If sent as false, all transaction details are not shown on the slip."}}},"TerminalEodSuccessResponse":{"type":"object","properties":{"status":{"type":"string","description":"Transaction result. (SUCCESS, FAILURE, etc.)"},"errorCode":{"type":"string","description":"Error code returned if the transaction fails. It is empty for successful transactions."},"errorMessage":{"type":"string","description":"Descriptive error message returned in case of an error."},"errorGroup":{"type":"string","description":"Group/category information of the error."},"locale":{"type":"string","description":"Response language","enum":["tr","en"]},"systemTime":{"type":"integer","format":"int64","description":"Unix timestamp value of when the transaction was processed in iyzico systems."},"conversationId":{"type":"string","description":"Unique value sent by the merchant for request-response matching and transaction tracking."},"totals":{"type":"array","items":{"$ref":"#/components/schemas/TerminalEodTotalsItem"}},"batchNo":{"type":"string","description":"Batch (end-of-day) number that includes the transaction."},"resultMessage":{"type":"string","description":"Result Message"}}},"TerminalEodTotalsItem":{"type":"object","properties":{"acquirerId":{"type":"string","description":"Institution ID of the acquiring bank that processes the transaction."},"terminalId":{"type":"string","description":"Terminal Number"},"bankMerchantId":{"type":"string","description":"Terminal number defined for the terminal at the bank."},"totalTransactionAmount":{"type":"string","description":"Total amount of successful transactions within the relevant batch."},"totalTransactionCount":{"type":"string","description":"Number of successful transactions within the relevant batch."},"acquirerName":{"type":"string","description":"Name of the acquiring bank that processes the transaction."},"batchNo":{"type":"string","description":"Batch (end-of-day) number that includes the transaction."},"responseCode":{"type":"string","description":"Result code returned by the bank/host for the end-of-day (EOD) transaction. Usually 00 means success."},"internalErrorCode":{"type":"string","description":"Error code generated in iyzico internal systems during the end-of-day transaction. It is populated only in error cases."}}},"TerminalFailureResponse":{"type":"object","properties":{"status":{"type":"string","description":"Transaction result. (SUCCESS, FAILURE, etc.)"},"errorCode":{"type":"string","description":"Error code returned if the transaction fails. It is empty for successful transactions."},"errorMessage":{"type":"string","description":"Descriptive error message returned in case of an error."},"errorGroup":{"type":"string","description":"Group/category information of the error."},"systemTime":{"type":"integer","format":"int64","description":"Unix timestamp value of when the transaction was processed in iyzico systems."},"consumerErrorMessage":{"type":"string","description":"Error message generated for end users without technical details."}}}}},"paths":{"/v2/terminal-host/eod":{"post":{"tags":["Terminal Host"],"description":"This service runs the end-of-day (EOD) operation for the terminal and returns totals.\nExample: \"End of day is executed and a summary is reported via the totals/batchNo/resultMessage fields.\"\n\nAuthorization (Bearer Token):\n- The token value is the access_token returned by the OAuth token service.\n- Header format:\n  Authorization: Bearer {access_token}\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndOfDayRequest"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TerminalEodSuccessResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TerminalFailureResponse"}}}}}}}}}
```

### Sample Collection

<table data-view="cards"><thead><tr><th></th></tr></thead><tbody><tr><td><a href="https://www.postman.com/iyzico/iyzico/request/47010871-94d14bfe-2213-4021-8143-60a7a4d37d89">Postman</a></td></tr></tbody></table>
