{"info":{"_postman_id":"8789597d-625f-44c8-a1bf-b40934c73c5c","name":"Sign AT - AUSTRIA","description":"This collection should help you to test the most relevant requests of the fiskaly Sign API AT.\n\nIt holds a couple of examples on how we think a receipts should look like.\nHowever, consider other solutions might exist. The legally compliant implementation is the responsibility of the integrator.\n\nYou will get an overview of available requests for the following topics::\n\n* Authentication\n* Signature Creation Units \n* Cash Registers\n* Receipts\n* Data Exports\n\nThe full specifications can be found under [developer.fiskaly.com/api/rksv/v1](https://developer.fiskaly.com/api/rksv/v1/#tag/Authentication).\n\nWhen this collection is executed with Postman, important parts of the results will be stored in the current selected Postman environment.","schema":"https://schema.getpostman.com/json/collection/v2.1.0/collection.json","_exporter_id":"15221752","_collection_link":"https://interstellar-crater-566784.postman.co/workspace/Review-SIGN-AT---20-06-2023~fb3ff58a-8374-4b61-aa9c-e6c3b78fc46d/collection/15221752-8789597d-625f-44c8-a1bf-b40934c73c5c?action=share&creator=15221752&source=collection_link"},"item":[{"name":"Authentication","item":[{"name":"Authenticate API","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","var data = JSON.parse(responseBody);\r","pm.environment.set(\"token\", data.access_token);\r",""],"type":"text/javascript"}}],"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"api_key\": \"{{api_key}}\",\n    \"api_secret\": \"{{api_secret}}\"\n}"},"url":{"raw":"{{baseUrl}}/auth","host":["{{baseUrl}}"],"path":["auth"]},"description":"**[Authenticate API](https://developer.fiskaly.com/api/rksv/v1/#operation/authenticateApi)**\n\nTo access our API, you need to have a valid JWT token. This endpoint creates the token with your `api_key` and `api_secret`. \nIf you don't have an `api_key`, you can create one via the [fiskaly dashboard](https://dashboard.fiskaly.com).\nThe `api_secret` will be generated for you after you create the `api_key`.\nThe token must be sent with every following request in the `Authorization` header field using the `Bearer` authentication scheme.\nSee details [here](https://datatracker.ietf.org/doc/html/rfc6750#section-2.1)."},"response":[]},{"name":"Authenticate FON","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r",""],"type":"text/javascript"}}],"request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{token}}","type":"string"}]},"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"fon_participant_id\": \"mockdata123\",\n    \"fon_user_id\": \"mock-data\",\n    \"fon_user_pin\": \"mock-data2\"\n}"},"url":{"raw":"{{baseUrl}}/fon/auth","host":["{{baseUrl}}"],"path":["fon","auth"]},"description":"**[Authenticate FON](https://developer.fiskaly.com/api/rksv/v1/#operation/authenticateFon)**\n<br><br>\nThe fiskaly SIGN AT automates all mandatory regulatory communication (e.g. registering Cash Registers or Sigature Creation Units, validating Receipts, etc.) with the financial authorities via [FinanzOnline (FON)](https://rksv.fiskaly.com/api/v1/_docs/#section/Resources/FinanzOnline-(FON)).\n<br><br>\nIn order to be able to communicate with [FinanzOnline (FON)](https://rksv.fiskaly.com/api/v1/_docs/#section/Resources/FinanzOnline-(FON)) in the name of the taxpayer it is required that the taxpayer creates a dedicated [FinanzOnline Cash Register Web Service User (\"*Registrierkassen-Webservice-Benutzer*\")](https://rksv.fiskaly.com/api/v1/_docs/#section/Resources/FinanzOnline-(FON)). \n<br><br>\n**Note**:\nThe credentials of this Cash Register Web Service User must be provided **only once** for authenticating with FON.\nOnce a FON Authentication attempt is successful this Cash Register Web Service User remains authenticated with FON indefinitely.\n<br><br>\n**Note**: \nFON Authentication is a prerequisite for transitioning both Signature Creation Units and Cash Registers to `INITIALIZED`."},"response":[]}],"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""]}},{"listen":"test","script":{"type":"text/javascript","exec":[""]}}]},{"name":"Signature Creation Units - SCU","item":[{"name":"Create SCU","event":[{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","var data = JSON.parse(responseBody);\r","const {_id} = data;\r","pm.environment.set(\"signature_creation_unit_id\", _id);\r",""],"type":"text/javascript"}}],"request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{token}}","type":"string"}]},"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"legal_entity_id\": {\n        \"vat_id\": \"ATU00000001\"\n    },\n    \"legal_entity_name\": \"string\",\n    \"metadata\": {\n        \"my_property_1\": \"ABCD\",\n        \"my_property_2\": \"EFGH\"\n    }\n}"},"url":{"raw":"{{baseUrl}}/signature-creation-unit/{{$guid}}","host":["{{baseUrl}}"],"path":["signature-creation-unit","{{$guid}}"]},"description":"**[Create a Signature Creation Unit](https://developer.fiskaly.com/api/rksv/v1/#operation/createSignatureCreationUnit)**\n<br><br>\nThis endpoint creates a Signature Creation Unit. \nThe Signature Creation Unit is identified by a `signature_creation_unit_id`. \nThe `signature_creation_unit_id` must comply with the [UUIDv4](https://developer.fiskaly.com/api/rksv/v1/#section/Introduction/UUIDv4) standard and should be generated on your side. \n<br><br>\nWhen you create a Signature Creation Unit, its `state` is usually set to `CREATED`.\n<br><br>\nIn some rare cases it may happen that the Signature Creation Unit can not be created immediately.\nThis will be reflected by a transient `PENDING` `state` that will eventually change to `CREATED` at a later point in time.\nSimply retry the request or use the [Retrieve a Signature Creation Unit](https://developer.fiskaly.com/api/rksv/v1/#operation/retrieveSignatureCreationUnit) endpoint to regularly check the `state` of the Signature Creation Unit.\n<br><br>\nUse the [Update a Signature Creation Unit](https://developer.fiskaly.com/api/rksv/v1/#operation/updateSignatureCreationUnit) endpoint to transition a Signature Creation Unit to the `state` `INITIALIZED` in order to be able to use it for signing Receipts."},"response":[]},{"name":"Retrieve SCU","event":[{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","     });\r",""],"type":"text/javascript"}}],"protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{token}}","type":"string"}]},"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{baseUrl}}/signature-creation-unit/{{signature_creation_unit_id}}","host":["{{baseUrl}}"],"path":["signature-creation-unit","{{signature_creation_unit_id}}"]},"description":"**[Retrieve a Signature Creation Unit](https://developer.fiskaly.com/api/rksv/v1/#operation/retrieveSignatureCreationUnit)**\n\nThis endpoint returns information about a specific Signature Creation Unit."},"response":[]},{"name":"Update SCU","event":[{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","    \r","var data = JSON.parse(responseBody);\r","    pm.expect(data.state).to.eql('INITIALIZED');\r"," });"],"type":"text/javascript"}}],"request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{token}}","type":"string"}]},"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"state\": \"INITIALIZED\"\n}"},"url":{"raw":"{{baseUrl}}/signature-creation-unit/{{signature_creation_unit_id}}","host":["{{baseUrl}}"],"path":["signature-creation-unit","{{signature_creation_unit_id}}"]},"description":"**[Update a Signature Creation Unit](https://developer.fiskaly.com/api/rksv/v1/#operation/updateSignatureCreationUnit)**\n<br><br>\nThis endpoint updates a Signature Creation Unit.\n<br><br>\nIn order to be able to use a Signature Creation Unit for signing Receipts it needs to be transitioned to the `state` `INITIALIZED`.\n<br><br>\nOnce a Signature Creation Unit has eventually reached its end-of-life this has to be reflected by setting its `state` to `DECOMMISSIONED`."},"response":[]},{"name":"List all SCUs","event":[{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r",""],"type":"text/javascript"}}],"protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{token}}","type":"string"}]},"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{baseUrl}}/signature-creation-unit","host":["{{baseUrl}}"],"path":["signature-creation-unit"]},"description":"**[List all Signature Creation Units](https://developer.fiskaly.com/api/rksv/v1/#operation/listSignatureCreationUnits)**\n\nThis endpoint lists all available Signature Creation Units."},"response":[]},{"name":"Retrieve metadata of a SCU","event":[{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r",""],"type":"text/javascript"}}],"protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{token}}","type":"string"}]},"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{baseUrl}}/signature-creation-unit/{{signature_creation_unit_id}}/metadata","host":["{{baseUrl}}"],"path":["signature-creation-unit","{{signature_creation_unit_id}}","metadata"]},"description":"**[Retrieve metadata of a Signature Creation Unit](https://developer.fiskaly.com/api/rksv/v1/#operation/retrieveSignatureCreationUnitMetadata)**\n\nThis endpoint retrieves additional structured information about a Signature Creation Unit."},"response":[]},{"name":"Update metadata of a SCU Copy","event":[{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r",""],"type":"text/javascript"}}],"request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{token}}","type":"string"}]},"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"my_property_1\": \"1234\",\n  \"my_property_2\": \"5678\"\n}"},"url":{"raw":"{{baseUrl}}/signature-creation-unit/{{signature_creation_unit_id}}/metadata","host":["{{baseUrl}}"],"path":["signature-creation-unit","{{signature_creation_unit_id}}","metadata"]},"description":"**[Update metadata of a Signature Creation Unit](https://developer.fiskaly.com/api/rksv/v1/#operation/updateSignatureCreationUnitMetadata)**\n\nThis endpoint creates or updates additional structured information about a Signature Creation Unit."},"response":[]}]},{"name":"Cash Registers","item":[{"name":"Create Cash Register","event":[{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","var data = JSON.parse(responseBody);\r","const {_id} = data;\r","pm.environment.set(\"cash_register_id\", _id);"],"type":"text/javascript"}}],"request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{token}}","type":"string"}]},"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"legal_entity_id\": {\n        \"vat_id\": \"ATU73948115\"\n    },\n    \"legal_entity_name\": \"string\",\n    \"metadata\": {\n        \"my_property_1\": \"ABCD\",\n        \"my_property_2\": \"EFGH\"\n    }\n}"},"url":{"raw":"{{baseUrl}}/cash-register/{{$guid}}","host":["{{baseUrl}}"],"path":["cash-register","{{$guid}}"]},"description":"**[Create a Cash Register](https://developer.fiskaly.com/api/rksv/v1/#operation/createCashRegister)**\n<br><br>\nThis endpoint creates a Cash Register. The Cash Register is identified by a `cash_register_id`. The `cash_register_id` must comply with the [UUIDv4](https://developer.fiskaly.com/api/rksv/v1/#section/Introduction/UUIDv4) standard and should be generated on your side.\n<br><br>\nWhen you create a Cash Register, its `state` is usually set to `CREATED`.\n<br><br>\nUse the [Update a Cash Register](https://developer.fiskaly.com/api/rksv/v1/#operation/updateCashRegister) endpoint to transition a Cash Register to the `state` `INITIALIZED` in order to be able to use it for signing Receipts."},"response":[]},{"name":"Retrieve Cash Register","event":[{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript"}}],"protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{token}}","type":"string"}]},"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{baseUrl}}/cash-register/{{cash_register_id}}","host":["{{baseUrl}}"],"path":["cash-register","{{cash_register_id}}"]},"description":"**[Retrieve a Cash Register](https://developer.fiskaly.com/api/rksv/v1/#operation/retrieveCashRegister)**\n\nThis endpoint returns information about a specific Cash Register."},"response":[]},{"name":"Register Cash Register","event":[{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","    \r","    var data = JSON.parse(responseBody);\r","    pm.expect(data.state).to.eql('REGISTERED');\r"," });\r",""],"type":"text/javascript"}}],"request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{token}}","type":"string"}]},"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"state\": \"REGISTERED\"\n}"},"url":{"raw":"{{baseUrl}}/cash-register/{{cash_register_id}}","host":["{{baseUrl}}"],"path":["cash-register","{{cash_register_id}}"]},"description":"**[Update a Cash Register](https://developer.fiskaly.com/api/rksv/v1/#operation/updateCashRegister)**\n<br><br>\nThis endpoint updates a Cash Register.\n<br><br>\nIn order to be able to use a Cash Register for signing Receipts it needs to be transitioned to the `state` `INITIALIZED`.\n<br><br>\nOnce a Cash Register has eventually reached its end-of-life this has to be reflected by setting its `state` to `DECOMMISSIONED`."},"response":[]},{"name":"Outage Cash Register","event":[{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","    \r","    var data = JSON.parse(responseBody);\r","    pm.expect(data.state).to.eql('REGISTERED');\r"," });"],"type":"text/javascript"}}],"request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{token}}","type":"string"}]},"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"state\": \"OUTAGE\"\n}"},"url":{"raw":"{{baseUrl}}/cash-register/{{cash_register_id}}","host":["{{baseUrl}}"],"path":["cash-register","{{cash_register_id}}"]},"description":"**[Update a Cash Register](https://developer.fiskaly.com/api/rksv/v1/#operation/updateCashRegister)**\n<br><br>\nThis endpoint updates a Cash Register.\n<br><br>\nIn order to be able to use a Cash Register for signing Receipts it needs to be transitioned to the `state` `INITIALIZED`.\n<br><br>\nOnce a Cash Register has eventually reached its end-of-life this has to be reflected by setting its `state` to `DECOMMISSIONED`."},"response":[]},{"name":"Initialize Cash Register","event":[{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","    \r","    var data = JSON.parse(responseBody);\r","    pm.expect(data.state).to.eql('INITIALIZED');\r"," });"],"type":"text/javascript"}}],"request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{token}}","type":"string"}]},"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"state\": \"INITIALIZED\"\n}"},"url":{"raw":"{{baseUrl}}/cash-register/{{cash_register_id}}","host":["{{baseUrl}}"],"path":["cash-register","{{cash_register_id}}"]},"description":"**[Update a Cash Register](https://developer.fiskaly.com/api/rksv/v1/#operation/updateCashRegister)**\n<br><br>\nThis endpoint updates a Cash Register.\n<br><br>\nIn order to be able to use a Cash Register for signing Receipts it needs to be transitioned to the `state` `INITIALIZED`.\n<br><br>\nOnce a Cash Register has eventually reached its end-of-life this has to be reflected by setting its `state` to `DECOMMISSIONED`."},"response":[]},{"name":"List Cash Registers","event":[{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript"}}],"protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{token}}","type":"string"}]},"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{baseUrl}}/cash-register","host":["{{baseUrl}}"],"path":["cash-register"]},"description":"**[List Cash Registers](https://developer.fiskaly.com/api/rksv/v1/#operation/updateCashRegister)**\n\nThis endpoint lists available Cash Registers."},"response":[]},{"name":"Retrieve metadata of a Cash Register","event":[{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript"}}],"protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{token}}","type":"string"}]},"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{baseUrl}}/cash-register/{{cash_register_id}}/metadata","host":["{{baseUrl}}"],"path":["cash-register","{{cash_register_id}}","metadata"]},"description":"**[Retrieve metadata of a Cash Register](https://developer.fiskaly.com/api/rksv/v1/#operation/retrieveCashRegisterMetadata)**\n\nThis endpoint retrieves additional structured information about a Cash Register."},"response":[]},{"name":"Update metadata of a Cash Register Copy","event":[{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript"}}],"request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{token}}","type":"string"}]},"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"my_property_1\": \"1234\",\n  \"my_property_2\": \"5678\"\n}"},"url":{"raw":"{{baseUrl}}/cash-register/{{cash_register_id}}/metadata","host":["{{baseUrl}}"],"path":["cash-register","{{cash_register_id}}","metadata"]},"description":"**[Update metadata of a Cash Register](https://developer.fiskaly.com/api/rksv/v1/#operation/updateCashRegisterMetadata)**\n\nThis endpoint creates or updates additional structured information about a Cash Register."},"response":[]}]},{"name":"Receipts","item":[{"name":"Sign a Receipt - ekabs_v0 schema","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","var data = JSON.parse(responseBody);\r","const { _id: receipt1, time_signature: time_signature1, receipt_number: receipt1_number} = data;\r","pm.environment.set(\"receipt1\", receipt1);\r","pm.environment.set(\"time_signature1\", time_signature1);\r","pm.environment.set(\"receipt1_number\", receipt1_number);"],"type":"text/javascript"}}],"request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{token}}","type":"string"}]},"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"receipt_type\": \"NORMAL\",\n    \"schema\": {\n        \"ekabs_v0\": {\n            \"head\": {\n                \"id\": \"string\",\n                \"number\": \"string\",\n                \"date\": \"2019-08-24T14:15:22Z\",\n                \"delivery_period_start\": \"2019-08-24T14:15:22Z\",\n                \"delivery_period_end\": \"2019-08-24T14:15:22Z\",\n                \"seller\": {\n                    \"name\": \"string\",\n                    \"tax_number\": \"string\",\n                    \"tax_exemption\": false,\n                    \"tax_exemption_note\": \"string\",\n                    \"address\": {\n                        \"street\": \"string\",\n                        \"postal_code\": \"string\",\n                        \"city\": \"string\",\n                        \"country_code\": \"ALA\"\n                    }\n                },\n                \"buyer_text\": \"Erika Mustermann\\nHeidestrasse 17\\n51147 Köln\",\n                \"buyer\": {\n                    \"customer_number\": \"string\",\n                    \"name\": \"string\",\n                    \"tax_number\": \"string\",\n                    \"address\": {\n                        \"street\": \"string\",\n                        \"postal_code\": \"string\",\n                        \"city\": \"string\",\n                        \"country_code\": \"ALA\"\n                    }\n                }\n            },\n            \"data\": {\n                \"currency\": \"EUR\",\n                \"full_amount_incl_vat\": \"24.00\",\n                \"payment_types\": [\n                    {\n                        \"name\": \"string\",\n                        \"amount\": 24\n                    }\n                ],\n                \"vat_amounts\": [\n                    {\n                        \"vat_rate\": \"STANDARD\",\n                        \"percentage\": 20,\n                        \"incl_vat\": \"24.00\",\n                        \"excl_vat\": \"20.00\",\n                        \"vat\": \"4.00\"\n                    }\n                ],\n                \"lines\": [\n                    {\n                        \"text\": \"string\",\n                        \"additional_text\": \"string\",\n                        \"vat_amounts\": [\n                            {\n                                \"percentage\": 20,\n                                \"incl_vat\": 24\n                            }\n                        ],\n                        \"item\": {\n                            \"number\": \"string\",\n                            \"gtin\": \"string\",\n                            \"quantity\": 1,\n                            \"quantity_measure\": \"string\",\n                            \"price_per_unit\": 24\n                        },\n                        \"delivery_period_start\": \"2019-08-24T14:15:22Z\",\n                        \"delivery_period_end\": \"2019-08-24T14:15:22Z\"\n                    }\n                ]\n            }\n        }\n    },\n    \"metadata\": {\n        \"my_property_1\": \"ABCD\",\n        \"my_property_2\": \"EFGH\"\n    }\n}"},"url":{"raw":"{{baseUrl}}/cash-register/{{cash_register_id}}/receipt/{{$guid}}","host":["{{baseUrl}}"],"path":["cash-register","{{cash_register_id}}","receipt","{{$guid}}"]},"description":"**[Sign a Receipt](https://developer.fiskaly.com/api/rksv/v1/#operation/signReceipt)**\n<br><br>\nThis endpoint signs a Receipt.\n<br><br>\nHence, it is the single most important endpoint for day-to-day operations.\n<br><br>\nThe response contains all information that is necessary for augmenting the final receipt which is handed out to the customer:\n<br><br>      \n1. `qr_code_data`, which contains the data for the RKSV QR Code to be displayed in a graphical representation,\n2. as well as information that needs to be displayed in textual form: `receipt_number`, `time_signature` and `cash_register_serial_number`,\n3. all raw gross amounts."},"response":[]},{"name":"Sign a Receipt - standard_v1 schema","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","var data = JSON.parse(responseBody);\r","const { _id: receipt2, time_signature: time_signature2, receipt_number: receipt2_number} = data;\r","pm.environment.set(\"receipt2\", receipt2);\r","pm.environment.set(\"time_signature2\", time_signature2);\r","pm.environment.set(\"receipt2_number\", receipt2_number);"],"type":"text/javascript"}}],"request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{token}}","type":"string"}]},"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"receipt_type\": \"NORMAL\",\n    \"schema\": {\n        \"standard_v1\": {\n            \"amounts_per_vat_rate\": [\n                {\n                    \"vat_rate\": \"STANDARD\",\n                    \"amount\": \"1.00\"\n                },\n                {\n                    \"vat_rate\": \"REDUCED_1\",\n                    \"amount\": \"1.00\"\n                },\n                {\n                    \"vat_rate\": \"REDUCED_2\",\n                    \"amount\": \"1.00\"\n                },\n                {\n                    \"vat_rate\": \"SPECIAL\",\n                    \"amount\": \"1.00\"\n                },\n                {\n                    \"vat_rate\": \"ZERO\",\n                    \"amount\": \"1.00\"\n                }\n            ],\n            \"line_items\": [\n                {\n                    \"quantity\": 1,\n                    \"text\": \"ARTIKELTEXT1\",\n                    \"price_per_unit\": \"1.00\"\n                },\n                {\n                    \"quantity\": 1,\n                    \"text\": \"ARTIKELTEXT2\",\n                    \"price_per_unit\": \"1.00\"\n                },\n                {\n                    \"quantity\": 1,\n                    \"text\": \"ARTIKELTEXT3\",\n                    \"price_per_unit\": \"1.00\"\n                },\n                {\n                    \"quantity\": 1,\n                    \"text\": \"ARTIKELTEXT4\",\n                    \"price_per_unit\": \"1.00\"\n                },\n                {\n                    \"quantity\": 1,\n                    \"text\": \"ARTIKELTEXT5\",\n                    \"price_per_unit\": \"1.00\"\n                }\n            ]\n        }\n    },\n    \"metadata\": {\n        \"my_property_1\": \"ABCD\",\n        \"my_property_2\": \"EFGH\"\n    }\n}"},"url":{"raw":"{{baseUrl}}/cash-register/{{cash_register_id}}/receipt/{{$guid}}","host":["{{baseUrl}}"],"path":["cash-register","{{cash_register_id}}","receipt","{{$guid}}"]},"description":"**[Sign a Receipt](https://developer.fiskaly.com/api/rksv/v1/#operation/signReceipt)**\n<br><br>\nThis endpoint signs a Receipt.\n<br><br>\nHence, it is the single most important endpoint for day-to-day operations.\n<br><br>\nThe response contains all information that is necessary for augmenting the final receipt which is handed out to the customer:\n<br><br>      \n1. `qr_code_data`, which contains the data for the RKSV QR Code to be displayed in a graphical representation,\n2. as well as information that needs to be displayed in textual form: `receipt_number`, `time_signature` and `cash_register_serial_number`,\n3. all raw gross amounts."},"response":[]},{"name":"Sign a Receipt - raw schema","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","var data = JSON.parse(responseBody);\r","const { _id: receipt3, time_signature: time_signature3, receipt_number: receipt3_number} = data;\r","pm.environment.set(\"receipt3\", receipt3);\r","pm.environment.set(\"time_signature3\", time_signature3);\r","pm.environment.set(\"receipt3_number\", receipt3_number);"],"type":"text/javascript"}}],"request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{token}}","type":"string"}]},"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"receipt_type\": \"NORMAL\",\n    \"schema\": {\n        \"raw\": {\n            \"gross_amount_standard\": \"123.45\",\n            \"gross_amount_reduced_1\": \"123.45\",\n            \"gross_amount_reduced_2\": \"123.45\",\n            \"gross_amount_special\": \"123.45\",\n            \"gross_amount_zero\": \"123.45\"\n        }\n    },\n    \"metadata\": {\n        \"my_property_1\": \"ABCD\",\n        \"my_property_2\": \"EFGH\"\n    }\n}"},"url":{"raw":"{{baseUrl}}/cash-register/{{cash_register_id}}/receipt/{{$guid}}","host":["{{baseUrl}}"],"path":["cash-register","{{cash_register_id}}","receipt","{{$guid}}"]},"description":"**[Sign a Receipt](https://developer.fiskaly.com/api/rksv/v1/#operation/signReceipt)**\n<br><br>\nThis endpoint signs a Receipt.\n<br><br>\nHence, it is the single most important endpoint for day-to-day operations.\n<br><br>\nThe response contains all information that is necessary for augmenting the final receipt which is handed out to the customer:\n<br><br>      \n1. `qr_code_data`, which contains the data for the RKSV QR Code to be displayed in a graphical representation,\n2. as well as information that needs to be displayed in textual form: `receipt_number`, `time_signature` and `cash_register_serial_number`,\n3. all raw gross amounts."},"response":[]},{"name":"Retrieve a Receipt","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript"}}],"protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{token}}","type":"string"}]},"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{baseUrl}}/cash-register/{{cash_register_id}}/receipt/{{receipt1}}","host":["{{baseUrl}}"],"path":["cash-register","{{cash_register_id}}","receipt","{{receipt1}}"]},"description":"**[Retrieve a Receipt](https://developer.fiskaly.com/api/rksv/v1/#operation/retrieveReceipt)**\n\nThis endpoint returns information about a specific Receipt. The Receipt is identified by the `receipt_id_or_number` path parameter."},"response":[]},{"name":"List all Receipts","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript"}}],"protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{token}}","type":"string"}]},"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{baseUrl}}/receipt","host":["{{baseUrl}}"],"path":["receipt"]},"description":"**[List all Receipts](https://developer.fiskaly.com/api/rksv/v1/#operation/listAllReceipts)**\n\nThis endpoint lists Receipts of all available Cash Registers."},"response":[]},{"name":"List Receipts of a Cash Register","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript"}}],"protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{token}}","type":"string"}]},"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{baseUrl}}/cash-register/{{cash_register_id}}/receipt","host":["{{baseUrl}}"],"path":["cash-register","{{cash_register_id}}","receipt"]},"description":"**[List Receipts of a Cash Register](https://developer.fiskaly.com/api/rksv/v1/#operation/listReceipts)**\n\nThis endpoint lists the Receipts of a specific Cash Register."},"response":[]},{"name":"Retrieve metadata of a Receipt","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript"}}],"protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{token}}","type":"string"}]},"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{baseUrl}}/cash-register/{{cash_register_id}}/receipt/{{receipt1}}/metadata","host":["{{baseUrl}}"],"path":["cash-register","{{cash_register_id}}","receipt","{{receipt1}}","metadata"]},"description":"**[Retrieve metadata of a Receipt](https://developer.fiskaly.com/api/rksv/v1/#operation/retrieveReceiptMetadata)**\n\nThis endpoint retrieves additional structured information about a Receipt."},"response":[]},{"name":"Update metadata of a Receipt","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript"}}],"request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{token}}","type":"string"}]},"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"my_property_1\": \"1234\",\n  \"my_property_2\": \"5678\"\n}"},"url":{"raw":"{{baseUrl}}/cash-register/{{cash_register_id}}/receipt/{{receipt1}}/metadata","host":["{{baseUrl}}"],"path":["cash-register","{{cash_register_id}}","receipt","{{receipt1}}","metadata"],"query":[{"key":"cash_register_id","value":"{{cash_register_id}}","disabled":true},{"key":"receipt_id_or_number","value":"{{receipt1}}","disabled":true}]},"description":"**[Update metadata of a Receipt](https://developer.fiskaly.com/api/rksv/v1/#operation/updateReceiptMetadata)**\n\nThis endpoint creates or updates additional structured information about a Receipt."},"response":[]}]},{"name":"Data Exports","item":[{"name":"Export a Cash Register","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript"}}],"protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{token}}","type":"string"}]},"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{baseUrl}}/cash-register/{{cash_register_id}}/export","host":["{{baseUrl}}"],"path":["cash-register","{{cash_register_id}}","export"],"query":[{"key":"start_receipt_number","value":"{{receipt1_number}}","disabled":true},{"key":"end_receipt_number","value":"{{receipt2_number}}","disabled":true},{"key":"start_time_signature\t\n","value":"{{time_signature1}}","disabled":true},{"key":"end_time_signature","value":"{{time_signature2}}","disabled":true}]},"description":"**[Export a Cash Register](https://developer.fiskaly.com/api/rksv/v1/#operation/exportCashRegister)**\n\nThis endpoint returns the DEP7 export data.\n\nThe purpose of this endpoint is to provide auditors from the financial authorities with the data they need.\n\nUsually the complete DEP7 (i.e., starting with the first signed receipt until the last signed receipt) needs to be exported. However, some auditors might request only a subset of the complete export. In such situations the export can be parametrized using the defined query parameters."},"response":[]}]},{"name":"Clean Up","item":[{"name":"DECOMMISSION Cash Register","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","    ","    var data = JSON.parse(responseBody);","    pm.expect(data.state).to.eql('DECOMMISSIONED');"," });"],"type":"text/javascript"}}],"request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{token}}","type":"string"}]},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"state\": \"DECOMMISSIONED\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{baseUrl}}/cash-register/{{cash_register_id}}","host":["{{baseUrl}}"],"path":["cash-register","{{cash_register_id}}"]}},"response":[]},{"name":"Decommission SCU","event":[{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","    \r","var data = JSON.parse(responseBody);\r","    pm.expect(data.state).to.eql('DECOMMISSIONED');\r"," });"],"type":"text/javascript"}}],"request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{token}}","type":"string"}]},"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"state\": \"DECOMMISSIONED\"\n}"},"url":{"raw":"{{baseUrl}}/signature-creation-unit/{{signature_creation_unit_id}}","host":["{{baseUrl}}"],"path":["signature-creation-unit","{{signature_creation_unit_id}}"]},"description":"**[Update a Signature Creation Unit](https://developer.fiskaly.com/api/rksv/v1/#operation/updateSignatureCreationUnit)**\n<br><br>\nThis endpoint updates a Signature Creation Unit.\n<br><br>\nIn order to be able to use a Signature Creation Unit for signing Receipts it needs to be transitioned to the `state` `INITIALIZED`.\n<br><br>\nOnce a Signature Creation Unit has eventually reached its end-of-life this has to be reflected by setting its `state` to `DECOMMISSIONED`."},"response":[]}]}],"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["const specUrl = pm.environment.get(\"baseUrl\")+\"/_spec.json\";","","if(!pm.collectionVariables.has(\"schema\") || pm.collectionVariables.get(\"schema\") == \"\") {","    pm.sendRequest(specUrl, (error, response) => {","        const temp = JSON.parse(response.stream);","        const schema = temp.paths;","        const definitions = temp.definitions;","","        pm.collectionVariables.set(\"schema\", schema);","        pm.collectionVariables.set(\"definitions\", definitions);","    });","}"]}},{"listen":"test","script":{"type":"text/javascript","exec":[""]}}],"variable":[{"key":"definitions","value":""},{"key":"schema","value":""}]}