-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathInternetmarke.yaml
1815 lines (1801 loc) · 58.7 KB
/
Internetmarke.yaml
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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.1
info:
version: "1.25"
title: Deutsche Post INTERNETMARKE API
description: >-
Division: Post & Parcel Germany<br />
The INTERNETMARKE is the online-postage for mail products of Deutsche Post AG.
termsOfService: >-
https://www.deutschepost.de/de/i/internetmarke-porto-drucken/kundenservice/internetmarke/kontakt.html
contact:
name: Deutsche Post / DHL
url: >-
https://www.deutschepost.de/de/i/internetmarke-porto-drucken/kundenservice/internetmarke/kontakt.html
license:
name: License
url: https://www.deutschepost.com
servers:
- url: https://api-eu.dhl.com/post/de/shipping/im/v1
description: Production environment
tags:
- name: ApiVersionResource
description: The REST Api version resource (Healthcheck).
- name: UserResource
description: >-
The rest resource user consists of two blocks of actions:<ul><li>
Authorization of DPDHL external clients,</li><li> Authorization of DPDHL
internal clients and retrieve of the user profile.</li></ul>
- name: AppResource
description: >-
The rest resource app is used to sell Internet stamps that are generated
in DP DHL's INTERNETMARKE application. The Internet stamp is generated via
an individual cash account assigned to the end customer.<br/>The app
resource consists of three blocks of actions:<ul><li> User cash
management,</li><li> Internet stamps and</li><li> Provision of
information.</li></ul>
paths:
/:
get:
tags:
- ApiVersionResource
summary: Get information about this REST Api version.
operationId: apiVersion
description: |
The call can be used to obtain the current version of the API and to confirm that the API is operational.
Note that this call does not require authentication, it can also be called via browser.
responses:
'200':
description: Major, minor, and build number being returned as x.y.z
content:
application/json:
schema:
type: object
properties:
amp:
type: object
properties:
name:
type: string
example: pp-post-internetmarke
version:
type: string
description: "Sandbox version is >= Prod version"
pattern: '^v\d{1,2}.\d{1,2}[.\d{1,5}]$'
example: 'v1.1.4'
rev:
type: string
example: '13'
env:
type: string
example: prod-eu
/app/wallet:
put:
tags:
- AppResource
summary: Charge users wallet
operationId: chargeWallet
parameters:
- name: amount
in: query
description: >-
The amount (positive integer as EUROCENT) to be charged for users
wallet.
required: true
schema:
minimum: 1
type: integer
format: int32
responses:
'200':
description: OK, users wallet was charged successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/ChargeWalletResponse'
'400':
description: >-
Bad request, details about the error are described in the response
body.
content:
application/json:
schema:
$ref: '#/components/schemas/RequestStatus'
'401':
description: >-
Unauthorized. Credentials provided are likely invalid.
content:
application/json:
schema:
$ref: '#/components/schemas/Error401Response'
'403':
description: Forbidden, user has not enough privileges to perform this request.
content:
application/json:
schema:
$ref: '#/components/schemas/RequestStatus'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/RequestStatus'
'429':
description: Too Many Requests
content:
application/json:
schema:
$ref: '#/components/schemas/Error429Response'
'500':
description: >-
Internal Server Error, details about the technical error are
provided in the response body.
content:
application/json:
schema:
$ref: '#/components/schemas/RequestStatus'
security:
- BearerAuth: []
/user:
post:
tags:
- UserResource
summary: Get authorization token.
operationId: authorization
description: |
__This request is the precondition for almost all other calls!__
The call provides you with the Bearer token which is then used for all other calls.
Here is how:
The client makes a POST request to the 'user' resource by adding the following parameters
using the application/x-www-form-urlencoded format with a character
encoding of UTF-8 in the HTTP request body:
* grant_type __REQUIRED__. Must be set to "client_credentials".
* client_id __REQUIRED__ (aka client_id (api key) -- obtained in DHL Developer Portal)
* client_secret __REQUIRED__ (aka client_secret -- obtained in DHL Developer Portal)
* username __REQUIRED__.
* password __REQUIRED__.
The internetmarke credentials (username, password) for production access will be provided during onboarding, along with additional information. For sandbox access, suitable default values exist. See the remainder of the documentation.
parameters:
- name: forPayment
in: query
description: Flag to indicate the authorization for payment use case.
required: false
schema:
type: boolean
default: false
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
type: object
properties:
grant_type:
type: string
enum: [client_credentials]
description: OAuth2 standard content, must be set to 'client_credentials'
username:
type: string
example: franz.klammer
description: Internetmarke user name (e.g. 'franz.klammer').
password:
type: string
example: abfahrt123#
description: Internetmarke password (e.g. 'abfahrt123#')
client_id:
type: string
example: XjSnyVWgQp1ShIQ5HQ6Vq5PIYLN2jGNS
description: API client_id obtained from developer portal (e.g. 'XjSnyVWgQp1ShIQ5HQ6Vq5PIYLN2jGNS')
client_secret:
type: string
example: TICgJWGRysH7mA57
description: API client_secret obtained from developer portal (e.g. 'TICgJWGRysH7mA57')
required:
- grant_type
- client_id
- client_secret
- username
- password
responses:
'200':
description: OK, user is successfully authorized.
content:
application/json:
schema:
$ref: '#/components/schemas/Authentication200Response'
'400':
description: >-
Bad request, details about the error are described in the response
body.
content:
application/json:
schema:
$ref: '#/components/schemas/RequestStatus'
'401':
description: >-
Unauthorized, user account is locked or the provided authorization
token is not valid.
content:
application/json:
schema:
$ref: '#/components/schemas/Error401Response'
'429':
description: Too Many Requests
content:
application/json:
schema:
$ref: '#/components/schemas/Error429Response'
'500':
description: >-
Internal Server Error, details about the technical error are
provided in the response body.
content:
application/json:
schema:
$ref: '#/components/schemas/RequestStatus'
/app/shoppingcart:
post:
tags:
- AppResource
summary: Initializes a shopping cart and returns the shopOrderId.
operationId: initShoppingCartApp
responses:
'200':
description: OK, shopping cart initialization was successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/InitShoppingCartResponse'
'400':
description: >-
Bad request, details about the error are described in the response
body, i.e. shopping cart pdf isn't finalized right now.
content:
application/json:
schema:
$ref: '#/components/schemas/RequestStatus'
'401':
description: >-
Unauthorized, user account is locked or the provided authorization
token is not valid.
content:
application/json:
schema:
$ref: '#/components/schemas/Error401Response'
'403':
description: Forbidden, user has not enough privileges to perform this request.
content:
application/json:
schema:
$ref: '#/components/schemas/RequestStatus'
'404':
description: Not found, the specified shopOrderId could not be found.
content:
application/json:
schema:
$ref: '#/components/schemas/RequestStatus'
'429':
description: Too Many Requests
content:
application/json:
schema:
$ref: '#/components/schemas/Error429Response'
'500':
description: >-
Internal Server Error, details about the technical error are
provided in the response body.
content:
application/json:
schema:
$ref: '#/components/schemas/RequestStatus'
security:
- BearerAuth: []
/app/shoppingcart/png:
post:
tags:
- AppResource
summary: Checkouts ot the PNG shopping cart.
operationId: checkoutShoppingCartPNGApp
parameters:
- name: validate
in: query
description: >-
The response will contain the link to a thumbnail image of an
Internet brand in PNG format, which the third-party application must
integrate accordingly. The print format is not relevant at this
point. The service is given a product code, optionally a motif and a
layout format. This information is encoded in the link and evaluated
by INTERNETMARKE when the preview image is rendered. If the product
code or theme ID is invalid, the response to the caller will contain
appropriate information.<br/> For the validate (preview) case the
'Authorization' header is not required.
required: false
schema:
type: boolean
default: false
- name: finalize
in: query
description: >-
This request parameter enables the direct finalization of the
shopping cart and an extra finalization request is not required.
required: false
schema:
type: boolean
default: false
requestBody:
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/AppShoppingCartPNGRequest'
- $ref: '#/components/schemas/AppShoppingCartPreviewPNGRequest'
required: true
responses:
'200':
description: OK, create and checkout shopping cart png was successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/CheckoutShoppingCartApp200Response'
'400':
description: >-
Bad request, details about the error are described in the response
body.
content:
application/json:
schema:
$ref: '#/components/schemas/RequestStatus'
'401':
description: >-
Unauthorized, user account is locked or the provided authorization
token is not valid.
content:
application/json:
schema:
$ref: '#/components/schemas/Error401Response'
'403':
description: Forbidden, user has not enough privileges to perform this request.
content:
application/json:
schema:
$ref: '#/components/schemas/RequestStatus'
'429':
description: Too Many Requests
content:
application/json:
schema:
$ref: '#/components/schemas/Error429Response'
'500':
description: >-
Internal Server Error, details about the technical error are
provided in the response body.
content:
application/json:
schema:
$ref: '#/components/schemas/RequestStatus'
security:
- BearerAuth: []
/app/shoppingcart/pdf:
post:
tags:
- AppResource
summary: Checkouts ot the PDF shopping cart.
operationId: checkoutShoppingCartPDFApp
parameters:
- name: validate
in: query
description: >-
This request parameter enables the validate (preview) case.<br/>The
response will contain the link to a preview image of an internet
stamp in PDF format. A product code, a layout format and optionally
a motif are transferred to the service. This information is encoded
in the link and evaluated by INTERNETMARKE when the preview image is
rendered. If the product code, print format, or theme ID is invalid,
the response to the caller will contain appropriate information.
<br/><br/> For the validate (preview) case the 'Authorization'
header is not required and the request body has to be of the
specified type (See
`#/components/schemas/AppShoppingCartPreviewPDFRequest`).
required: false
schema:
type: boolean
default: false
- name: finalize
in: query
description: >-
This request parameter enables the direct finalization of the
shopping cart and an extra finalization request is not required.
required: false
schema:
type: boolean
default: false
requestBody:
content:
application/json:
schema:
description: >-
The request body structure can be of different types. The type
of the request has to be provided by specifying the filed 'type'
of the body.
oneOf:
- $ref: '#/components/schemas/AppShoppingCartPDFRequest'
- $ref: '#/components/schemas/AppShoppingCartPreviewPDFRequest'
required: true
responses:
'200':
description: OK, create and checkout shopping cart pdf was successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/CheckoutShoppingCartApp200Response'
'400':
description: >-
Bad request, details about the error are described in the response
body.
content:
application/json:
schema:
$ref: '#/components/schemas/RequestStatus'
'401':
description: >-
Unauthorized, user account is locked or the provided authorization
token is not valid.
content:
application/json:
schema:
$ref: '#/components/schemas/Error401Response'
'403':
description: Forbidden, user has not enough privileges to perform this request.
content:
application/json:
schema:
$ref: '#/components/schemas/RequestStatus'
'429':
description: Too Many Requests
content:
application/json:
schema:
$ref: '#/components/schemas/Error429Response'
'500':
description: >-
Internal Server Error, details about the technical error are
provided in the response body.
content:
application/json:
schema:
$ref: '#/components/schemas/RequestStatus'
security:
- BearerAuth: []
/app/retoure:
get:
tags:
- AppResource
summary: Retrieve retoure state for App.
operationId: retrieveRetoureStateApp
parameters:
- name: shopRetoureId
in: query
description: The shopRetoureId was returned from the retoure Vouchers request.
required: false
schema:
type: string
- name: retoureTransactionId
in: query
description: >-
Internal transaction number under which the refund was booked in the
PCF.
required: false
schema:
type: integer
format: int32
- name: startDate
in: query
description: >-
The start date of the search. Expected format:
yyyy-MM-dd'T'HH:mm:ss.SSSXXX.
required: false
schema:
type: string
format: date-time
- name: endDate
in: query
description: >-
The end date of the search. Expected format:
yyyy-MM-dd'T'HH:mm:ss.SSSXXX.
required: false
schema:
type: string
format: date-time
responses:
'200':
description: OK, retoure state found successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/RetrieveRetoureStateResponse'
'400':
description: >-
Bad request, details about the error are described in the response
body.
content:
application/json:
schema:
$ref: '#/components/schemas/RequestStatus'
'403':
description: Forbidden, user has not enough privileges to perform this request.
content:
application/json:
schema:
$ref: '#/components/schemas/RequestStatus'
'429':
description: Too Many Requests
content:
application/json:
schema:
$ref: '#/components/schemas/Error429Response'
'500':
description: >-
Internal Server Error, details about the technical error are
provided in the response body.
content:
application/json:
schema:
$ref: '#/components/schemas/RequestStatus'
security:
- BearerAuth: []
post:
tags:
- AppResource
summary: Retoure vouchers For App.
operationId: retoureVouchersApp
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/RetoureVouchersRequest'
required: true
responses:
'200':
description: OK, retoure vouchers processed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/RetoureVouchersResponse'
'400':
description: >-
Bad request, details about the error are described in the response
body.
content:
application/json:
schema:
$ref: '#/components/schemas/RequestStatus'
'403':
description: Forbidden, user has not enough privileges to perform this request.
content:
application/json:
schema:
$ref: '#/components/schemas/RequestStatus'
'429':
description: Too Many Requests
content:
application/json:
schema:
$ref: '#/components/schemas/Error429Response'
'500':
description: >-
Internal Server Error, details about the technical error are
provided in the response body.
content:
application/json:
schema:
$ref: '#/components/schemas/RequestStatus'
security:
- BearerAuth: []
/user/profile:
get:
tags:
- UserResource
summary: Authenticate and retrieve authorized user's data for shop.
operationId: retrieveUserData
description: |
The client retrieves certain settings about his user profile.
responses:
'200':
description: >-
OK, user is successfully authorized and the user data returned
within the response body.
content:
application/json:
schema:
$ref: '#/components/schemas/RetrieveUserDataResponse'
'400':
description: >-
Bad request, details about the error are described in the response
body.
content:
application/json:
schema:
$ref: '#/components/schemas/RequestStatus'
'401':
description: Unauthorized, please check the Bearer token.
content:
application/json:
schema:
$ref: '#/components/schemas/Error401Response'
'429':
description: Too Many Requests
content:
application/json:
schema:
$ref: '#/components/schemas/Error429Response'
'500':
description: >-
Internal Server Error, details about the technical error are
provided in the response body.
content:
application/json:
schema:
$ref: '#/components/schemas/RequestStatus'
security:
- BearerAuth: []
/app/shoppingcart/{shopOrderId}:
get:
tags:
- AppResource
summary: Retrieves a shopping cart.
operationId: retrieveShoppingCartApp
parameters:
- name: shopOrderId
in: path
description: >-
The shopOrderId was responsed within the response body of the
checkout operation.
required: true
schema:
maxLength: 18
minLength: 1
type: string
responses:
'200':
description: OK, retrieve shopping cart pdf was successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/CheckoutShoppingCartAppResponse'
'400':
description: >-
Bad request, details about the error are described in the response
body.
content:
application/json:
schema:
$ref: '#/components/schemas/RequestStatus'
'401':
description: >-
Unauthorized, user account is locked or the provided authorization
token is not valid.
content:
application/json:
schema:
$ref: '#/components/schemas/Error401Response'
'403':
description: Forbidden, user has not enough privileges to perform this request.
content:
application/json:
schema:
$ref: '#/components/schemas/RequestStatus'
'404':
description: Not found, the specified shopOrderId could not be found.
content:
application/json:
schema:
$ref: '#/components/schemas/RequestStatus'
'429':
description: Too Many Requests
content:
application/json:
schema:
$ref: '#/components/schemas/Error429Response'
'500':
description: >-
Internal Server Error, details about the technical error are
provided in the response body.
content:
application/json:
schema:
$ref: '#/components/schemas/RequestStatus'
security:
- BearerAuth: []
/app/catalog:
get:
tags:
- AppResource
summary: Retrieve catalogs.
operationId: retrieveCatalogApp
parameters:
- name: types
in: query
description: >-
The type of the required catalog, can be specified as single or
multiple. Only specified types will be returned.
required: true
schema:
type: array
items:
type: string
enum:
- PUBLIC
- PRIVATE
- PAGE_FORMATS
- CONTRACT_PRODUCTS
responses:
'200':
description: OK, specified catalog content was found successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/RetrieveCatalogResponse'
'400':
description: >-
Bad request, details about the error are described in the response
body.
content:
application/json:
schema:
$ref: '#/components/schemas/RequestStatus'
'401':
description: >-
Unauthorized, user account is locked or the provided authorization
token is not valid.
content:
application/json:
schema:
$ref: '#/components/schemas/Error401Response'
'403':
description: Forbidden, user has not enough privileges to perform this request.
content:
application/json:
schema:
$ref: '#/components/schemas/RequestStatus'
'404':
description: Not found, the specified catalog could not be found.
content:
application/json:
schema:
$ref: '#/components/schemas/RequestStatus'
'429':
description: Too Many Requests
content:
application/json:
schema:
$ref: '#/components/schemas/Error429Response'
'500':
description: >-
Internal Server Error, details about the technical error are
provided in the response body.
content:
application/json:
schema:
$ref: '#/components/schemas/RequestStatus'
security:
- BearerAuth: []
components:
schemas:
RequestStatus:
required:
- status
- title
- detail
type: object
properties:
status:
type: string
description: The http status code.
title:
type: string
description: The title of the error.
detail:
type: string
description: The detailed description about the error.
description: The response details in case of errors.
example:
status: 400
title: Bad Request
detail: I need both username and password in the www-form-encoded body.
ChargeWalletResponse:
required:
- shopOrderId
type: object
properties:
shopOrderId:
maxLength: 18
minLength: 1
type: string
description: >-
The order number in the shop. All characters are allowed except <
and &.
walletBalance:
type: integer
description: The new balance.
format: int32
description: The response object for the charge wallet operation.
Error429Response:
required:
- status
- title
- detail
type: object
properties:
status:
type: integer
description: http status code
title:
type: string
description: textual representation of http code
detail:
type: string
description: details about the issue
example:
status: 429
title: Too Many Requests
detail: 'Too many requests sent, please try again later. (Developer [email protected] using app my-app and product pp-post-internetmarke: 500 requests allowed within 2 hour(s))'
Error401Response:
required:
- status
- title
- detail
type: object
properties:
status:
type: integer
description: http status code
title:
type: string
description: textual representation of http code
detail:
type: string
description: details about the issue
example:
status: 401
title: Unauthorized
detail: I need a bearer token in the authorization header.
Authentication200Response:
type: object
properties:
access_token:
type: string
description: The access token / bearer token
walletBalance:
type: integer
description: money balance in portokasse
infoMessage:
type: string
description: info message, if any
tokenType:
type: string
description: Will always contain 'BearerToken'
expires_in:
type: integer
description: remaining token validity in seconds
issued_at:
type: string
pattern: '^[A-Za-z]{3}, \d{2} [A-Za-z]{3} \d{4} \d{2}:\d{2}:\d{2} GMT$'
description: Time when token was issued
external_customer_id:
type: string
description: Matches the user requesting the token, used internally
autenticated_user:
type: string
description: user requesting the token
example:
access_token: BnN6L2SeyMjKcIMGhgaaUO6GNAIMBtdqmG7klJKbcIo=
walletBalance: 2446814
infoMessage: ''
token_type: BearerToken
expires_in: 3000
issued_at: Wed, 03 Apr 2024 08:37:17 GMT
external_customer_id: DHL-0123
authenticated_user: [email protected]
InitShoppingCartResponse:
required:
- shopOrderId
type: object
properties:
shopOrderId:
maxLength: 18
minLength: 1
type: string
description: >-
The order number in the shop. All characters are allowed except <
and &.
description: The response object for creating the shopOrderId..
Address:
required:
- addressLine1
- city
- country
- name
- postalCode
type: object
properties:
name:
maxLength: 50
minLength: 1
type: string
description: The name information (firstname lastname)
example: Max Mustermann
additionalName:
maxLength: 40
minLength: 0
type: string
description: The additional name information (i. e. company name)
example: Deutsche Post AG
addressLine1:
maxLength: 50
minLength: 1
type: string
description: >-
This is the first line of the address. Usually street name and house
number.
addressLine2:
maxLength: 60
minLength: 1
type: string
description: >-
Line 2 of the street address. Most of the time this is not needed
and not printed to most labels.
example: 3rd Floor
postalCode:
maxLength: 10
minLength: 3
pattern: ^[0-9A-Za-z]+([ -]?[0-9A-Za-z]+)*$
type: string
description: Mandatory for all countries that use a postal code system.
example: '53113'
city:
maxLength: 40
minLength: 1
type: string
description: The name of the city.
example: Berlin
country:
maxLength: 3
minLength: 3
type: string
description: The iso 3 code of the country.
example: DEU
AddressBinding:
required:
- receiver
- sender
type: object
properties:
sender:
$ref: '#/components/schemas/Address'
receiver:
$ref: '#/components/schemas/Address'
description: The combination of sender and receiver address.
CashOnDelivery:
required:
- accountOwner
- amount
- bic
- iban
- paymentRecipient
- paymentReference
type: object
properties:
paymentRecipient: