-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfiskaltrust DE ByoDC TestCall.postman_collection.json
214 lines (214 loc) · 5.55 KB
/
fiskaltrust DE ByoDC TestCall.postman_collection.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
{
"info": {
"_postman_id": "f4877cbd-0aa1-4b01-a14b-9e4ebc872d17",
"name": "fiskaltrust DE ByoDC TestCall",
"description": "Sample requests that demonstrate how to access ByoDC",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "1. Echo - Cashbox Restart",
"request": {
"method": "POST",
"header": [
{
"key": "cashboxid",
"value": "{{cashbox_id}}",
"type": "text"
},
{
"key": "accesstoken",
"value": "{{accesstoken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"message\": \"\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{base_url}}/api/Echo",
"host": [
"{{base_url}}"
],
"path": [
"api",
"Echo"
]
},
"description": "Restarts a Cashbox and reloads Config"
},
"response": []
},
{
"name": "2. Initial Operation Receipt",
"request": {
"method": "POST",
"header": [
{
"key": "cashboxid",
"value": "{{cashbox_id}}",
"type": "text"
},
{
"key": "accesstoken",
"value": "{{accesstoken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"ftCashBoxID\": \"{{cashbox_id}}\",\r\n \"cbTerminalID\": \"101\",\r\n \"cbReceiptReference\": \"INIT\",\r\n \"cbReceiptMoment\": \"{{current_moment}}\",\r\n \"cbChargeItems\": [],\r\n \"cbPayItems\": [],\r\n \"ftReceiptCase\": 4919338172267102211,\r\n \"cbUser\": \"Admin\"\r\n}\r\n\r\n",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{base_url}}/json/v1/Sign",
"host": [
"{{base_url}}"
],
"path": [
"json",
"v1",
"Sign"
]
},
"description": "Registers the client in the TSE (needed only once)"
},
"response": []
},
{
"name": "3. ByoDC Barumsatz",
"request": {
"method": "POST",
"header": [
{
"key": "cashboxid",
"value": "{{cashbox_id}}",
"type": "text"
},
{
"key": "accesstoken",
"value": "{{accesstoken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"ftCashBoxID\": \"{{cashbox_id}}\",\r\n \"cbTerminalID\": \"1\",\r\n \"cbReceiptReference\": \"VORGANG-1050\",\r\n \"cbReceiptMoment\": \"{{current_moment}}\",\r\n \"cbChargeItems\": [\r\n {\r\n \"Quantity\": 1.0,\r\n \"Description\": \"Artikel 1\",\r\n \"Amount\": 33.06,\r\n \"VATRate\": 16.0,\r\n \"ftChargeItemCase\": 4919338167972134913,\r\n \"Moment\":\"{{current_moment}}\"\r\n },\r\n {\r\n \"Quantity\": 1.0,\r\n \"Description\": \"Artikel 2\",\r\n \"Amount\": 5.69,\r\n \"VATRate\": 16.0,\r\n \"ftChargeItemCase\": 4919338167972134913,\r\n \"Moment\":\"{{current_moment}}\"\r\n }\r\n ],\r\n \"cbPayItems\": [\r\n {\r\n \"Quantity\": 1.0,\r\n \"Description\": \"Bar\",\r\n \"Amount\": 38.75,\r\n \"ftPayItemCase\": 4919338167972134913,\r\n \"Moment\":\"{{current_moment}}\"\r\n }\r\n ],\r\n \"ftReceiptCase\": 4919338172267102209\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{base_url}}/api/Sign",
"host": [
"{{base_url}}"
],
"path": [
"api",
"Sign"
]
},
"description": "sends a pos-receipt with implicit flow"
},
"response": []
},
{
"name": "4. Zero Receipt (+ TSE Info)",
"request": {
"method": "POST",
"header": [
{
"key": "cashboxid",
"value": "{{cashbox_id}}",
"type": "text"
},
{
"key": "accesstoken",
"value": "{{accesstoken}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"ftCashBoxID\": \"{{cashbox_id}}\",\r\n \"cbTerminalID\": \"1\",\r\n \"cbReceiptReference\": \"ZeroReceiptTSEInfo\",\r\n \"cbReceiptMoment\": \"{{current_moment}}\",\r\n \"cbChargeItems\": [],\r\n \"cbPayItems\": [],\r\n \"ftReceiptCase\": 4919338172275490818\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{base_url}}/json/v1/Sign",
"host": [
"{{base_url}}"
],
"path": [
"json",
"v1",
"Sign"
]
},
"description": "Flagged with 0x0000000000800000\n\nRequests additional informations from used TSE device."
},
"response": []
}
],
"event": [
{
"listen": "prerequest",
"script": {
"id": "1a81804f-78e1-45f9-bd88-5fbe753e383c",
"type": "text/javascript",
"exec": [
"const dateNow= new Date();",
"pm.environment.set('current_moment', dateNow.toISOString());"
]
}
},
{
"listen": "test",
"script": {
"id": "777f0976-a2d3-4bd5-84b6-7df4a05f627b",
"type": "text/javascript",
"exec": [
""
]
}
}
],
"variable": [
{
"id": "4555826b-7dc6-4b0a-8eb0-6d4528da5d30",
"key": "base_url",
"value": "http://localhost:80"
},
{
"id": "e7e50bfc-0863-43b6-bb8e-8b029b6fafa3",
"key": "data_format",
"value": "json"
},
{
"id": "3df461bd-3e84-4f59-a05d-811befeacece",
"key": "cashbox_id",
"value": "00000000-0000-0000-0000-000000000000"
},
{
"id": "0b98835f-a168-409e-857d-4518acc676b3",
"key": "accesstoken",
"value": ""
}
],
"protocolProfileBehavior": {}
}