PluginProbe
WCPOS – Point of Sale (POS) plugin for WooCommerce / 1.10.21
WCPOS – Point of Sale (POS) plugin for WooCommerce v1.10.21
1.10.25 1.10.24 1.10.23 1.10.22 1.10.21 1.10.20 1.10.19 1.10.18 1.10.17 1.10.16 1.10.15 1.10.13 1.10.14 1.10.12 1.10.11 1.10.10 1.10.9 1.10.8 untagged-3d9b7ccddc54df87c672 1.10.7 1.10.6 1.10.5 1.10.3 1.10.4 1.10.2 All 169 releases
woocommerce-pos / templates / gallery / preview-data / base-receipt.json

base-receipt.json in WCPOS – Point of Sale (POS) plugin for WooCommerce 1.10.21, at templates/gallery/preview-data/base-receipt.json

345 lines 9.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 {
2 "description": "Shared Coffee Monster paid retail receipt data used as the default gallery preview fixture.",
3 "overrides": {
4 "order": {
5 "id": 1234,
6 "number": "POS-1234",
7 "currency": "USD",
8 "customer_note": "Please gift wrap the ceramic mug.",
9 "wc_status": "completed",
10 "status_label": "Completed",
11 "created_via": "woocommerce-pos",
12 "needs_payment": false,
13 "payment_url": ""
14 },
15 "store": {
16 "id": 1,
17 "name": "Coffee Monster",
18 "logo": "{{asset:coffee-monster-logo}}",
19 "address": {
20 "address_1": "123 Bean Street",
21 "address_2": "Unit 4",
22 "city": "Portland",
23 "state": "OR",
24 "postcode": "97205",
25 "country": "US"
26 },
27 "address_lines": [
28 "123 Bean Street, Unit 4",
29 "Portland, OR 97205"
30 ],
31 "tax_ids": [
32 {
33 "type": "us_ein",
34 "label": "EIN",
35 "value": "12-3456789",
36 "country": "US"
37 }
38 ],
39 "phone": "+1 (503) 555-0142",
40 "email": "[email protected]",
41 "opening_hours": "Mon–Fri 7:00 AM – 6:00 PM\nSat–Sun 8:00 AM – 4:00 PM",
42 "opening_hours_vertical": "Mon 7:00 AM – 6:00 PM\nTue 7:00 AM – 6:00 PM\nWed 7:00 AM – 6:00 PM\nThu 7:00 AM – 6:00 PM\nFri 7:00 AM – 6:00 PM\nSat 8:00 AM – 4:00 PM\nSun 8:00 AM – 4:00 PM",
43 "opening_hours_inline": "Mon–Fri 7:00 AM – 6:00 PM, Sat–Sun 8:00 AM – 4:00 PM",
44 "opening_hours_notes": "Closed on public holidays",
45 "personal_notes": "Thanks for feeding the monster.",
46 "policies_and_conditions": "Returns accepted within 30 days with original receipt. Beans and perishable items are final sale once opened.",
47 "footer_imprint": "Follow us @coffeemonster"
48 },
49 "customer": {
50 "id": 42,
51 "name": "Sarah Johnson",
52 "billing_address": {
53 "first_name": "Sarah",
54 "last_name": "Johnson",
55 "company": "",
56 "address_1": "456 Oak Avenue",
57 "address_2": "Suite 200",
58 "city": "Portland",
59 "state": "OR",
60 "postcode": "97209",
61 "country": "US",
62 "email": "[email protected]",
63 "phone": "(555) 987-6543"
64 },
65 "shipping_address": {
66 "first_name": "Sarah",
67 "last_name": "Johnson",
68 "company": "",
69 "address_1": "456 Oak Avenue",
70 "address_2": "Suite 200",
71 "city": "Portland",
72 "state": "OR",
73 "postcode": "97209",
74 "country": "US"
75 },
76 "tax_ids": []
77 },
78 "cashier": {
79 "id": 7,
80 "name": "Jane Smith"
81 },
82 "lines": [
83 {
84 "key": "1",
85 "sku": "CM-BEANS-250",
86 "name": "House Espresso Beans",
87 "qty": 2,
88 "regular_price": 17.0,
89 "regular_price_incl": 17.0,
90 "regular_price_excl": 17.0,
91 "selling_price": 14.5,
92 "selling_price_incl": 14.5,
93 "selling_price_excl": 14.5,
94 "unit_savings": 2.5,
95 "unit_savings_incl": 2.5,
96 "unit_savings_excl": 2.5,
97 "line_regular_total": 34.0,
98 "line_regular_total_incl": 34.0,
99 "line_regular_total_excl": 34.0,
100 "line_selling_total": 29.0,
101 "line_selling_total_incl": 29.0,
102 "line_selling_total_excl": 29.0,
103 "line_savings": 5.0,
104 "line_savings_incl": 5.0,
105 "line_savings_excl": 5.0,
106 "savings_in_discounts": false,
107 "unit_subtotal": 14.5,
108 "unit_subtotal_incl": 14.5,
109 "unit_subtotal_excl": 14.5,
110 "unit_price": 13.05,
111 "unit_price_incl": 13.05,
112 "unit_price_excl": 13.05,
113 "line_subtotal": 29,
114 "line_subtotal_incl": 29,
115 "line_subtotal_excl": 29,
116 "discounts": 2.9,
117 "discounts_incl": 2.9,
118 "discounts_excl": 2.9,
119 "line_total": 26.1,
120 "line_total_incl": 26.1,
121 "line_total_excl": 26.1,
122 "qty_refunded": 0,
123 "total_refunded": 0,
124 "taxes": [],
125 "meta": [
126 {
127 "key": "Grind",
128 "value": "Whole bean"
129 }
130 ],
131 "attributes": [
132 {
133 "key": "Grind",
134 "value": "Whole bean"
135 }
136 ]
137 },
138 {
139 "key": "2",
140 "sku": "CM-MUG-BLK",
141 "name": "Black Ceramic Mug",
142 "qty": 1,
143 "regular_price": 18.0,
144 "regular_price_incl": 18.0,
145 "regular_price_excl": 18.0,
146 "selling_price": 18.0,
147 "selling_price_incl": 18.0,
148 "selling_price_excl": 18.0,
149 "unit_savings": 0.0,
150 "unit_savings_incl": 0.0,
151 "unit_savings_excl": 0.0,
152 "line_regular_total": 18.0,
153 "line_regular_total_incl": 18.0,
154 "line_regular_total_excl": 18.0,
155 "line_selling_total": 18.0,
156 "line_selling_total_incl": 18.0,
157 "line_selling_total_excl": 18.0,
158 "line_savings": 0.0,
159 "line_savings_incl": 0.0,
160 "line_savings_excl": 0.0,
161 "savings_in_discounts": false,
162 "unit_subtotal": 18,
163 "unit_subtotal_incl": 18,
164 "unit_subtotal_excl": 18,
165 "unit_price": 16.2,
166 "unit_price_incl": 16.2,
167 "unit_price_excl": 16.2,
168 "line_subtotal": 18,
169 "line_subtotal_incl": 18,
170 "line_subtotal_excl": 18,
171 "discounts": 1.8,
172 "discounts_incl": 1.8,
173 "discounts_excl": 1.8,
174 "line_total": 16.2,
175 "line_total_incl": 16.2,
176 "line_total_excl": 16.2,
177 "qty_refunded": 1,
178 "total_refunded": 7.25,
179 "taxes": [],
180 "meta": [
181 {
182 "key": "Size",
183 "value": "12 oz"
184 }
185 ],
186 "attributes": [
187 {
188 "key": "Size",
189 "value": "12 oz"
190 }
191 ]
192 },
193 {
194 "key": "3",
195 "sku": "CM-CROISSANT",
196 "name": "Almond Croissant",
197 "qty": 1,
198 "regular_price": 5.75,
199 "regular_price_incl": 5.75,
200 "regular_price_excl": 5.75,
201 "selling_price": 5.75,
202 "selling_price_incl": 5.75,
203 "selling_price_excl": 5.75,
204 "unit_savings": 0.0,
205 "unit_savings_incl": 0.0,
206 "unit_savings_excl": 0.0,
207 "line_regular_total": 5.75,
208 "line_regular_total_incl": 5.75,
209 "line_regular_total_excl": 5.75,
210 "line_selling_total": 5.75,
211 "line_selling_total_incl": 5.75,
212 "line_selling_total_excl": 5.75,
213 "line_savings": 0.0,
214 "line_savings_incl": 0.0,
215 "line_savings_excl": 0.0,
216 "savings_in_discounts": false,
217 "unit_subtotal": 5.75,
218 "unit_subtotal_incl": 5.75,
219 "unit_subtotal_excl": 5.75,
220 "unit_price": 5.17,
221 "unit_price_incl": 5.17,
222 "unit_price_excl": 5.17,
223 "line_subtotal": 5.75,
224 "line_subtotal_incl": 5.75,
225 "line_subtotal_excl": 5.75,
226 "discounts": 0.58,
227 "discounts_incl": 0.58,
228 "discounts_excl": 0.58,
229 "line_total": 5.17,
230 "line_total_incl": 5.17,
231 "line_total_excl": 5.17,
232 "qty_refunded": 0,
233 "total_refunded": 0,
234 "taxes": [],
235 "meta": [],
236 "attributes": []
237 }
238 ],
239 "discounts": [
240 {
241 "label": "Summer Sale (10%)",
242 "code": "SUMMER10",
243 "total": 5.28,
244 "total_incl": 5.28,
245 "total_excl": 5.28
246 }
247 ],
248 "fees": [
249 {
250 "label": "Gift Wrapping",
251 "total": 2.5,
252 "total_incl": 2.5,
253 "total_excl": 2.5,
254 "taxes": [],
255 "meta": []
256 }
257 ],
258 "shipping": [
259 {
260 "label": "Flat Rate Shipping",
261 "method_id": "flat_rate",
262 "total": 10,
263 "total_incl": 10,
264 "total_excl": 10,
265 "taxes": [],
266 "meta": []
267 }
268 ],
269 "totals": {
270 "subtotal": 52.75,
271 "subtotal_incl": 52.75,
272 "subtotal_excl": 52.75,
273 "discount_total": 5.28,
274 "discount_total_incl": 5.28,
275 "discount_total_excl": 5.28,
276 "sale_savings_total": 5,
277 "sale_savings_total_incl": 5,
278 "sale_savings_total_excl": 5,
279 "total_saved": 10.28,
280 "total_saved_incl": 10.28,
281 "total_saved_excl": 10.28,
282 "total_saved_complete": true,
283 "tax_total": 0,
284 "total": 59.97,
285 "total_incl": 59.97,
286 "total_excl": 59.97,
287 "paid_total": 59.97,
288 "change_total": 0.03,
289 "total_qty": 4,
290 "line_count": 3,
291 "refund_total": 7.25,
292 "net_total": 52.72
293 },
294 "tax_summary": [],
295 "has_tax_summary": false,
296 "payments": [
297 {
298 "method_id": "pos_cash",
299 "method_title": "Cash",
300 "amount": 59.97,
301 "transaction_id": "",
302 "tendered": 60,
303 "change": 0.03
304 }
305 ],
306 "refunds": [
307 {
308 "id": 987,
309 "date": {
310 "date": "2024-01-16",
311 "time": "11:12 AM",
312 "datetime": "Jan 16, 2024, 11:12 AM",
313 "timestamp": 1705403520
314 },
315 "amount": 7.25,
316 "subtotal": 7.25,
317 "tax_total": 0,
318 "shipping_total": 0,
319 "shipping_tax": 0,
320 "reason": "Changed mind about the mug.",
321 "refunded_by_id": 7,
322 "refunded_by_name": "Jane Smith",
323 "refunded_payment": true,
324 "destination": "original_payment",
325 "gateway_id": "pos_cash",
326 "gateway_title": "Cash",
327 "processing_mode": "manual",
328 "lines": [
329 {
330 "name": "Black Ceramic Mug",
331 "sku": "CM-MUG-BLK",
332 "qty": 1,
333 "total": 7.25,
334 "total_incl": 7.25,
335 "total_excl": 7.25,
336 "taxes": []
337 }
338 ],
339 "fees": [],
340 "shipping": []
341 }
342 ]
343 }
344 }
345