Close fiscal day (Z report)
POST https://pos.paysera.com/eapi/v1/cash-registers/{number}/close-fiscal-day
Close the current fiscal day for the cash register, generating a Z report.
The response returns the id of the financial document that was created. Use it with Get details of fiscal day to retrieve the report itself, or find it through List financial documents.
Authorization​
This endpoint requires a Personal Access Token, sent as a Bearer token.
To obtain one, your account needs API permission. Once granted, go to /user/settings in your POS account and create a personal access token.
Authorization Header Format:
Authorization: Bearer YOUR_ACCESS_TOKEN
Example:
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...
For more details, see the Authentication section.
Parameters​
Path Parameters​
| Name | Type | Required | Description |
|---|---|---|---|
number | string | ✓ | The cash register registration number |
Errors​
This endpoint may return the following errors:
400 - Bad Request​
The document could not be submitted to the fiscal service.
This error is resulted by the fiscal service rejecting the document (code 1015).
401 - Unauthorized​
Unauthorized
This error was produced by providing incorrect credentials.
403 - Forbidden​
Forbidden
This error indicates you don't have permission to access this resource.
404 - Not Found​
Cash register not found
This error indicates the requested resource was not found.
500 - Internal Server Error​
Internal server error
Example​
Request​
POST https://pos.paysera.com/eapi/v1/cash-registers/{number}/close-fiscal-day
Authorization: Bearer YOUR_ACCESS_TOKEN
Response​
{
"success": true,
"financialDocumentId": 123
}
AUTHORIZATION: HTTP
REQUEST
RESPONSE
{
"success": true,
"financialDocumentId": 123
}