-
Notifications
You must be signed in to change notification settings - Fork 133
/
VTEX - VTEX Shipping Network API.json
904 lines (903 loc) · 34.7 KB
/
VTEX - VTEX Shipping Network API.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
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
{
"openapi": "3.0.0",
"info": {
"title": "VTEX Shipping Network API",
"contact": {},
"description": "[VTEX Shipping Network](https://vtex.com/br-pt/shipping-network/) is a solution that connects carriers and merchants for deliveries at better freight costs and smarter logistics operations.\r\n\r\n>ℹ️ **VTEX Shipping Network** is available exclusively in Brazil.\r\n\r\nThe tracking process has two main parts:\r\n- **Notification:** The [carrier](https://help.vtex.com/en/tutorial/carriers-on-vtex--7u9duMD5UQa2QQwukAWMcE) is notified that a package is being dispatched.\r\n- **Tracking:** The package being delivered by the carrier is tracked from the start of its journey to its final destination.\r\n\r\nTo integrate with the VTEX Shipping Network hub, carriers must develop [VTEX IO](https://developers.vtex.com/docs/guides/vtex-io-documentation-what-is-vtex-io) apps and associate them with specific endpoints. Once integrated with the hub, these carrier apps will be connected to other VTEX systems, ensuring seamless execution of the necessary steps for the tracking process.\r\n\r\n>ℹ️ For detailed instructions, see the [VTEX Shipping Network integration guide](https://developers.vtex.com/docs/guides/vtex-shipping-network).\r\n\r\n## VTEX Shipping Network API Index\r\n\r\n### Notification\r\n\r\n- `POST` [Notify carrier with app](https://developers.vtex.com/docs/api-reference/vtex-shipping-network-api#post-/-app_name-/v-app_version-/-account-/-workspace-/notify)\r\n\r\n### Tracking\r\n\r\n- `POST` [Tracking events with app](https://developers.vtex.com/docs/api-reference/vtex-shipping-network-api#post-/-app_name-/v-app_version-/-account-/-workspace-/tracking)\r\n\r\n## Common parameters\r\n\r\n| **Parameter name** | **Description** | **Type** |\r\n| --- | --- | --- |\r\n| `{{accountName}}` | Name of the VTEX account. Used as part of the URL. | Server variable. |\r\n| `{{environment}}` | Environment to use. Used as part of the URL. The default value is `vtexcommercestable`. | Server variable. |\r\n| `X-VTEX-API-AppKey` | Unique identifier of the [application key](https://developers.vtex.com/docs/guides/api-authentication-using-application-keys). | Authentication header. Must be used together with `X-VTEX-API-AppToken`. Not necessary when using `VtexIdclientAutCookie`. |\r\n| `X-VTEX-API-AppToken` | Secret token of the [application key](https://developers.vtex.com/docs/guides/api-authentication-using-application-keys). | Authentication header. Must be used together with X-VTEX-API-AppKey. Not necessary when using `VtexIdclientAutCookie`. |\r\n| `VtexIdclientAutCookie` | [User token](https://developers.vtex.com/docs/guides/api-authentication-using-user-tokens), valid for 24 hours. | Authentication header. Not necessary when using `X-VTEX-API-AppKey` and `X-VTEX-API-AppToken`. |",
"version": "1.0"
},
"servers": [
{
"url": "https://app.io.vtex.com",
"description": "VTEX server URL.",
"variables": {}
}
],
"paths": {
"/{app_name}/v{app_version}/{account}/{workspace}/notify": {
"post": {
"tags": [
"Notification"
],
"summary": "Notify carrier with app",
"description": "Notifies the carrier about a dispatch order by calling the `vtex.carrier-notifier app`. When the call is made, the following data is sent: \n\n- Dispatched packages information. \n\n- Fiscal information about the carrier notified. \n\n- Carrier's contact email. \n\nThe call's response includes all tracking data and each package's ID generated by the notification made to the carrier. \r\n\r\n## Permissions\r\n\r\nAny user or [application key](https://developers.vtex.com/docs/guides/api-authentication-using-application-keys) must have at least one of the appropriate [License Manager resources](https://help.vtex.com/en/tutorial/license-manager-resources--3q6ztrC8YynQf6rdc6euk3) to be able to successfully run this request. Otherwise they will receive a status code `403` error. These are the applicable resources for this endpoint:\r\n\r\n| **Product** | **Category** | **Resource** |\r\n| --------------- | ----------------- | ----------------- |\r\n| Logistics | Logistics access | **Transportation read only** |\r\n\r\nThere are no applicable [predefined roles](https://help.vtex.com/en/tutorial/predefined-roles--jGDurZKJHvHJS13LnO7Dy) for this resource list. You must [create a custom role](https://help.vtex.com/en/tutorial/roles--7HKK5Uau2H6wxE1rH5oRbc#creating-a-role) and add at least one of the resources above in order to use this endpoint. To learn more about machine authentication at VTEX, see [Authentication overview](https://developers.vtex.com/docs/guides/authentication).\r\n\r\n>\u2757 To prevent integrations from having excessive permissions, consider the [best practices for managing app keys](https://help.vtex.com/en/tutorial/best-practices-application-keys--7b6nD1VMHa49aI5brlOvJm) when assigning License Manager roles to integrations.",
"operationId": "NotifyCarrierwithApp",
"parameters": [
{
"name": "app_name",
"in": "path",
"description": "Name of the app developed by the carrier's integration.",
"required": true,
"style": "simple",
"schema": {
"type": "string",
"default": "{{app name}}"
}
},
{
"name": "app_version",
"in": "path",
"description": "Version of the app developed by the carrier's integration.",
"required": true,
"style": "simple",
"schema": {
"type": "string",
"default": "{{version}}"
}
},
{
"name": "account",
"in": "path",
"description": "VTEX account dispatching the package.",
"required": true,
"style": "simple",
"schema": {
"type": "string",
"default": "VTEX Store example"
}
},
{
"name": "workspace",
"in": "path",
"description": "Workspace used in VTEX IO. ",
"required": true,
"style": "simple",
"schema": {
"type": "string",
"default": "master"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NotifyCarrierwithAppRequest"
},
"example": {
"account": {
"name": "Ltda",
"accountName": "{{account}}",
"isOperating": true,
"defaultUrl": null,
"district": null,
"country": "Brasil",
"complement": null,
"companyName": "LTDA",
"cnpj": "00000000000000",
"city": null,
"address": null,
"number": null,
"postalCode": null,
"state": null,
"telephone": null,
"tradingName": "tradingName"
},
"email": "email",
"dispatchOrder": {
"id": "653560c2-7965-4614-a730-8e45c89bf284",
"packageIds": [
"6529cd28-6fd1-4b95-8397-5fad0a79d41c"
],
"sender": {
"cnpj": "00000000000000",
"fantasyName": null,
"stateRegistration": null,
"id": null,
"name": "LTDA",
"address": {
"postalCode": "03475015",
"country": {
"code": "BRA",
"name": "Brasil"
},
"subregion1": {
"code": "SP",
"name": "São Paulo"
},
"subregion2": {
"code": "São Paulo",
"name": "São Paulo"
},
"subregion3": {
"code": "Vila Antonieta",
"name": "Vila Antonieta"
},
"street": "Rua Exemplo",
"number": "01",
"complement": "",
"location": null
},
"email": null,
"phone":"999999999"
},
"carrier": {
"cnpj": "00000000000000",
"fantasyName": "carrier",
"stateRegistration": "096/3624636",
"id": "vtexlog_exemplo",
"name": "Carrier LTDA.",
"address": {
"postalCode": "90200001",
"country": {
"code": "BRA",
"name": "Brasil"
},
"subregion1": {
"code": "RS",
"name": "Rio Grande do Sul"
},
"subregion2": {
"code": "Porto_Alegre",
"name": "Porto Alegre"
},
"subregion3": {
"code": "Anchieta",
"name": "Anchieta"
},
"street": "Rua Exemplo",
"number": "01",
"complement": "Pavilhão 6",
"location": null
},
"email": "email",
"phone": "+5511111111111"
}
}
}
}
},
"required": true
},
"responses": {
"200": {
"description": "OK",
"headers": {}
}
},
"deprecated": false
}
},
"/{app_name}/v{app_version}/{account}/{workspace}/tracking": {
"post": {
"tags": [
"Tracking"
],
"summary": "Tracking events with app",
"description": "This endpoint is called by the hub to obtain the tracking events of a series of tracking numbers. This call's request updates the events of a list of tracking codes, for packages that are still pending delivery. The expected response is an object contaning the tracking information and the package's notification ID for every `packageID`. \r\n\r\n## Permissions\r\n\r\nAny user or [application key](https://developers.vtex.com/docs/guides/api-authentication-using-application-keys) must have at least one of the appropriate [License Manager resources](https://help.vtex.com/en/tutorial/license-manager-resources--3q6ztrC8YynQf6rdc6euk3) to be able to successfully run this request. Otherwise they will receive a status code `403` error. These are the applicable resources for this endpoint:\r\n\r\n| **Product** | **Category** | **Resource** |\r\n| --------------- | ----------------- | ----------------- |\r\n| Logistics | Logistics access | **Transportation read only** |\r\n\r\nThere are no applicable [predefined roles](https://help.vtex.com/en/tutorial/predefined-roles--jGDurZKJHvHJS13LnO7Dy) for this resource list. You must [create a custom role](https://help.vtex.com/en/tutorial/roles--7HKK5Uau2H6wxE1rH5oRbc#creating-a-role) and add at least one of the resources above in order to use this endpoint. To learn more about machine authentication at VTEX, see [Authentication overview](https://developers.vtex.com/docs/guides/authentication).\r\n\r\n>\u2757 To prevent integrations from having excessive permissions, consider the [best practices for managing app keys](https://help.vtex.com/en/tutorial/best-practices-application-keys--7b6nD1VMHa49aI5brlOvJm) when assigning License Manager roles to integrations.",
"operationId": "TrackingEvents",
"parameters": [
{
"name": "app_name",
"in": "path",
"description": "Name of the app developed by the carrier's integration.",
"required": true,
"style": "simple",
"schema": {
"type": "string",
"default": "{{app name}}"
}
},
{
"name": "app_version",
"in": "path",
"description": "Version of the app developed by the carrier's integration.",
"required": true,
"style": "simple",
"schema": {
"type": "string",
"default": "{{version}}"
}
},
{
"name": "account",
"in": "path",
"description": "VTEX account dispatching the package.",
"required": true,
"style": "simple",
"schema": {
"type": "string",
"default": "VTEX Store example"
}
},
{
"name": "workspace",
"in": "path",
"description": "Workspace used in VTEX IO. ",
"required": true,
"style": "simple",
"schema": {
"type": "string",
"default": "master"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/TrackingEventsRequest"
},
"description": "Array containing tracking information.",
"example": [
{
"trackingNumber": "BR000000000"
}
]
},
"example": [
{
"trackingNumber": "BR000000000"
}
]
}
},
"required": true
},
"responses": {
"200": {
"description": "OK",
"headers": {}
}
},
"deprecated": false
}
}
},
"security": [
{
"appKey": [],
"appToken": []
},
{
"VtexIdclientAutCookie": []
}
],
"components": {
"securitySchemes": {
"appKey": {
"type": "apiKey",
"in": "header",
"name": "X-VTEX-API-AppKey",
"description": "Unique identifier of the [application key](https://developers.vtex.com/docs/guides/api-authentication-using-application-keys)."
},
"appToken": {
"type": "apiKey",
"in": "header",
"name": "X-VTEX-API-AppToken",
"description": "Secret token of the [application key](https://developers.vtex.com/docs/guides/api-authentication-using-application-keys)."
},
"VtexIdclientAutCookie": {
"type": "apiKey",
"in": "header",
"name": "VtexIdclientAutCookie",
"description": "[User token](https://developers.vtex.com/docs/guides/api-authentication-using-user-tokens), valid for 24 hours."
}
},
"schemas": {
"Account": {
"title": "Account",
"required": [
"name",
"accountName",
"isOperating",
"defaultUrl",
"district",
"country",
"complement",
"companyName",
"cnpj",
"city",
"address",
"number",
"postalCode",
"state",
"telephone",
"tradingName"
],
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Inserted name.",
"example": "Ltda"
},
"accountName": {
"type": "string",
"description": "Name of the VTEX Account dispatching the package.",
"example": "mystore"
},
"isOperating": {
"type": "boolean",
"description": "Whether the store is operating or not.",
"example": true
},
"defaultUrl": {
"type": "string",
"nullable": true,
"description": "Retrieved from VTEX's License Manager.",
"example": "https://url.example.com"
},
"district": {
"type": "string",
"nullable": true,
"description": "District where the VTEX store dispatching the package is located.",
"example": "District name"
},
"country": {
"type": "string",
"description": "Country where the VTEX store, dispatching the package, is located.",
"example": "Brasil"
},
"complement": {
"type": "string",
"nullable": true,
"description": "Complement for the VTEX store's address.",
"example": "Second floor"
},
"companyName": {
"type": "string",
"description": "Name of the VTEX store responsible for the package.",
"example": "VTEX Store 1"
},
"cnpj": {
"type": "string",
"description": "CNPJ code of the VTEX store responsible for the package.",
"example": "00000000000000"
},
"city": {
"type": "string",
"nullable": true,
"description": "City where the VTEX store responsible for the package is located.",
"example": "Rio de Janeiro"
},
"address": {
"type": "string",
"nullable": true,
"description": "Address where the VTEX store responsible for the package is located.",
"example": "VTEX Street"
},
"number": {
"type": "string",
"nullable": true,
"description": "Number of the address related to the `address` field.",
"example": "26"
},
"postalCode": {
"type": "string",
"nullable": true,
"description": "ZIP code of the VTEX store responsible for the package.",
"example": "12345-678"
},
"state": {
"type": "string",
"nullable": true,
"description": "State of the address belonging to the VTEX store responsible for the package.",
"example": "RJ"
},
"telephone": {
"type": "string",
"nullable": true,
"description": "Telephone number of the VTEX store responsible for the package.",
"example": "99999999"
},
"tradingName": {
"type": "string",
"description": "Trading name of the VTEX store responsible for the package.",
"example": "Trading name"
}
},
"description": "Account information.",
"example": {
"name": "Ltda",
"accountName": "{{account}}",
"isOperating": true,
"defaultUrl": null,
"district": null,
"country": "Brasil",
"complement": null,
"companyName": "LTDA",
"cnpj": "00000000000000",
"city": null,
"address": null,
"number": null,
"postalCode": null,
"state": null,
"telephone": null,
"tradingName": "tradingName"
}
},
"Address": {
"title": "Address",
"description": "Address of the VTEX account responsible for sending the package.",
"required": [
"postalCode",
"country",
"subregion1",
"subregion2",
"subregion3",
"street",
"number",
"complement",
"location"
],
"type": "object",
"properties": {
"postalCode": {
"type": "string",
"nullable": true,
"description": "ZIP code of the package's recipient.",
"example": "12345-678"
},
"country": {
"$ref": "#/components/schemas/Country"
},
"subregion1": {
"$ref": "#/components/schemas/Subregion1"
},
"subregion2": {
"$ref": "#/components/schemas/Subregion2"
},
"subregion3": {
"$ref": "#/components/schemas/Subregion3"
},
"street": {
"type": "string",
"description": "Recipient's address.",
"example": "Street example"
},
"number": {
"type": "string",
"description": "Number of the recipient's address.",
"example": "1"
},
"complement": {
"type": "string",
"nullable": true,
"description": "Complement for the recipient's address.",
"example": "A"
},
"location": {
"$ref": "#/components/schemas/Location"
}
},
"example": {
"postalCode": "00000-000",
"country": {
"code": "BRA",
"name": "BRA"
},
"subregion1": {
"code": "SP",
"name": "SP"
},
"subregion2": {
"code": "São Paulo",
"name": "São Paulo"
},
"subregion3": {
"code": "Burgo Paulista",
"name": "Burgo Paulista"
},
"street": "Rua Exempo",
"number": "01",
"complement": null,
"location": {
"lat": -46.485820770263672,
"lng": -23.521709442138672
}
}
},
"Country": {
"title": "Country",
"description": "Recipient's country.",
"required": [
"code",
"name"
],
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "Country's three-digit identifying code, from the recipient's address.",
"example": "BRA"
},
"name": {
"type": "string",
"description": "Country's name, from the recipient's address.",
"example": "Brasil"
}
},
"example": {
"code": "BRA",
"name": "BRA"
}
},
"Subregion1": {
"title": "State",
"description": "Recipient's address state's information.",
"required": [
"code",
"name"
],
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "State's code, from the recipient's address.",
"example": "SP"
},
"name": {
"type": "string",
"description": "State's name, from the recipient's address.",
"example": "Sao Paulo"
}
},
"example": {
"code": "SP",
"name": "SP"
}
},
"Subregion2": {
"title": "City",
"description": "Recipient's address city's information.",
"required": [
"code",
"name"
],
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "City's code, from the recipient's address.",
"example": "SP"
},
"name": {
"type": "string",
"description": "City's name, from the recipient's address.",
"example": "Sao Paulo"
}
},
"example": {
"code": "SP",
"name": "São Paulo"
}
},
"Subregion3": {
"title": "Neighborhood",
"description": "Recipient's address neighborhood's information.",
"required": [
"code",
"name"
],
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "Neighborhood's code, from the recipient's address.",
"example": "Neighborhood example"
},
"name": {
"type": "string",
"description": "Neighborhood's name, from the recipient's address.",
"example": "Neighborhood example"
}
},
"example": {
"code": "Vila Antonieta",
"name": "Vila Antonieta"
}
},
"Location": {
"title": "Location",
"description": "Recipient's address geocoordinates.",
"required": [
"lat",
"lng"
],
"type": "object",
"nullable": true,
"properties": {
"lat": {
"type": "number",
"description": "Latitude number of the address' geolocation coordinates.",
"example": -46.485820770263672
},
"lng": {
"type": "number",
"description": "Longitude number of the address' geolocation coordinates.",
"example": -23.521709442138672
}
},
"example": {
"lat": -46.485820770263672,
"lng": -23.521709442138672
}
},
"NotifyCarrierwithAppRequest": {
"title": "NotifyCarrierwithAppRequest",
"description": "Object containing email, account, and dispatched order information.",
"required": [
"email",
"dispatchOrder",
"account"
],
"type": "object",
"properties": {
"account":{
"$ref": "#/components/schemas/Account"
},
"email": {
"type": "string",
"description": "Fill in this field if you wish to send the generated file for an email besides the ones already involved in the operation, like the carrier and VTEX account's email.",
"example": "email"
},
"dispatchOrder": {
"$ref": "#/components/schemas/DispatchOrder"
}
}
},
"DispatchOrder": {
"title": "DispatchOrder",
"description": "Information about the dispatched order.",
"required": [
"id",
"packageIds",
"sender",
"carrier"
],
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "ID of the dispatched order.",
"example":"653560c2-7965-4614-a730-8e45c89bf284"
},
"packageIds": {
"type": "array",
"description": "Array with package IDs.",
"items": {
"type": "string",
"description": "Identification codes of the packages.",
"example": "6529cd28-6fd1-4b95-8397-5fad0a79d41c"
}
},
"sender": {
"$ref": "#/components/schemas/Sender"
},
"carrier": {
"$ref": "#/components/schemas/Carrier"
}
}
},
"Sender": {
"title": "Sender",
"description": "User's logged account in the VTEX store.",
"required": [
"cnpj",
"fantasyName",
"stateRegistration",
"id",
"name",
"address",
"email",
"phone"
],
"type": "object",
"properties": {
"cnpj": {
"type": "string",
"description": "CNPJ code of the VTEX account responsible for sending the package.",
"example": "81.316.120/0001-02"
},
"fantasyName": {
"type": "string",
"description": "Fantasy name of the VTEX account responsible for sending the package.",
"example":"Carrier 123",
"nullable": true
},
"stateRegistration": {
"type": "string",
"description": "State Registration code of the VTEX account responsible for sending the package.",
"example": "9843759348",
"nullable": true
},
"id": {
"type": "string",
"description": "VTEX account's ID.",
"example": "accountId",
"nullable": true
},
"name": {
"type": "string",
"description": "Name of the VTEX account responsible for sending the package.",
"example": "Store LTDA"
},
"address": {
"$ref": "#/components/schemas/Address"
},
"email": {
"type": "string",
"description": "Email of the VTEX account responsible for sending the package.",
"example": "[email protected]",
"nullable": true
},
"phone": {
"type": "string",
"description": "Sender's contact number.",
"example": "+5511111111111",
"nullable": true
}
},
"example": {
"cnpj": "00000000000000",
"fantasyName": null,
"stateRegistration": null,
"id": null,
"name": "LTDA",
"address": {
"postalCode": "03475015",
"country": {
"code": "Brasil",
"name": "Brasil"
},
"subregion1": {
"code": "SP",
"name": "SP"
},
"subregion2": {
"code": "São Paulo",
"name": "São Paulo"
},
"subregion3": {
"code": "Vila Antonieta",
"name": "Vila Antonieta"
},
"street": "Rua Exemplo",
"number": "01",
"complement": "",
"location": null
},
"email": null,
"phone": "+5511111111111"
}
},
"Carrier": {
"title": "Carrier",
"description": "Carrier responsible for delivering the dispatched order.",
"required": [
"cnpj",
"fantasyName",
"stateRegistration",
"id",
"name",
"address",
"email",
"phone"
],
"type": "object",
"properties": {
"cnpj": {
"type": "string",
"description": "Carrier's CNPJ.",
"example": "00000000000000"
},
"fantasyName": {
"type": "string",
"description": "Carrier's fantasy name.",
"example": "Carrier A"
},
"stateRegistration": {
"type": "string",
"description": "Carrier's state registration number.",
"example": "843904894875"
},
"id": {
"type": "string",
"description": "Carrier's ID.",
"example": "vtexShippinNetwork_example"
},
"name": {
"type": "string",
"description": "Carrier's company name.",
"example": "Carrier LTDA"
},
"address": {
"$ref": "#/components/schemas/Address"
},
"email": {
"type": "string",
"description": "Carrier's email address.",
"example": "[email protected]"
},
"phone": {
"type": "string",
"description": "Carrier's contact number.",
"example": "+5511111111111",
"nullable": true
}
},
"example": {
"cnpj": "00000000000000",
"fantasyName": "carrier",
"stateRegistration": "096/3624636",
"id": "vtexlog_exemplo",
"name": "Carrier LTDA.",
"address": {
"postalCode": "90200001",
"country": {
"code": "BRA",
"name": "Brasil"
},
"subregion1": {
"code": "RS",
"name": "Rio Grande do Sul"
},
"subregion2": {
"code": "Porto_Alegre",
"name": "Porto Alegre"
},
"subregion3": {
"code": "Anchieta",
"name": "Anchieta"
},
"street": "Rua Exemplo",
"number": "01",
"complement": "Pavilhão 6",
"location": null
},
"email": "email",
"phone": "+5511111111111"
}
},
"TrackingEventsRequest": {
"title": "TrackingEventsRequest",
"description": "Shipping's tracking information.",
"required": [
"trackingNumber"
],
"type": "object",
"properties": {
"trackingNumber": {
"type": "string",
"description":"Shipping's tracking identification code.",
"example": "BR000000000"
}
},
"example": {
"trackingNumber": "BR000000000"
}
}
}
},
"tags": [
{
"name": "Notification"
},
{
"name": "Tracking"
}
]
}