Referenca e API-sëKomandat
Read a command
GET
/v1/commands/{command_id}Authorization
fiskalizaKey fiskaliza:commands:readAuthorizationBearer <token>
An opaque Fiskaliza API key. Each operation lists the capabilities required on that key.
In: header
Scope: fiskaliza:commands:read
Path Parameters
command_id*string
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/commands/string"{ "success": true, "warnings": [ "string" ], "data": { "command": { "id": "string", "pos_id": "string", "external_id": "string", "type": "SALE", "sale_type": "STANDARD", "status": "PENDING", "issuance_mode": "ONLINE", "attempt_count": 0, "last_error": "string", "next_retry_at": "2019-08-24T14:15:22Z", "receipt_ready": true, "created_at": "2019-08-24T14:15:22Z", "coupon": { "coupon_id": 0, "daily_receipt_no": 0, "reference_no": 0, "verification_no": "string", "qr_payload": "string", "transaction_no": "string", "atk_message": "string", "issued_at": "2019-08-24T14:15:22Z", "transmitted_at": "2019-08-24T14:15:22Z" } } }}Cancel a sale in full POST
The sale being cancelled is the path's `sale_id`. The body carries no lines or totals: Fiskaliza copies that sale's lines, payments, tax groups, currency, and totals to build the exact reversal. `pos_id` is the POS that issues the cancellation. The cancellation coupon is issued immediately in the requested locale and returned as receipt_document.
Read a command's line items GET
Kept off the command reads so a list does not carry every line of every receipt.