doboxa-js 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/chunk-36DDSV5T.mjs +3077 -0
  2. package/dist/chunk-36DDSV5T.mjs.map +1 -0
  3. package/dist/chunk-CGJD4ZO5.mjs +107 -0
  4. package/dist/chunk-CGJD4ZO5.mjs.map +1 -0
  5. package/dist/client.js +2046 -0
  6. package/dist/client.js.map +1 -0
  7. package/dist/client.mjs +8 -0
  8. package/dist/client.mjs.map +1 -0
  9. package/dist/errors.js +91 -0
  10. package/dist/errors.js.map +1 -0
  11. package/dist/errors.mjs +15 -0
  12. package/dist/errors.mjs.map +1 -0
  13. package/dist/index.js +3724 -0
  14. package/dist/index.js.map +1 -0
  15. package/dist/index.mjs +719 -0
  16. package/dist/index.mjs.map +1 -0
  17. package/dist/models.js +1 -0
  18. package/dist/models.js.map +1 -0
  19. package/dist/models.mjs +1 -0
  20. package/dist/models.mjs.map +1 -0
  21. package/package.json +18 -11
  22. package/api-doc.yaml +0 -2013
  23. package/openapi-generator-config.yaml +0 -15
  24. package/openapitools.json +0 -7
  25. package/src/client.ts +0 -99
  26. package/src/errors.ts +0 -90
  27. package/src/http/client.ts +0 -156
  28. package/src/index.ts +0 -31
  29. package/src/models.ts +0 -0
  30. package/src/resources/authentication.ts +0 -73
  31. package/src/resources/clients.ts +0 -32
  32. package/src/resources/discountCodes.ts +0 -32
  33. package/src/resources/invoices.ts +0 -46
  34. package/src/resources/orderComments.ts +0 -38
  35. package/src/resources/orderStatusChanges.ts +0 -38
  36. package/src/resources/orders.ts +0 -123
  37. package/src/resources/trackingNumbers.ts +0 -38
  38. package/src/resources/users.ts +0 -28
  39. package/src/types/index.ts +0 -59
  40. package/src/utils/config.ts +0 -10
  41. package/src/utils/tokenManager.ts +0 -68
  42. package/tsconfig.json +0 -12
  43. package/tsup.config.ts +0 -27
package/api-doc.yaml DELETED
@@ -1,2013 +0,0 @@
1
- openapi: 3.0.0
2
- info:
3
- title: API V2
4
- description: API V2
5
- version: 1.0-alpha
6
- paths:
7
- /api/v2/authentication/token:
8
- post:
9
- tags:
10
- - Authentication
11
- description: Retrieve a JWT token using your username and password
12
- operationId: null
13
- requestBody:
14
- description: Username and password
15
- required: true
16
- content:
17
- application/json:
18
- schema:
19
- properties:
20
- username:
21
- type: string
22
- password:
23
- type: string
24
- type: object
25
- responses:
26
- "200":
27
- description: Authentication successful
28
- content:
29
- application/json:
30
- schema:
31
- properties:
32
- token:
33
- description: JWT token, valid for 3600 seconds (1 hour)
34
- type: string
35
- refresh_token:
36
- description: Refresh token, valid for 2592000 seconds (30 days)
37
- type: string
38
- type: object
39
- "401":
40
- description: Bad credentials
41
- content:
42
- application/json:
43
- schema:
44
- properties:
45
- code:
46
- type: int
47
- example: 401
48
- message:
49
- type: string
50
- example: Bad credentials
51
- type: object
52
- /api/v2/authentication/refresh_token:
53
- post:
54
- tags:
55
- - Authentication
56
- description: Retrieve a new valid JWT token using refresh token. Refresh token
57
- lifetime will be reset
58
- operationId: null
59
- requestBody:
60
- description: Refresh token
61
- required: true
62
- content:
63
- application/json:
64
- schema:
65
- properties:
66
- refresh_token:
67
- type: string
68
- type: object
69
- responses:
70
- "200":
71
- description: Login successful
72
- content:
73
- application/json:
74
- schema:
75
- properties:
76
- token:
77
- type: string
78
- refresh_token:
79
- type: string
80
- type: object
81
- "401":
82
- description: Bad credentials
83
- content:
84
- application/json:
85
- schema:
86
- properties:
87
- code:
88
- type: int
89
- example: 401
90
- message:
91
- type: string
92
- example: Bad credentials
93
- type: object
94
- /api/v2/client:
95
- get:
96
- tags:
97
- - Client
98
- summary: Get clients (only commission type)
99
- operationId: get_app_ecommerce_api_v2_getclients__invoke
100
- parameters:
101
- - name: page
102
- in: query
103
- description: Page number
104
- required: false
105
- schema:
106
- type: integer
107
- example: "1"
108
- responses:
109
- "200":
110
- description: List of clients
111
- content:
112
- application/json:
113
- schema:
114
- $ref: "#/components/schemas/PageOfClients"
115
- "400":
116
- description: Invalid request
117
- content:
118
- application/json:
119
- schema:
120
- $ref: "#/components/schemas/InvalidRequestDataResponse"
121
- "401":
122
- description: Not authorized for this resource
123
- "403":
124
- description: Access token expired
125
- "500":
126
- description: Error while processing the request
127
- content:
128
- application/json:
129
- schema:
130
- $ref: "#/components/schemas/ServerErrorResponse"
131
- /api/v2/discount_code:
132
- get:
133
- tags:
134
- - Discount code
135
- summary: Get discount codes (only commission type)
136
- operationId: get_api_v2_discount_codes_external
137
- parameters:
138
- - name: page
139
- in: query
140
- description: Page number
141
- required: false
142
- schema:
143
- type: integer
144
- example: "1"
145
- responses:
146
- "200":
147
- description: Returned paginated discount codes
148
- content:
149
- application/json:
150
- schema:
151
- properties:
152
- items:
153
- type: array
154
- items:
155
- properties:
156
- code:
157
- description: Discount code
158
- type: string
159
- type:
160
- description: Discount type
161
- type: string
162
- client_email:
163
- description: Client associated with the discount
164
- type: string
165
- domain:
166
- description: Domain associated with the discount
167
- type: string
168
- currency:
169
- description: Discount currency
170
- type: string
171
- nullable: true
172
- action:
173
- description: Discount amount
174
- type: string
175
- valid_until:
176
- description: Discount expiration time
177
- type: string
178
- nullable: true
179
- type: object
180
- next_page:
181
- description: Link to the next page of results
182
- type: string
183
- nullable: true
184
- type: object
185
- "400":
186
- description: Invalid request
187
- content:
188
- application/json:
189
- schema:
190
- $ref: "#/components/schemas/InvalidRequestDataResponse"
191
- "401":
192
- description: Not authorized for this resource
193
- "403":
194
- description: Access token expired
195
- "500":
196
- description: Error while processing the request
197
- content:
198
- application/json:
199
- schema:
200
- $ref: "#/components/schemas/ServerErrorResponse"
201
- /api/v2/invoice/{invoice_id}:
202
- get:
203
- tags:
204
- - Invoice
205
- summary: Get a specific invoice
206
- operationId: get_app_ecommerce_api_v2_getinvoice__invoke
207
- parameters:
208
- - name: invoice_id
209
- in: path
210
- required: true
211
- schema:
212
- type: string
213
- responses:
214
- "200":
215
- description: Invoice data
216
- content:
217
- application/json:
218
- schema:
219
- $ref: "#/components/schemas/Invoice"
220
- "400":
221
- description: Invalid request
222
- content:
223
- application/json:
224
- schema:
225
- $ref: "#/components/schemas/InvalidRequestDataResponse"
226
- "401":
227
- description: Not authorized for this resource
228
- "403":
229
- description: Access token expired
230
- "404":
231
- description: Invoice not found
232
- content:
233
- application/json:
234
- schema:
235
- $ref: "#/components/schemas/InvalidRequestDataResponse"
236
- "500":
237
- description: Error while processing the request
238
- content:
239
- application/json:
240
- schema:
241
- $ref: "#/components/schemas/ServerErrorResponse"
242
- /api/v2/invoice:
243
- get:
244
- tags:
245
- - Invoice
246
- summary: Get latest invoices
247
- operationId: get_app_ecommerce_api_v2_getinvoices__invoke
248
- parameters:
249
- - name: page
250
- in: query
251
- description: Page number
252
- required: false
253
- schema:
254
- type: integer
255
- example: "1"
256
- - name: from
257
- in: query
258
- description: "Invoices added after given time. Default: now - 1 day"
259
- required: false
260
- schema:
261
- type: string
262
- format: date-time
263
- - name: to
264
- in: query
265
- description: "Invoices added before given time. Default: now"
266
- required: false
267
- schema:
268
- type: string
269
- format: date-time
270
- responses:
271
- "200":
272
- description: List of invoices
273
- content:
274
- application/json:
275
- schema:
276
- $ref: "#/components/schemas/PageOfInvoices"
277
- "400":
278
- description: Invalid request
279
- content:
280
- application/json:
281
- schema:
282
- $ref: "#/components/schemas/InvalidRequestDataResponse"
283
- "401":
284
- description: Not authorized for this resource
285
- "403":
286
- description: Access token expired
287
- "500":
288
- description: Error while processing the request
289
- content:
290
- application/json:
291
- schema:
292
- $ref: "#/components/schemas/ServerErrorResponse"
293
- /api/v2/user/me:
294
- get:
295
- tags:
296
- - User
297
- summary: Validate your access token
298
- operationId: get_app_ecommerce_api_v2_getme__invoke
299
- responses:
300
- "200":
301
- description: Current user
302
- content:
303
- application/json:
304
- schema:
305
- $ref: "#/components/schemas/Me"
306
- "400":
307
- description: Invalid request
308
- content:
309
- application/json:
310
- schema:
311
- $ref: "#/components/schemas/InvalidRequestDataResponse"
312
- "401":
313
- description: Not authorized for this resource
314
- "403":
315
- description: Access token expired
316
- "500":
317
- description: Error while processing the request
318
- content:
319
- application/json:
320
- schema:
321
- $ref: "#/components/schemas/ServerErrorResponse"
322
- /api/v2/order/{order_id}/comment:
323
- get:
324
- tags:
325
- - Order
326
- summary: Get a specific order comments
327
- operationId: get_app_ecommerce_api_v2_getordercomments__invoke
328
- parameters:
329
- - name: order_id
330
- in: path
331
- required: true
332
- schema:
333
- type: string
334
- responses:
335
- "200":
336
- description: List of order comments
337
- content:
338
- application/json:
339
- schema:
340
- $ref: "#/components/schemas/PageOfOrderComments"
341
- "400":
342
- description: Invalid request
343
- content:
344
- application/json:
345
- schema:
346
- $ref: "#/components/schemas/InvalidRequestDataResponse"
347
- "401":
348
- description: Not authorized for this resource
349
- "403":
350
- description: Access token expired
351
- "404":
352
- description: Order not found
353
- content:
354
- application/json:
355
- schema:
356
- $ref: "#/components/schemas/InvalidRequestDataResponse"
357
- "500":
358
- description: Error while processing the request
359
- content:
360
- application/json:
361
- schema:
362
- $ref: "#/components/schemas/ServerErrorResponse"
363
- post:
364
- tags:
365
- - Order
366
- summary: Create an Order comment
367
- operationId: post_app_ecommerce_api_v2_postordercomment__invoke
368
- parameters:
369
- - name: order_id
370
- in: path
371
- required: true
372
- schema:
373
- type: string
374
- requestBody:
375
- required: true
376
- content:
377
- application/json:
378
- schema:
379
- $ref: "#/components/schemas/CreateOrderComment"
380
- responses:
381
- "201":
382
- description: Success
383
- content:
384
- application/json:
385
- schema:
386
- $ref: "#/components/schemas/PostOrderCommentResponse"
387
- "400":
388
- description: Invalid data found in the request
389
- content:
390
- application/json:
391
- schema:
392
- $ref: "#/components/schemas/InvalidRequestDataResponse"
393
- "401":
394
- description: Not authorized for this resource
395
- "403":
396
- description: Access token expired
397
- "404":
398
- description: Order not found
399
- content:
400
- application/json:
401
- schema:
402
- $ref: "#/components/schemas/InvalidRequestDataResponse"
403
- "500":
404
- description: Error while processing the request
405
- content:
406
- application/json:
407
- schema:
408
- $ref: "#/components/schemas/ServerErrorResponse"
409
- /api/v2/order/{order_id}/invoice:
410
- get:
411
- tags:
412
- - Order
413
- summary: Get Order invoices
414
- operationId: get_app_ecommerce_api_v2_getorderinvoices__invoke
415
- parameters:
416
- - name: order_id
417
- in: path
418
- required: true
419
- schema:
420
- type: string
421
- responses:
422
- "200":
423
- description: List of invoices
424
- content:
425
- application/json:
426
- schema:
427
- $ref: "#/components/schemas/PageOfInvoices"
428
- "400":
429
- description: Invalid request
430
- content:
431
- application/json:
432
- schema:
433
- $ref: "#/components/schemas/InvalidRequestDataResponse"
434
- "401":
435
- description: Not authorized for this resource
436
- "403":
437
- description: Access token expired
438
- "500":
439
- description: Error while processing the request
440
- content:
441
- application/json:
442
- schema:
443
- $ref: "#/components/schemas/ServerErrorResponse"
444
- /api/v2/order/{order_id}/status:
445
- get:
446
- tags:
447
- - Order
448
- summary: Get current order status
449
- operationId: get_app_ecommerce_api_v2_getorderstatus__invoke
450
- parameters:
451
- - name: order_id
452
- in: path
453
- required: true
454
- schema:
455
- type: string
456
- responses:
457
- "200":
458
- description: Order status
459
- content:
460
- application/json:
461
- schema:
462
- $ref: "#/components/schemas/OrderStatus"
463
- "400":
464
- description: Invalid request
465
- content:
466
- application/json:
467
- schema:
468
- $ref: "#/components/schemas/InvalidRequestDataResponse"
469
- "401":
470
- description: Not authorized for this resource
471
- "403":
472
- description: Access token expired
473
- "404":
474
- description: Order not found
475
- content:
476
- application/json:
477
- schema:
478
- $ref: "#/components/schemas/InvalidRequestDataResponse"
479
- "500":
480
- description: Error while processing the request
481
- content:
482
- application/json:
483
- schema:
484
- $ref: "#/components/schemas/ServerErrorResponse"
485
- post:
486
- tags:
487
- - Order
488
- summary: Change Order status (only commision type or test orders)
489
- operationId: post_app_ecommerce_api_v2_postorderstatuschange__invoke
490
- parameters:
491
- - name: order_id
492
- in: path
493
- required: true
494
- schema:
495
- type: string
496
- requestBody:
497
- required: true
498
- content:
499
- application/json:
500
- schema:
501
- $ref: "#/components/schemas/PostOrderStatus"
502
- responses:
503
- "201":
504
- description: Success
505
- content:
506
- application/json:
507
- schema:
508
- $ref: "#/components/schemas/PostOrderStatusResponse"
509
- "400":
510
- description: Invalid data found in the request
511
- content:
512
- application/json:
513
- schema:
514
- $ref: "#/components/schemas/InvalidRequestDataResponse"
515
- "401":
516
- description: Not authorized for this resource
517
- "403":
518
- description: Access token expired
519
- "404":
520
- description: Order not found
521
- content:
522
- application/json:
523
- schema:
524
- $ref: "#/components/schemas/InvalidRequestDataResponse"
525
- "500":
526
- description: Error while processing the request
527
- content:
528
- application/json:
529
- schema:
530
- $ref: "#/components/schemas/ServerErrorResponse"
531
- /api/v2/order_status_change:
532
- get:
533
- tags:
534
- - Order Status Change
535
- summary: Get latest status changes. Note that only the latest order status
536
- change is provided.
537
- operationId: get_app_ecommerce_api_v2_getorderstatuschanges__invoke
538
- parameters:
539
- - name: page
540
- in: query
541
- description: Page number
542
- required: false
543
- schema:
544
- type: integer
545
- example: "1"
546
- - name: from
547
- in: query
548
- description: "Order status changes newer than given time. Default: now - 4 hours"
549
- required: false
550
- schema:
551
- type: string
552
- format: date-time
553
- - name: to
554
- in: query
555
- description: "Order status changes older than given time. Default: now"
556
- required: false
557
- schema:
558
- type: string
559
- format: date-time
560
- responses:
561
- "200":
562
- description: List of order status changes
563
- content:
564
- application/json:
565
- schema:
566
- $ref: "#/components/schemas/PageOfOrderStatusChanges"
567
- "400":
568
- description: Invalid request
569
- content:
570
- application/json:
571
- schema:
572
- $ref: "#/components/schemas/InvalidRequestDataResponse"
573
- "401":
574
- description: Not authorized for this resource
575
- "403":
576
- description: Access token expired
577
- "500":
578
- description: Error while processing the request
579
- content:
580
- application/json:
581
- schema:
582
- $ref: "#/components/schemas/ServerErrorResponse"
583
- /api/v2/order/{order_id}/tracking_number:
584
- get:
585
- tags:
586
- - Order
587
- summary: Get Order tracking numbers
588
- operationId: get_app_ecommerce_api_v2_getordertrackingnumbers__invoke
589
- parameters:
590
- - name: order_id
591
- in: path
592
- required: true
593
- schema:
594
- type: string
595
- responses:
596
- "200":
597
- description: List of order tracking numbers
598
- content:
599
- application/json:
600
- schema:
601
- $ref: "#/components/schemas/PageOfTrackingNumbers"
602
- "400":
603
- description: Invalid request
604
- content:
605
- application/json:
606
- schema:
607
- $ref: "#/components/schemas/InvalidRequestDataResponse"
608
- "401":
609
- description: Not authorized for this resource
610
- "403":
611
- description: Access token expired
612
- "404":
613
- description: Order not found
614
- content:
615
- application/json:
616
- schema:
617
- $ref: "#/components/schemas/InvalidRequestDataResponse"
618
- "500":
619
- description: Error while processing the request
620
- content:
621
- application/json:
622
- schema:
623
- $ref: "#/components/schemas/ServerErrorResponse"
624
- /api/v2/order_comment:
625
- get:
626
- tags:
627
- - Order Comment
628
- summary: Get latest order comments.
629
- operationId: get_app_ecommerce_api_v2_getorderscomments__invoke
630
- parameters:
631
- - name: page
632
- in: query
633
- description: Page number
634
- required: false
635
- schema:
636
- type: integer
637
- example: "1"
638
- - name: from
639
- in: query
640
- description: "Comments added after given time. Default: now - 4 hours"
641
- required: false
642
- schema:
643
- type: string
644
- format: date-time
645
- - name: to
646
- in: query
647
- description: "Comments added before given time. Default: now"
648
- required: false
649
- schema:
650
- type: string
651
- format: date-time
652
- responses:
653
- "200":
654
- description: List of latest orders comments
655
- content:
656
- application/json:
657
- schema:
658
- $ref: "#/components/schemas/PageOfOrderComments"
659
- "400":
660
- description: Invalid request
661
- content:
662
- application/json:
663
- schema:
664
- $ref: "#/components/schemas/InvalidRequestDataResponse"
665
- "401":
666
- description: Not authorized for this resource
667
- "403":
668
- description: Access token expired
669
- "500":
670
- description: Error while processing the request
671
- content:
672
- application/json:
673
- schema:
674
- $ref: "#/components/schemas/ServerErrorResponse"
675
- /api/v2/tracking_number:
676
- get:
677
- tags:
678
- - Tracking Number
679
- summary: Get latest tracking numbers
680
- operationId: get_app_ecommerce_api_v2_gettrackingnumbers__invoke
681
- parameters:
682
- - name: page
683
- in: query
684
- description: Page number
685
- required: false
686
- schema:
687
- type: integer
688
- example: "1"
689
- - name: from
690
- in: query
691
- description: "Tracking numbers added after given time. Default: now - 1 day"
692
- required: false
693
- schema:
694
- type: string
695
- format: date-time
696
- - name: to
697
- in: query
698
- description: "Tracking numbers added before given time. Default: now"
699
- required: false
700
- schema:
701
- type: string
702
- format: date-time
703
- responses:
704
- "200":
705
- description: List of tracking numbers
706
- content:
707
- application/json:
708
- schema:
709
- $ref: "#/components/schemas/PageOfTrackingNumbers"
710
- "400":
711
- description: Invalid request
712
- content:
713
- application/json:
714
- schema:
715
- $ref: "#/components/schemas/InvalidRequestDataResponse"
716
- "401":
717
- description: Not authorized for this resource
718
- "403":
719
- description: Access token expired
720
- "500":
721
- description: Error while processing the request
722
- content:
723
- application/json:
724
- schema:
725
- $ref: "#/components/schemas/ServerErrorResponse"
726
- /api/v2/order:
727
- post:
728
- tags:
729
- - Order
730
- summary: Create an Order
731
- operationId: post_app_ecommerce_api_v2_postorder__invoke
732
- requestBody:
733
- required: true
734
- content:
735
- application/json:
736
- schema:
737
- $ref: "#/components/schemas/Order"
738
- responses:
739
- "201":
740
- description: Success
741
- content:
742
- application/json:
743
- schema:
744
- $ref: "#/components/schemas/PostOrderResponse"
745
- "400":
746
- description: Invalid data found in the request
747
- content:
748
- application/json:
749
- schema:
750
- $ref: "#/components/schemas/InvalidRequestDataResponse"
751
- "401":
752
- description: Not authorized for this resource
753
- "403":
754
- description: Access token expired
755
- "500":
756
- description: Error while processing the request
757
- content:
758
- application/json:
759
- schema:
760
- $ref: "#/components/schemas/ServerErrorResponse"
761
- /api/v2/order_cancellation:
762
- post:
763
- tags:
764
- - Order Cancellation
765
- summary: Cancel an order if possible (orders already in production cannot be
766
- cancelled)
767
- operationId: post_app_ecommerce_api_v2_postordercancellation__invoke
768
- requestBody:
769
- required: true
770
- content:
771
- application/json:
772
- schema:
773
- $ref: "#/components/schemas/OrderCancellation"
774
- responses:
775
- "200":
776
- description: Success
777
- content:
778
- application/json:
779
- schema:
780
- $ref: "#/components/schemas/OrderCancellationResponse"
781
- "400":
782
- description: Invalid data found in the request
783
- content:
784
- application/json:
785
- schema:
786
- $ref: "#/components/schemas/InvalidRequestDataResponse"
787
- "401":
788
- description: Not authorized for this resource
789
- "403":
790
- description: Access token expired
791
- "404":
792
- description: Order not found
793
- content:
794
- application/json:
795
- schema:
796
- $ref: "#/components/schemas/InvalidRequestDataResponse"
797
- "422":
798
- description: Order cancellation cannot be processed due to order status
799
- content:
800
- application/json:
801
- schema:
802
- $ref: "#/components/schemas/OrderCancellationResponse"
803
- "500":
804
- description: Error while processing the request
805
- content:
806
- application/json:
807
- schema:
808
- $ref: "#/components/schemas/ServerErrorResponse"
809
- components:
810
- schemas:
811
- PageOfClients:
812
- properties:
813
- items:
814
- type: array
815
- items:
816
- $ref: "#/components/schemas/Client"
817
- next_page:
818
- type: string
819
- nullable: true
820
- type: object
821
- InvalidRequestDataResponse:
822
- properties:
823
- invalid_parameters:
824
- type: array
825
- items:
826
- $ref: "#/components/schemas/InvalidParameter"
827
- result_code:
828
- description: HTTP status code
829
- type: integer
830
- example: 400
831
- nullable: false
832
- error_message:
833
- description: Error summary, in case of errors. Sometimes invalid_parameters may
834
- be empty!
835
- type: string
836
- example: Invalid parameters in the request
837
- nullable: false
838
- type: object
839
- ServerErrorResponse:
840
- properties:
841
- result_code:
842
- description: HTTP status code
843
- type: integer
844
- example: 500
845
- nullable: false
846
- error_message:
847
- description: Error summary
848
- type: string
849
- example: Internal Server Error
850
- nullable: true
851
- type: object
852
- Invoice:
853
- properties:
854
- id:
855
- description: Invoice id
856
- type: string
857
- example: "123456789"
858
- nullable: false
859
- client:
860
- description: Client owning the Invoice
861
- type: string
862
- example: client@mail.com
863
- nullable: false
864
- file:
865
- description: Direct link to Invoice PDF file
866
- type: string
867
- example: https://pl.doboxa.biz/documents/invoices/abc123/invoice_file.pdf
868
- nullable: false
869
- state:
870
- description: Invoice payment status
871
- type: string
872
- enum:
873
- - PAID
874
- - UNPAID
875
- nullable: false
876
- document_number:
877
- description: Invoice number
878
- type: string
879
- example: FAV/2023/11/23
880
- nullable: false
881
- document_amount:
882
- description: Amount to pay
883
- type: integer
884
- example: 12300
885
- nullable: false
886
- net_amount:
887
- description: Net amount
888
- type: integer
889
- example: 10000
890
- nullable: false
891
- tax_amount:
892
- description: Tax amount
893
- type: integer
894
- example: 2300
895
- nullable: false
896
- tax_rate:
897
- description: Tax rate
898
- type: string
899
- example: "23.5"
900
- nullable: true
901
- paid_amount:
902
- description: Amount already paid
903
- type: integer
904
- example: 0
905
- nullable: false
906
- currency:
907
- description: Currency
908
- type: string
909
- example: PLN
910
- nullable: false
911
- date_of_issue:
912
- description: Date of issue
913
- type: string
914
- format: date-time
915
- nullable: false
916
- due_date:
917
- description: Due date
918
- type: string
919
- format: date-time
920
- nullable: false
921
- document_type:
922
- description: Document type
923
- type: string
924
- enum:
925
- - main
926
- nullable: false
927
- orders:
928
- type: array
929
- items:
930
- $ref: "#/components/schemas/InvoiceOrder"
931
- invoice_items:
932
- type: array
933
- items:
934
- $ref: "#/components/schemas/InvoiceItem"
935
- type: object
936
- PageOfInvoices:
937
- properties:
938
- items:
939
- type: array
940
- items:
941
- $ref: "#/components/schemas/Invoice"
942
- next_page:
943
- type: string
944
- nullable: true
945
- type: object
946
- Me:
947
- properties:
948
- username:
949
- type: string
950
- type: object
951
- PageOfOrderComments:
952
- properties:
953
- items:
954
- type: array
955
- items:
956
- $ref: "#/components/schemas/OrderComment"
957
- next_page:
958
- type: string
959
- nullable: true
960
- type: object
961
- CreateOrderComment:
962
- required:
963
- - author_type
964
- - author_email
965
- - content
966
- - created_at
967
- properties:
968
- author_type:
969
- description: Author type
970
- type: string
971
- enum:
972
- - client
973
- - support
974
- nullable: false
975
- author_email:
976
- description: Author type
977
- type: string
978
- example: mail@mail.com
979
- nullable: false
980
- content:
981
- description: Comment content
982
- type: string
983
- example: Comment content
984
- nullable: false
985
- created_at:
986
- description: Comment creation time
987
- type: string
988
- format: date-time
989
- nullable: false
990
- type: object
991
- PostOrderCommentResponse:
992
- properties:
993
- result_code:
994
- description: HTTP status code
995
- type: integer
996
- example: 200
997
- nullable: false
998
- comment_id:
999
- description: Comment id, if successfully created
1000
- type: string
1001
- example: "123456"
1002
- nullable: false
1003
- type: object
1004
- OrderStatus:
1005
- properties:
1006
- status:
1007
- description: Order status
1008
- type: string
1009
- enum:
1010
- - new
1011
- - wait_for_payment
1012
- - paid
1013
- - in_progress
1014
- - ready_to_be_sent
1015
- - sent
1016
- - cancelled
1017
- - hold
1018
- - refund
1019
- nullable: false
1020
- item_status:
1021
- description: Order items status
1022
- type: array
1023
- items:
1024
- $ref: "#/components/schemas/OrderItemStatus"
1025
- nullable: false
1026
- type: object
1027
- PostOrderStatus:
1028
- required:
1029
- - status
1030
- properties:
1031
- status:
1032
- description: Order status
1033
- type: string
1034
- enum:
1035
- - new
1036
- - wait_for_payment
1037
- - paid
1038
- - in_progress
1039
- - ready_to_be_sent
1040
- - sent
1041
- - cancelled
1042
- - hold
1043
- - refund
1044
- nullable: false
1045
- item_status:
1046
- description: Order items status. If any item is not specified, its status will
1047
- be changed to order status
1048
- type: array
1049
- items:
1050
- $ref: "#/components/schemas/PostOrderStatusItem"
1051
- nullable: true
1052
- type: object
1053
- PostOrderStatusResponse:
1054
- properties:
1055
- result_code:
1056
- description: HTTP status code
1057
- type: integer
1058
- example: 200
1059
- nullable: false
1060
- type: object
1061
- PageOfOrderStatusChanges:
1062
- properties:
1063
- items:
1064
- type: array
1065
- items:
1066
- $ref: "#/components/schemas/OrderStatusChange"
1067
- next_page:
1068
- type: string
1069
- nullable: true
1070
- type: object
1071
- PageOfTrackingNumbers:
1072
- properties:
1073
- items:
1074
- type: array
1075
- items:
1076
- $ref: "#/components/schemas/TrackingNumber"
1077
- next_page:
1078
- type: string
1079
- nullable: true
1080
- type: object
1081
- Order:
1082
- required:
1083
- - deliver_address
1084
- - items
1085
- - order_time
1086
- - order_channel
1087
- - currency
1088
- properties:
1089
- external_id:
1090
- description: Your order id
1091
- type: string
1092
- example: "12345678"
1093
- nullable: false
1094
- billing_address:
1095
- readOnly: true
1096
- nullable: true
1097
- allOf:
1098
- - $ref: "#/components/schemas/BillingAddress"
1099
- deliver_address:
1100
- $ref: "#/components/schemas/DeliveryAddress"
1101
- items:
1102
- type: array
1103
- items:
1104
- $ref: "#/components/schemas/OrderItem"
1105
- order_time:
1106
- description: PHP's RFC3339_EXTENDED date-time (see
1107
- https://www.php.net/manual/en/class.datetimeinterface.php#datetimeinterface.constants.rfc3339-extended)
1108
- type: string
1109
- format: date-time
1110
- nullable: false
1111
- payment_time:
1112
- description: PHP's RFC3339_EXTENDED date-time (see
1113
- https://www.php.net/manual/en/class.datetimeinterface.php#datetimeinterface.constants.rfc3339-extended)
1114
- type: string
1115
- format: date-time
1116
- nullable: true
1117
- info:
1118
- description: Optional order description
1119
- type: string
1120
- example: Additional order description
1121
- nullable: true
1122
- order_channel:
1123
- description: Order channel
1124
- type: string
1125
- example: channel_id
1126
- nullable: true
1127
- order_source:
1128
- description: Order source
1129
- type: string
1130
- readOnly: true
1131
- example: source_id
1132
- nullable: true
1133
- currency:
1134
- description: Currency code (ISO 4217)
1135
- type: string
1136
- example: PLN
1137
- nullable: false
1138
- company_name:
1139
- description: Billing company name/id
1140
- type: string
1141
- example: company_id
1142
- nullable: true
1143
- own_delivery:
1144
- description: If set to true, a shipping label is required for every order.
1145
- Currently it is possible to upload shipping labels via FTP
1146
- type: boolean
1147
- example: false
1148
- discount_code:
1149
- description: Discount code
1150
- type: string
1151
- readOnly: true
1152
- example: DISCOUNT_CODE
1153
- nullable: true
1154
- partner_code:
1155
- description: Partner code
1156
- type: string
1157
- readOnly: true
1158
- example: PARTNER_CODE
1159
- nullable: true
1160
- order_original_data:
1161
- readOnly: true
1162
- nullable: true
1163
- allOf:
1164
- - $ref: "#/components/schemas/OrderOriginalData"
1165
- payment_method:
1166
- description: Original order payment method
1167
- type: string
1168
- enum:
1169
- - gotówka
1170
- - przelew
1171
- - karta
1172
- - Przelewy 24
1173
- - PayU
1174
- - PayU DE
1175
- - PayU EN
1176
- - PayU PL
1177
- - Kompensata
1178
- - PayPal
1179
- - Raty PayU
1180
- - pobranie
1181
- - amazon
1182
- - allegro
1183
- - Allegro PayU
1184
- - Allegro P24
1185
- - etsy
1186
- - emag.ro
1187
- - emag.hu
1188
- - real
1189
- - ebay
1190
- - stripe
1191
- - BRW
1192
- - eMag.bg
1193
- - Empik
1194
- - Home&you
1195
- - Home24
1196
- - Kaufland
1197
- - Erli
1198
- - Leroy Merlin
1199
- - Castorama
1200
- - Vivre
1201
- - Vilandy
1202
- - Pigu
1203
- - Fruugo
1204
- - Hood
1205
- - XXXLutz
1206
- - BricoDepot
1207
- - Adyen
1208
- - Mirakl
1209
- - Payoneer
1210
- - Hitmeister
1211
- readOnly: true
1212
- example: Adyen
1213
- nullable: true
1214
- payment_transaction_id:
1215
- description: Payment transaction id
1216
- type: string
1217
- readOnly: true
1218
- example: "3543647735754"
1219
- nullable: true
1220
- ag_invoice_requested:
1221
- type: boolean
1222
- readOnly: true
1223
- nullable: true
1224
- waybills:
1225
- type: array
1226
- items:
1227
- $ref: "#/components/schemas/Waybill"
1228
- attachments:
1229
- type: array
1230
- items:
1231
- $ref: "#/components/schemas/Attachment"
1232
- suggested_delivery_method:
1233
- description: Suggest delivery method (may be taken into consideration according
1234
- to business agreements)
1235
- type: string
1236
- readOnly: true
1237
- example: DHL
1238
- nullable: true
1239
- type: object
1240
- PostOrderResponse:
1241
- properties:
1242
- result_code:
1243
- description: HTTP status code
1244
- type: integer
1245
- example: 200
1246
- nullable: false
1247
- order_id:
1248
- description: Order id, if successfully created
1249
- type: string
1250
- example: "123456"
1251
- nullable: false
1252
- type: object
1253
- OrderCancellation:
1254
- required:
1255
- - order_id
1256
- properties:
1257
- order_id:
1258
- description: Doboxa order id
1259
- type: string
1260
- example: "123456"
1261
- nullable: false
1262
- type: object
1263
- OrderCancellationResponse:
1264
- properties:
1265
- cancelled:
1266
- description: Cancellation result
1267
- type: bool
1268
- example: true
1269
- nullable: false
1270
- details:
1271
- description: Additional details regarding the cancellation process
1272
- type: string
1273
- enum:
1274
- - cancelled
1275
- - already_in_production
1276
- nullable: false
1277
- type: object
1278
- Client:
1279
- properties:
1280
- email:
1281
- description: Client email
1282
- type: string
1283
- example: test@fairbox.biz
1284
- nullable: false
1285
- token:
1286
- description: Client token
1287
- type: string
1288
- example: vf24534gdsfvq42
1289
- nullable: false
1290
- type: object
1291
- InvalidParameter:
1292
- properties:
1293
- parameter:
1294
- description: Invalid parameter name
1295
- type: string
1296
- example: external_id
1297
- nullable: false
1298
- error_cause:
1299
- description: Error cause
1300
- type: string
1301
- example: Given external_id was already used
1302
- nullable: false
1303
- type: object
1304
- InvoiceOrder:
1305
- properties:
1306
- doboxa_order_id:
1307
- description: Order id
1308
- type: string
1309
- example: "23212332"
1310
- nullable: true
1311
- external_order_id:
1312
- description: Order external id
1313
- type: string
1314
- example: "23212332"
1315
- nullable: true
1316
- items:
1317
- type: array
1318
- items:
1319
- $ref: "#/components/schemas/InvoiceOrderItem"
1320
- type: object
1321
- InvoiceItem:
1322
- properties:
1323
- doboxa_item_id:
1324
- description: Doboxa item id. Can be null if invoice item cannot be mapped to
1325
- order item.
1326
- type: string
1327
- example: "21212332"
1328
- nullable: true
1329
- foreign_item_id:
1330
- description: Order.items.foreign_id provided while creating order. Can be null
1331
- if invoice item cannot be mapped to order item.
1332
- type: string
1333
- example: "21212332"
1334
- nullable: true
1335
- name:
1336
- description: Item name
1337
- type: string
1338
- example: Product name
1339
- nullable: false
1340
- qty:
1341
- description: Quantity
1342
- type: string
1343
- example: "2"
1344
- nullable: false
1345
- unit:
1346
- description: Unit type
1347
- type: string
1348
- example: szt
1349
- nullable: false
1350
- net_unit_price:
1351
- description: Unit net price
1352
- type: string
1353
- example: "100.00"
1354
- nullable: false
1355
- net_value:
1356
- description: Net position value
1357
- type: string
1358
- example: "100.00"
1359
- nullable: false
1360
- vat_value:
1361
- description: Tax amount
1362
- type: string
1363
- example: "23.00"
1364
- nullable: false
1365
- vat_rate:
1366
- description: Tax rate
1367
- type: string
1368
- example: "23"
1369
- nullable: false
1370
- currency:
1371
- description: Currency
1372
- type: string
1373
- example: PLN
1374
- nullable: false
1375
- type: object
1376
- OrderComment:
1377
- properties:
1378
- comment_id:
1379
- description: Doboxa comment id
1380
- type: string
1381
- example: "12345678"
1382
- nullable: false
1383
- author_type:
1384
- description: Author type
1385
- type: string
1386
- enum:
1387
- - client
1388
- - support
1389
- nullable: false
1390
- author:
1391
- description: Comment author. Can be empty
1392
- type: string
1393
- example: client@mail.com
1394
- nullable: true
1395
- content:
1396
- description: Comment content
1397
- type: string
1398
- example: Comment content
1399
- nullable: false
1400
- created_at:
1401
- description: Comment creation time
1402
- type: string
1403
- format: date-time
1404
- nullable: false
1405
- type: object
1406
- OrderItemStatus:
1407
- properties:
1408
- doboxa_order_id:
1409
- description: Id assigned to order by doboxa (returned after successful order
1410
- creation)
1411
- type: string
1412
- example: "12345678"
1413
- nullable: false
1414
- external_order_id:
1415
- description: Id provided in external_id during order creation
1416
- type: string
1417
- example: "12345678"
1418
- nullable: true
1419
- doboxa_item_id:
1420
- description: Item id assigned to item by doboxa
1421
- type: string
1422
- example: "123"
1423
- nullable: true
1424
- foreign_item_id:
1425
- description: Id provided in items.foreign_id during order creation
1426
- type: string
1427
- example: "123"
1428
- nullable: true
1429
- product_sku:
1430
- description: SKU of the product related to this item
1431
- type: string
1432
- example: SKU-123
1433
- nullable: true
1434
- status:
1435
- description: Product status
1436
- type: string
1437
- enum:
1438
- - new
1439
- - wait_for_payment
1440
- - paid
1441
- - in_progress
1442
- - ready_to_be_sent
1443
- - sent
1444
- - cancelled
1445
- - hold
1446
- - refund
1447
- nullable: false
1448
- type: object
1449
- PostOrderStatusItem:
1450
- required:
1451
- - doboxa_item_id
1452
- - status
1453
- properties:
1454
- doboxa_item_id:
1455
- description: Item id assigned to item by doboxa
1456
- type: string
1457
- example: "123"
1458
- nullable: true
1459
- status:
1460
- description: Order status
1461
- type: string
1462
- enum:
1463
- - new
1464
- - wait_for_payment
1465
- - paid
1466
- - in_progress
1467
- - ready_to_be_sent
1468
- - sent
1469
- - cancelled
1470
- - hold
1471
- - refund
1472
- nullable: false
1473
- type: object
1474
- OrderStatusChange:
1475
- properties:
1476
- order_id:
1477
- description: Doboxa order id
1478
- type: string
1479
- example: "12345678"
1480
- nullable: false
1481
- status:
1482
- description: Order status
1483
- type: string
1484
- enum:
1485
- - new
1486
- - wait_for_payment
1487
- - paid
1488
- - in_progress
1489
- - ready_to_be_sent
1490
- - sent
1491
- - cancelled
1492
- - hold
1493
- - refund
1494
- nullable: false
1495
- change_time:
1496
- description: Order status change time
1497
- type: string
1498
- format: date-time
1499
- nullable: false
1500
- item_status:
1501
- description: Order items status
1502
- type: array
1503
- items:
1504
- $ref: "#/components/schemas/OrderItemStatus"
1505
- nullable: false
1506
- type: object
1507
- TrackingNumber:
1508
- properties:
1509
- order_id:
1510
- description: Related order id
1511
- type: string
1512
- example: "12345678"
1513
- nullable: false
1514
- number:
1515
- description: Tracking number
1516
- type: string
1517
- example: "123456789009876543"
1518
- nullable: false
1519
- delivery_method:
1520
- description: Delivery method
1521
- type: string
1522
- nullable: false
1523
- sent_at:
1524
- description: Sent time. Can be empty (if not yet sent)
1525
- type: string
1526
- format: date-time
1527
- nullable: true
1528
- created_at:
1529
- description: Creation time
1530
- type: string
1531
- format: date-time
1532
- nullable: false
1533
- return_label:
1534
- $ref: "#/components/schemas/ReturnLabel"
1535
- order_items:
1536
- description: Order items assigned to the tracking number
1537
- type: array
1538
- items:
1539
- $ref: "#/components/schemas/TrackingNumberItem"
1540
- nullable: true
1541
- type: object
1542
- BillingAddress:
1543
- required:
1544
- - first_name
1545
- - last_name
1546
- - address1
1547
- - city
1548
- - post_code
1549
- - country_iso
1550
- properties:
1551
- first_name:
1552
- description: Customer's first name
1553
- type: string
1554
- example: John
1555
- nullable: false
1556
- last_name:
1557
- description: Customer's last name
1558
- type: string
1559
- example: Doe
1560
- nullable: false
1561
- company_name:
1562
- description: Additional/company name (for delivery)
1563
- type: string
1564
- example: Company name
1565
- nullable: true
1566
- phone_number:
1567
- description: Customer's phone number
1568
- type: string
1569
- maxLength: 20
1570
- minLength: 5
1571
- example: "+48123456789"
1572
- nullable: false
1573
- email:
1574
- description: Customer's e-mail address
1575
- type: string
1576
- example: johndoe@mail.com
1577
- nullable: false
1578
- address1:
1579
- description: Delivery address
1580
- type: string
1581
- example: 123 Dubious st.
1582
- nullable: false
1583
- address2:
1584
- description: Optional additional address line
1585
- type: string
1586
- example: Silky Walks dept.
1587
- nullable: true
1588
- city:
1589
- description: City
1590
- type: string
1591
- example: City
1592
- nullable: false
1593
- region:
1594
- description: Optional region name (required for delivery to some countries)
1595
- type: string
1596
- example: Region
1597
- nullable: true
1598
- post_code:
1599
- description: Postal code
1600
- type: string
1601
- example: "12345"
1602
- nullable: false
1603
- country_iso:
1604
- description: Country code - ISO 3166 alpha 2
1605
- type: string
1606
- example: PL
1607
- nullable: false
1608
- tax_id:
1609
- description: Tax identification number
1610
- type: string
1611
- example: PL123456789
1612
- nullable: true
1613
- type: object
1614
- DeliveryAddress:
1615
- required:
1616
- - first_name
1617
- - last_name
1618
- - phone_number
1619
- - email
1620
- - address1
1621
- - city
1622
- - post_code
1623
- - country_iso
1624
- properties:
1625
- first_name:
1626
- description: Customer's first name
1627
- type: string
1628
- example: John
1629
- nullable: false
1630
- last_name:
1631
- description: Customer's last name
1632
- type: string
1633
- example: Doe
1634
- nullable: false
1635
- company_name:
1636
- description: Additional/company name (for delivery)
1637
- type: string
1638
- example: Company name
1639
- nullable: true
1640
- phone_number:
1641
- description: Customer's phone number
1642
- type: string
1643
- maxLength: 20
1644
- minLength: 5
1645
- example: "+48123456789"
1646
- nullable: false
1647
- email:
1648
- description: Customer's e-mail address
1649
- type: string
1650
- example: johndoe@mail.com
1651
- nullable: false
1652
- address1:
1653
- description: Delivery address
1654
- type: string
1655
- example: 123 Dubious st.
1656
- nullable: false
1657
- address2:
1658
- description: Optional additional address line
1659
- type: string
1660
- example: Silky Walks dept.
1661
- nullable: true
1662
- city:
1663
- description: City
1664
- type: string
1665
- example: City
1666
- nullable: false
1667
- region:
1668
- type: string
1669
- nullable: true
1670
- post_code:
1671
- description: Postal code
1672
- type: string
1673
- example: "12345"
1674
- nullable: false
1675
- country_iso:
1676
- description: Country code - ISO 3166 alpha 2
1677
- type: string
1678
- example: PL
1679
- nullable: false
1680
- delivery_point_id:
1681
- description: Delivery point (e.g. paczkomat) id
1682
- type: string
1683
- example: "12345678"
1684
- nullable: true
1685
- allegro_smart_account_id:
1686
- description: Allegro account id for processing smart orders
1687
- type: string
1688
- example: "12345678"
1689
- nullable: true
1690
- type: object
1691
- OrderItem:
1692
- required:
1693
- - id
1694
- - qty
1695
- properties:
1696
- foreign_id:
1697
- description: Your order item id
1698
- type: string
1699
- example: "432536"
1700
- nullable: true
1701
- id:
1702
- description: SKU
1703
- type: string
1704
- example: FT-688-VE90-60
1705
- nullable: false
1706
- additional_sku:
1707
- description: Your sku
1708
- type: string
1709
- example: FT-688-VE90-60
1710
- nullable: true
1711
- ean:
1712
- description: Product EAN
1713
- type: string
1714
- example: "123456789"
1715
- nullable: true
1716
- symbol_code:
1717
- description: Product symbol code
1718
- type: string
1719
- example: VE90-60
1720
- nullable: true
1721
- name:
1722
- description: Article display name
1723
- type: string
1724
- example: Product name
1725
- nullable: false
1726
- qty:
1727
- description: Quantity (pieces)
1728
- type: integer
1729
- minimum: 0
1730
- exclusiveMinimum: true
1731
- example: 1
1732
- nullable: false
1733
- item_price:
1734
- description: Sale item price, 9999 = 99.99
1735
- type: integer
1736
- minimum: 0
1737
- example: 9999
1738
- nullable: false
1739
- width_in_cm:
1740
- description: Custom print width (in cm)
1741
- type: string
1742
- example: 100
1743
- nullable: true
1744
- height_in_cm:
1745
- description: Custom print height (in cm)
1746
- type: string
1747
- example: 80
1748
- nullable: true
1749
- custom_file:
1750
- description: Custom file path or name (e. g. from FTP server)
1751
- type: string
1752
- example: https://pl.doboxa.biz/upload/1/product-mask/FT-688/FT-688-2000x1333-125.jpg
1753
- nullable: true
1754
- additional_custom_file:
1755
- description: Additional custom file path or name (e. g. from FTP server)
1756
- type: string
1757
- example: https://pl.doboxa.biz/upload/1/product-mask/FT-688/FT-688-2000x1333-125.jpg
1758
- nullable: true
1759
- additional_info:
1760
- description: Optional additional info about the item
1761
- type: string
1762
- example: additional info
1763
- nullable: true
1764
- crop_data:
1765
- nullable: true
1766
- allOf:
1767
- - $ref: "#/components/schemas/OrderItemCropData"
1768
- initial_price:
1769
- type: integer
1770
- minimum: 0
1771
- readOnly: true
1772
- nullable: true
1773
- item_delivery_cost:
1774
- type: integer
1775
- minimum: 0
1776
- exclusiveMinimum: true
1777
- readOnly: true
1778
- nullable: true
1779
- item_original_data:
1780
- readOnly: true
1781
- nullable: true
1782
- allOf:
1783
- - $ref: "#/components/schemas/OrderItemOriginalData"
1784
- fulfillment_date:
1785
- description: PHP's RFC3339_EXTENDED date-time (see
1786
- https://www.php.net/manual/en/class.datetimeinterface.php#datetimeinterface.constants.rfc3339-extended)
1787
- type: string
1788
- format: date-time
1789
- nullable: false
1790
- custom_file_id:
1791
- description: Custom file id (to reuse in other orders)
1792
- type: string
1793
- example: 5f009451b3b4d415234f3cabbab857c9
1794
- nullable: true
1795
- item_tax:
1796
- type: integer
1797
- minimum: 0
1798
- exclusiveMinimum: true
1799
- readOnly: true
1800
- nullable: true
1801
- type: object
1802
- OrderOriginalData:
1803
- properties:
1804
- currency:
1805
- description: Original/client currency
1806
- type: string
1807
- example: PLN
1808
- nullable: true
1809
- order_sum:
1810
- description: Original order sum (gross), 9999 = 99.99
1811
- type: integer
1812
- minimum: 0
1813
- example: 9999
1814
- nullable: false
1815
- delivery_cost:
1816
- description: Original order delivery cost, 999 = 9.99
1817
- type: integer
1818
- example: "999"
1819
- nullable: true
1820
- payment_cost:
1821
- description: Original order payment cost, 999 = 9.99
1822
- type: integer
1823
- example: "999"
1824
- nullable: true
1825
- rebate:
1826
- description: Original order rebate, 999 = 9.99
1827
- type: integer
1828
- example: "999"
1829
- nullable: true
1830
- type: object
1831
- Waybill:
1832
- required:
1833
- - file_path
1834
- properties:
1835
- number:
1836
- description: Bill number
1837
- type: string
1838
- example: "0000001234567890000"
1839
- nullable: true
1840
- delivery_method:
1841
- description: Company processing the delivery
1842
- type: string
1843
- enum:
1844
- - dpd
1845
- - dpd_de
1846
- - dpd_pl
1847
- - gls
1848
- - fedex
1849
- - fedex_pl
1850
- - dhl
1851
- - dhl_de
1852
- - ups
1853
- - inpost
1854
- - to_resolve_in_erp
1855
- nullable: true
1856
- file_path:
1857
- description: Path to a printable file (or file name)
1858
- type: string
1859
- example: https://path.to/file.pdf
1860
- nullable: false
1861
- articles:
1862
- description: Order articles (foreign_id) related to this waybill
1863
- type: array
1864
- items:
1865
- description: foreign_id of all articles related to this waybill (as string)
1866
- type: string
1867
- example: "432536"
1868
- nullable: true
1869
- type: object
1870
- Attachment:
1871
- required:
1872
- - type
1873
- - file_path
1874
- properties:
1875
- type:
1876
- description: Attachment type
1877
- type: string
1878
- example: Installation manual
1879
- nullable: false
1880
- file_path:
1881
- description: Path to a printable file (or file name)
1882
- type: string
1883
- example: https://path.to/file.pdf
1884
- nullable: false
1885
- articles:
1886
- description: Order articles (foreign_id) related to this waybill
1887
- type: array
1888
- items:
1889
- description: foreign_id of all articles related to this waybill (as string)
1890
- type: string
1891
- example: "432536"
1892
- nullable: true
1893
- type: object
1894
- InvoiceOrderItem:
1895
- properties:
1896
- doboxa_item_id:
1897
- description: Order item id
1898
- type: string
1899
- example: "21212332"
1900
- nullable: true
1901
- foreign_item_id:
1902
- description: Order item external id
1903
- type: string
1904
- example: "21212332"
1905
- nullable: true
1906
- type: object
1907
- ReturnLabel:
1908
- properties:
1909
- number:
1910
- description: Tracking number
1911
- type: string
1912
- example: "123456789009876543"
1913
- nullable: false
1914
- delivery_method:
1915
- description: Delivery method
1916
- type: string
1917
- nullable: false
1918
- type: object
1919
- TrackingNumberItem:
1920
- properties:
1921
- doboxa_item_id:
1922
- description: Doboxa item id
1923
- type: string
1924
- example: "12345678"
1925
- nullable: false
1926
- foreign_item_id:
1927
- description: External item id
1928
- type: string
1929
- example: "12345678"
1930
- nullable: true
1931
- product_sku:
1932
- description: Product SKU
1933
- type: string
1934
- example: SKU
1935
- nullable: false
1936
- type: object
1937
- OrderItemCropData:
1938
- properties:
1939
- left:
1940
- type: string
1941
- example: "0"
1942
- nullable: true
1943
- top:
1944
- type: string
1945
- example: "0"
1946
- nullable: true
1947
- width:
1948
- type: string
1949
- example: "700"
1950
- nullable: true
1951
- height:
1952
- type: string
1953
- example: "500"
1954
- nullable: true
1955
- original_photo_width:
1956
- type: string
1957
- example: "700"
1958
- nullable: true
1959
- original_photo_height:
1960
- type: string
1961
- example: "700"
1962
- nullable: true
1963
- filter:
1964
- description: Filter - none, blackwhite, sepia
1965
- type: string
1966
- enum:
1967
- - none
1968
- - blackwhite
1969
- - sepia
1970
- nullable: true
1971
- reflection:
1972
- description: Reflection - none, vertical, horizontal, both
1973
- type: string
1974
- enum:
1975
- - none
1976
- - vertical
1977
- - horizontal
1978
- - both
1979
- nullable: true
1980
- rotation:
1981
- description: Number of degrees to rotate the image clockwise
1982
- type: int
1983
- example: 90
1984
- nullable: true
1985
- scale:
1986
- description: Resize the original image by
1987
- type: string
1988
- example: "0.5"
1989
- nullable: true
1990
- type: object
1991
- OrderItemOriginalData:
1992
- properties:
1993
- item_unit_price:
1994
- description: Original item unit price (gross), 9999 = 99.99
1995
- type: integer
1996
- minimum: 0
1997
- example: 9999
1998
- nullable: false
1999
- item_value:
2000
- description: Original item value (gross), 9999 = 99.99
2001
- type: integer
2002
- minimum: 0
2003
- example: 9999
2004
- nullable: false
2005
- type: object
2006
- securitySchemes:
2007
- Bearer:
2008
- type: apiKey
2009
- description: "Value: Bearer {token}"
2010
- name: Authorization
2011
- in: header
2012
- security:
2013
- - Bearer: []