API section
Receipts
Receipts through the cloud: a site, CRM or bot prints a receipt on an account register; a queue while the register is offline, the result and a webhook, accounting by point.
| GET | /api/v1/receipts | Recent receipts |
| POST | /api/v1/receipts | Print a receipt on an account register |
| GET | /api/v1/receipts/{id} | Receipt |
| GET | /api/v1/receipts/stats | Receipt accounting by point for a month |
Recent receipts#
/api/v1/receiptsNewest first; deviceId — only this register, idempotencyKey — find a receipt by your key
Parameters
| Name | In | Type | Description |
|---|---|---|---|
idempotencyKey | query | string | |
deviceId | query | integer int64 | |
limit | query | integer int32 |
Response 200 application/json
Array · ReceiptView
idinteger int64idempotencyKeystringstatusstringdeviceIdinteger int64registerinteger int32totalinteger int64attemptsinteger int32createdAtstring date-timedoneAtstring date-timeresultResult10 fields · Result
fdNumberinteger int64fiscalSignstringshiftNumberinteger int32receiptNumberinteger int32fnNumberstringregistrationNumberstringdateTimestringqrCodestringfnsUrlstringlinkstring
errorError2 fields · Error
codestringmessagestring
Errors — problem+json with a code field, see error codes.
Request example
curl 'https://cloud.hw-connector.ru/api/v1/receipts' \
-H 'X-Api-Key: hwk_…'A receipt — as in the agent API (POST /api/v1/registers/{n}/receipts). New — 202, the same key — 200 with the same receipt, the same key with another receipt — 409. Register offline — the receipt waits in the queue up to cloud.receipts.ttl-hours; Prefer: wait=N — wait for the result up to 60 s. Trial plan over the limit — 402
Parameters
| Name | In | Type | Description |
|---|---|---|---|
Idempotency-Key | header | string | |
Prefer | header | string |
Request body application/json required
Fields · ReceiptRequest
idempotencyKeystringfrom 0to 100deviceIdinteger int64registerinteger int32from 1to 99receiptobjectrequiredcallbackUrlstringpattern:https?://.+from 0to 500
{
"idempotencyKey": "string",
"deviceId": 1,
"register": 1,
"receipt": {},
"callbackUrl": "string"
}Response 200 application/json
Fields · ReceiptView
idinteger int64idempotencyKeystringstatusstringdeviceIdinteger int64registerinteger int32totalinteger int64attemptsinteger int32createdAtstring date-timedoneAtstring date-timeresultResult10 fields · Result
fdNumberinteger int64fiscalSignstringshiftNumberinteger int32receiptNumberinteger int32fnNumberstringregistrationNumberstringdateTimestringqrCodestringfnsUrlstringlinkstring
errorError2 fields · Error
codestringmessagestring
Errors — problem+json with a code field, see error codes.
Request example
curl -X POST 'https://cloud.hw-connector.ru/api/v1/receipts' \
-H 'X-Api-Key: hwk_…' \
-H 'Idempotency-Key: $(uuidgen)' \
-H 'Prefer: wait=30' \
-H 'Content-Type: application/json' \
--data '{"idempotencyKey":"string","deviceId":1,"register":1,"receipt":{},"callbackUrl":"string"}'Receipt#
/api/v1/receipts/{id}status: QUEUED, SENDING, DONE, FAILED, UNKNOWN, EXPIRED; result — FD number, fiscal sign, receipt link for the customer
Parameters
| Name | In | Type | Description |
|---|---|---|---|
idrequired | path | integer int64 |
Response 200 application/json
Fields · ReceiptView
idinteger int64idempotencyKeystringstatusstringdeviceIdinteger int64registerinteger int32totalinteger int64attemptsinteger int32createdAtstring date-timedoneAtstring date-timeresultResult10 fields · Result
fdNumberinteger int64fiscalSignstringshiftNumberinteger int32receiptNumberinteger int32fnNumberstringregistrationNumberstringdateTimestringqrCodestringfnsUrlstringlinkstring
errorError2 fields · Error
codestringmessagestring
Errors — problem+json with a code field, see error codes.
Request example
curl 'https://cloud.hw-connector.ru/api/v1/receipts/42' \
-H 'X-Api-Key: hwk_…'Receipt accounting by point for a month#
/api/v1/receipts/statsHow many receipts and for what sum each register printed, the plan and the trial limit; month=2026-11
Parameters
| Name | In | Type | Description |
|---|---|---|---|
month | query | string |
Response 200 application/json
Fields · Stats
monthstringplanstringpaidPointsinteger int32trialMonthlyinteger int32trialUsedinteger int64pointsinteger int64doneinteger int64failedinteger int64totalinteger int64byPointarray of PointStats6 fields · PointStats
deviceIdinteger int64namestringdoneinteger int64failedinteger int64pendinginteger int64totalinteger int64
Errors — problem+json with a code field, see error codes.
Request example
curl 'https://cloud.hw-connector.ru/api/v1/receipts/stats' \
-H 'X-Api-Key: hwk_…'