VTEX Shipping Updates API

This endpoint will allow the carriers to update an ongoing shipping service.

Documentation

📖
Documentation
https://developers.vtex.com/docs/guides/how-the-integration-protocol-between-vtex-and-antifraud-companies-works
📖
Documentation
https://developers.vtex.com/docs/guides/bulk-import-buyer-organizations-spreadsheet
📖
Documentation
https://developers.vtex.com/docs/guides/catalog-api-seller-portal-overview
📖
Documentation
https://developers.vtex.com/docs/guides/catalog-overview
📖
Documentation
https://developers.vtex.com/docs/guides/checkout-overview
📖
Documentation
https://help.vtex.com/en/tutorial/customer-credit-overview--1uIqTjWxIIIEW0COMg4uE0
📖
Documentation
https://help.vtex.com/en/tutorial/data-subject-rights--6imchxTx09icupKMbzHVIM
📖
Documentation
https://developers.vtex.com/docs/api-reference/do-api
📖
Documentation
https://developers.vtex.com/docs/guides/managing-vtex-gift-cards
📖
Documentation
https://developers.vtex.com/docs/guides/gift-card-integration-guide
📖
Documentation
https://developers.vtex.com/docs/guides/faststore/headless-cms-overview
📖
Documentation
https://developers.vtex.com/docs/api-reference/vtex-id-api
📖
Documentation
https://help.vtex.com/en/tracks/vtex-intelligent-search--19wrbB7nEQcmwzDPl1l4Cb/3qgT47zY08biLP3d5os3DG
📖
Documentation
https://developers.vtex.com/docs/apps/vtex.search@1.0.8
📖
Documentation
https://help.vtex.com/en/tracks/cms--2YcpgIljVaLVQYMzxQbc3z/1oN446gRGcR2s70RvBCAmj
📖
Documentation
https://developers.vtex.com/docs/guides/search-overview
📖
Documentation
https://help.vtex.com/en/tutorial/license-manager-resources--3q6ztrC8YynQf6rdc6euk3
📖
Documentation
https://developers.vtex.com/docs/guides/fulfillment
📖
Documentation
https://developers.vtex.com/docs/guides/marketplace-overview
📖
Documentation
https://developers.vtex.com/updates/release-notes/marketplace-protocol-documentation-update
📖
Documentation
https://developers.vtex.com/docs/guides/external-marketplace-integration-guide
📖
Documentation
https://developers.vtex.com/docs/guides/external-seller-integration-connector
📖
Documentation
https://developers.vtex.com/docs/guides/external-seller-integration-guide
📖
Documentation
https://help.vtex.com/en/tutorial/master-data--4otjBnR27u4WUIciQsmkAw
📖
Documentation
https://help.vtex.com/en/tutorial/understanding-the-message-center--tutorials_84
📖
Documentation
https://developers.vtex.com/docs/guides/orders-overview
📖
Documentation
https://developers.vtex.com/docs/guides/changes-in-vtex-features-behavior-to-handle-pii-data
📖
Documentation
https://help.vtex.com/en/tutorial/payment-provider-protocol--RdsT2spdq80MMwwOeEq0m
📖
Documentation
https://developers.vtex.com/docs/guides/payments-integration-guide
📖
Documentation
https://help.vtex.com/en/tutorial/vtex-pick-and-pack-last-mile--HN7WKV0xoq2ssVjsJlfzr
📖
Documentation
https://developers.vtex.com/docs/guides/vtex-io-documentation-policies
📖
Documentation
https://developers.vtex.com/docs/guides/pricing-hub
📖
Documentation
https://developers.vtex.com/docs/guides/pricing-overview
📖
Documentation
https://developers.vtex.com/docs/guides/profile-system
📖
Documentation
https://developers.vtex.com/docs/guides/promotions-overview
📖
Documentation
https://developers.vtex.com/docs/apps/vtex.reviews-and-ratings
📖
Documentation
https://developers.vtex.com/docs/guides/sent-offers-integration-guide-connectors
📖
Documentation
https://developers.vtex.com/docs/guides/sessions-system-overview
📖
Documentation
https://developers.vtex.com/docs/guides/vtex-shipping-network
📖
Documentation
https://help.vtex.com/en/tutorial/sku-bindings--1SmrVgNwjJX17hdqwLa0TX
📖
Documentation
https://developers.vtex.com/docs/guides/subscriptions
📖
Documentation
https://developers.vtex.com/docs/apps/vtex.search/suggestions
📖
Documentation
https://developers.vtex.com/docs/guides/vtex-tracking

Specifications

OpenAPI Specification

vtex-shipping-updates-api-openapi.yml Raw ↑
openapi: 3.0.0
info:
  title: VTex Anti-fraud Provider Account Shipping Updates API
  description: ">ℹ️ Onboarding guide\r\n>\r\n> Check the new [Payments onboarding guide](https://developers.vtex.com/docs/guides/payments-overview). We created this guide to improve the onboarding experience for developers at VTEX. It assembles all documentation on our Developer Portal about Payments and is organized by focusing on the developer's journey.\r\n\r\nThe Anti-fraud Provider Protocol is a set of definitions to help you integrate your anti-fraud service API into VTEX platform.\r\n\r\nTo achieve this, you need to implement a web API (REST) following the specifications described in this documentation.\r\n\r\n>⚠️ You can also access our [template on GitHub](https://github.com/vtex-apps/antifraud-provider-example) to help you quickly develop your anti-fraud connector using the Anti-fraud Provider Protocol and VTEX IO.\r\n\r\nTo learn more about the Anti-fraud Provider Protocol, check our [developer guide](https://developers.vtex.com/docs/guides/how-the-integration-protocol-between-vtex-and-antifraud-companies-works).\r\n\r\n## Anti-fraud Provider API Index\r\n\r\n### Anti-fraud  Flow\r\n\r\n- `POST` [Send Anti-fraud Pre-Analysis Data (optional)](https://developers.vtex.com/docs/api-reference/antifraud-provider-protocol#post-/pre-analysis)\r\n- `POST` [Send Anti-fraud Data](https://developers.vtex.com/docs/api-reference/antifraud-provider-protocol#post-/transactions)\r\n- `PUT` [Update Anti-fraud Transactions (optional)](https://developers.vtex.com/docs/api-reference/antifraud-provider-protocol#put-/transactions/-transactionId-)\r\n- `GET` [List Anti-fraud Provider Manifest](https://developers.vtex.com/docs/api-reference/antifraud-provider-protocol#get-/manifest)\r\n- `GET` [Get Anti-fraud Status](https://developers.vtex.com/docs/api-reference/antifraud-provider-protocol#get-/transactions/-transactions.id-)\r\n- `DELETE` [Stop Anti-fraud Analysis (optional)](https://developers.vtex.com/docs/api-reference/antifraud-provider-protocol#delete-/transactions/-transactions.Id-)\r\n\r\n### OAuth Flow\r\n\r\n1. `POST` [Retrieve Token](https://developers.vtex.com/docs/api-reference/antifraud-provider-protocol#post-/authorization/token)\r\n2. `GET` [Redirect](https://developers.vtex.com/docs/api-reference/antifraud-provider-protocol#get-/redirect)\r\n3. `GET` [Return to VTEX](https://developers.vtex.com/docs/api-reference/antifraud-provider-protocol#get-/authorizationCode)\r\n4. `GET` [Get Credentials](https://developers.vtex.com/docs/api-reference/antifraud-provider-protocol#get-/authorization/credentials)"
  version: '1.0'
servers:
- url: https://{providerApiEndpoint}
  description: Anti-fraud provider endpoint URL.
  variables:
    providerApiEndpoint:
      description: Anti-fraud provider endpoint URL.
      default: '{providerApiEndpoint}'
tags:
- name: Shipping Updates
  description: This endpoint will allow the carriers to update an ongoing shipping service.
paths:
  /{carrierId}/{serviceId}:
    get:
      tags:
      - Shipping Updates
      summary: VTex Get service
      description: "Returns information about a service, which can be queried by providing the carrier ID and the corresponding service ID as query parameters.\r\n\r\n## Permissions\r\n\r\nThis endpoint does not require [permissions](https://help.vtex.com/en/tutorial/license-manager-resources--3q6ztrC8YynQf6rdc6euk3)."
      operationId: Getservice
      parameters:
      - name: carrierId
        in: path
        description: Carrier ID.
        required: true
        style: simple
        schema:
          type: string
          example: MTEyMjMtQWZ0ZXJTaGlwLWRldmVsb3BtZW50
      - name: serviceId
        in: path
        description: Service ID generated by the carrier.
        required: true
        style: simple
        schema:
          type: string
          example: 78c83922-d658-48bf-89d5-0658a6a94e27
      - $ref: '#/components/parameters/Content-Type'
      - $ref: '#/components/parameters/Accept'
      - $ref: '#/components/parameters/Authorization'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceBody'
              example:
                message: success
                data:
                  id: 519400fb-f980-4a6a-809c-9f986fdb98a4
                  orderId: 46369545534253-01
                  carrierId: MTEyMjMtQWZ0ZXJTaGlwLWRldmVsb3BtZW50
                  serviceId: MTEyMjMtQWZ0ZXJTaGlwLWRldmVsb3BtZW50&78c83922-d658-48bf-89d5-0658a6a94e27
                  carrierName: AfterShip
                  seller: lastmile
                  status: DELIVERED
                  type: PICKUP_DELIVERY
                  tags: []
                  labels:
                  - id: 78c83922-d658-48bf-89d5-0658a6a94e27
                    name: Shipping label
                    url: https://sandbox-download.postmen.com/label/2024-03-09/258a26a4-45ae-49eb-b64d-929d3b81f46d-1709947994279763.pdf
                    type: PDF
                  evidences: []
                  packages:
                  - id: a46e5bc1-8959-459f-a094-b6e699f7214c
                    orderId: 46369545534253-01
                    envelope: Foam or Plastic Containers
                    dimensions:
                      height: '5'
                      length: '11'
                      width: '7'
                    weight: '48'
                    totalValue: 5352
                    items:
                    - id: '184'
                      name: Chicken
                      ean: EAN354
                      quantity: 8
                      price: 669
                      refId: '314'
                      image: https://picsum.photos/seed/YtoZ9/128/480
                      type: other
                      weight: '6'
                    categories:
                    - Movies
                    - Garden
                    - Books
                    description: Unde deserunt libero cupiditate illum.
                  timeline:
                  - id: 77263f59-0ac5-4b0c-bfe5-f17a1648474d
                    date: '2024-03-09T01:33:14.917Z'
                    createdAt: '2024-03-09T01:33:14.917Z'
                    updatedAt: '2024-03-09T01:33:14.917Z'
                    type: STATUS
                    description: Service pending in DEV
                    author: System
                    metaData:
                      shippingEstimatedDate: '2024-01-05T11:11:11.000Z'
                      metaData:
                        shippingEstimatedDate: '2024-01-05T11:11:11.000Z'
                        metaData: null
                        serviceId: 78c83922-d658-48bf-89d5-0658a6a94e27
                        shippingPrice: 284.02
                        status: PENDING
                        labels:
                        - name: Shipping label
                          id: 78c83922-d658-48bf-89d5-0658a6a94e27
                          type: PDF
                          url: https://sandbox-download.postmen.com/label/2024-03-09/258a26a4-45ae-49eb-b64d-929d3b81f46d-1709947994279763.pdf
                      serviceId: 78c83922-d658-48bf-89d5-0658a6a94e27
                      shippingPrice: 284.02
                      status: PENDING
                      labels:
                      - name: Shipping label
                        id: 78c83922-d658-48bf-89d5-0658a6a94e27
                        type: PDF
                        url: https://sandbox-download.postmen.com/label/2024-03-09/258a26a4-45ae-49eb-b64d-929d3b81f46d-1709947994279763.pdf
                  - id: 9906da15-15e4-4dbd-8e90-c34ec43ed446
                    date: '2024-03-09T01:46:20.006Z'
                    createdAt: '2024-03-09T01:46:20.006Z'
                    updatedAt: '2024-03-09T01:46:20.006Z'
                    type: NOTE
                    description: A new note has been added
                    author: afterShip
                    metaData:
                      '0':
                        type: COMMENT
                        note: The package is delivered at the door
                        author: afterShip
                  - id: 35619274-3bca-4749-8a38-53a62776144a
                    date: '2024-03-09T01:44:17.437Z'
                    createdAt: '2024-03-09T01:44:17.437Z'
                    updatedAt: '2024-03-09T01:44:17.437Z'
                    type: NOTE
                    description: A new note has been added
                    author: afterShip
                    metaData:
                      '0':
                        type: COMMENT
                        note: 'Tracking Number: 10001709948594168'
                        author: afterShip
                  - id: 9b60e3fd-5bf9-43c6-99f2-4292a57fa408
                    date: '2024-03-09T01:46:19.689Z'
                    createdAt: '2024-03-09T01:46:19.689Z'
                    updatedAt: '2024-03-09T01:46:19.689Z'
                    type: STATUS
                    description: The package was delivered
                    author: System
                    metaData:
                      shippingEstimatedDate: '2024-01-05T11:11:11.000Z'
                      trackingUrl: https://tools.usps.com/go/TrackConfirmAction?tLabels=9361289676091361892011
                      status: DELIVERED
                  - id: 21c9acaa-e14b-41bd-aaa7-a2cebd7384c0
                    date: '2024-03-09T01:43:15.887Z'
                    createdAt: '2024-03-09T01:43:15.887Z'
                    updatedAt: '2024-03-09T01:43:15.887Z'
                    type: STATUS
                    description: Service pending
                    author: System
                    metaData:
                      shippingEstimatedDate: '2024-01-05T11:11:11.000Z'
                      trackingUrl: https://tools.usps.com/go/TrackConfirmAction?tLabels=9361289676091361892011
                      status: PENDING
                  - id: 7a1a3a63-f94c-49f1-a912-bc3f095d7845
                    date: '2024-03-09T01:45:18.812Z'
                    createdAt: '2024-03-09T01:45:18.812Z'
                    updatedAt: '2024-03-09T01:45:18.812Z'
                    type: STATUS
                    description: Courier picked the package
                    author: System
                    metaData:
                      shippingEstimatedDate: '2024-01-05T11:11:11.000Z'
                      trackingUrl: https://tools.usps.com/go/TrackConfirmAction?tLabels=9361289676091361892011
                      status: PICKED
                  - id: 9ca25940-bdae-4f19-a5b4-92477abfa059
                    date: '2024-03-09T01:33:14.978Z'
                    createdAt: '2024-03-09T01:33:14.978Z'
                    updatedAt: '2024-03-09T01:33:14.978Z'
                    type: LABEL
                    description: Added a label
                    author: System
                    metaData:
                      name: Shipping label
                      id: 78c83922-d658-48bf-89d5-0658a6a94e27
                      type: PDF
                      url: https://sandbox-download.postmen.com/label/2024-03-09/258a26a4-45ae-49eb-b64d-929d3b81f46d-1709947994279763.pdf
                  - id: 24b84b8b-7418-4ed8-bc89-b6a1cbee2331
                    date: '2024-03-09T01:43:16.289Z'
                    createdAt: '2024-03-09T01:43:16.289Z'
                    updatedAt: '2024-03-09T01:43:16.289Z'
                    type: NOTE
                    description: A new note has been added
                    author: afterShip
                    metaData:
                      '0':
                        type: COMMENT
                        note: 'Tracking Number: 10001709948594168'
                        author: afterShip
                  - id: 9dfad688-e99a-4b27-9ccb-959da40c3bf8
                    date: '2024-03-09T01:33:08.385Z'
                    createdAt: '2024-03-09T01:33:08.385Z'
                    updatedAt: '2024-03-09T01:33:08.385Z'
                    type: STATUS
                    description: Service creation by AfterShip
                    author: System
                    metaData:
                      status: CREATED
                  - id: 781ab0af-e62a-4a21-a837-8d0eea3f57c2
                    date: '2024-03-09T01:44:17.077Z'
                    createdAt: '2024-03-09T01:44:17.077Z'
                    updatedAt: '2024-03-09T01:44:17.077Z'
                    type: STATUS
                    description: Courier on route
                    author: System
                    metaData:
                      shippingEstimatedDate: '2024-01-05T11:11:11.000Z'
                      trackingUrl: https://tools.usps.com/go/TrackConfirmAction?tLabels=9361289676091361892011
                      status: ON_ROUTE
                  notes:
                  - type: COMMENT
                    date: '2024-03-09T01:43:16.280Z'
                    content: 'Tracking Number: 10001709948594168'
                    author: afterShip
                  - type: COMMENT
                    date: '2024-03-09T01:44:17.423Z'
                    content: 'Tracking Number: 10001709948594168'
                    author: afterShip
                  - type: COMMENT
                    date: '2024-03-09T01:46:19.998Z'
                    content: The package is delivered at the door
                    author: afterShip
                  timezone:
                    offset: 300
                    value: America/Bogota
                    label: null
                  carrierLogo: iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAtTSURBVHgB7Z1PbBvHFca/WZICXCCFkt6aAGEORZ3YjaVD0d5MpUCL5BIZydGprUOKRBYg+ZQUDSqxSIG0F8uB7PZmufYxruVLghRw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xucLJITQ3aP6/2W23HaqhtLZA4HCsBAEDc89grOGj/HiRKj+sHFefOlLjtASie1ZjN1Zc9XwMR4dCRYKYUIIgcLDQQe9Qr9/QrCms2Inb7wSwCBi+NgQd9lRq2Jg1IyZX/LN6IN4K4BB7uYLJsJEmMlXmhjrtlwYxmWlEAKICYVQqVxFflPMHTF+nyyC4WMKdWhU/4CL/CqTab6+QMYnCndqGDv16XIum1Zppc6hCRxdFPPYONq0qnOnUligob8i1wUKlQMM0h8yXoUOattPFc31xxT24Mh+R7PjyE7h4v4ghfUAMRl3LmvZgesyxT86VnXnssYduC5TeA9A9GcN19P9EJ/sh5FCMxKHR6feuUw7cEfA+MRIeIAYyXxAueWaj4zO8fHEdthObffl2Sjuj1Sji5ESQDhVzIZ1MineVG8So+UBQPnAjbUdp4rDzhuf5X84lmOMnABCov6G95K88JSNm0sYQUZSAGFTq+3tQ4jygQ5txETJ6EHVx2G94QjzLdIWvdPvEPp9AAAAAElFTkSuQmCC
                  trackingUrl: https://tools.usps.com/go/TrackConfirmAction?tLabels=9361289676091361892011
                  comments: Comments.
                  paymentMethod: ONLINE
                  carrierServiceType: BROKER
                  rate:
                    shippingPrice:
                      value: 0
                      currency: USD
                    insurancePrice:
                      value: 0
                      currency: USD
                  shippingEstimatedDate: '2024-01-05T11:11:11.000Z'
                  shippingFinishedDate: '2024-01-05T11:11:11.000Z'
                  metaData:
                    integrationResponse: {}
                    carrier:
                      name: '[FedEx] Postmen Testing Account'
                      image: null
                      metaData: {}
                      id: fedex
                      type:
                        metaData: {}
                        terms: ''
                        rate:
                          shippingPrice:
                            value: 284.02
                            currency: USD
                          insurancePrice:
                            value: 0
                            currency: USD
                        name: FedEx First Overnight®
                        transitTime: 0
                        shippingEstimatedDate: '2024-01-05T11:11:11.000Z'
                        description: FedEx
                        id: fedex_first_overnight
                        international: false
        '401':
          description: Unauthorized
          content:
            application/json; charset=utf-8:
              schema:
                $ref: '#/components/schemas/m4031'
              example:
                message: Unauthorized
                requestId: c7c1ce02-b63f-4001-a1ac-798554c85bd6
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/m4031'
              example:
                message: Invalid token
                requestId: 09563f82-fe06-4004-b623-85e3aa4c92c9
        '404':
          description: Not Found
          content:
            application/json; charset=utf-8:
              schema:
                $ref: '#/components/schemas/m4041'
              example:
                type: exception
                code: TRP0005E
                data:
                  '0': '1'
                  carrierId: MTEyMjMtQWZ0ZXJTaGlwLWRldmVsb3BtZW50
                  serviceId: 78c83922-d658-48bf-89d5-0658a6a94e27
                requestId: 9e3ce442-458c-4861-99aa-23b2cd2da9cf
                date: '2024-03-15T06:00:21.009Z'
                message: 'Service not found: ''MTEyMjMtQWZ0ZXJTaGlwLWRldmVsb3BtZW50&78c83922-d658-48bf-89d5-0658a6a94e27'''
      deprecated: false
      servers:
      - url: https://api.pickingnpacking.com/{environment}/v1/tracking/hook
        variables:
          environment:
            default: DefaultParameterValue
    patch:
      tags:
      - Shipping Updates
      summary: VTex Update service
      description: "Updates a service with the details of the tracking service via webhook.\r\n\r\n## Permissions\r\n\r\nThis endpoint does not require [permissions](https://help.vtex.com/en/tutorial/license-manager-resources--3q6ztrC8YynQf6rdc6euk3)."
      operationId: Updateservice
      parameters:
      - name: carrierId
        in: path
        description: Carrier ID.
        required: true
        style: simple
        schema:
          type: string
          example: MTEyMjMtQWZ0ZXJTaGlwLWRldmVsb3BtZW50
      - name: serviceId
        in: path
        description: Service ID.
        required: true
        style: simple
        schema:
          type: string
          example: 78c83922-d658-48bf-89d5-0658a6a94e27
      - $ref: '#/components/parameters/Content-Type'
      - $ref: '#/components/parameters/Accept'
      - $ref: '#/components/parameters/Authorization'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateserviceRequest'
            example:
              message: Service updated successfully
              data:
                status: PENDING
                agent:
                  id: '27327489234'
                  name: Pedro
                  identification: 020323809
                  phone: '+57314855674'
                  email: pedro434234@gmailc.om
                  vehicle: SCOOTER
                trackingUrl: https://localhost.com
                totalDistanceTraveled: 2
                rating: 5
                shippingPrice: 150000
                shippingEstimatedDate: '2024-04-27T20:25:45.067Z'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json; charset=utf-8:
              schema:
                $ref: '#/components/schemas/ServiceBody1'
              example:
                message: Service updated successfully
                data:
                  status: PENDING
                  agent:
                    id: '27327489234'
                    name: Pedro
                    identification: 020323809
                    phone: '+57314855674'
                    email: pedro434234@gmailc.om
                    vehicle: SCOOTER
                  trackingUrl: https://localhost.com
                  totalDistanceTraveled: 2
                  rating: 5
                  shippingPrice: 150000
                  shippingEstimatedDate: '2024-04-27T20:25:45.067Z'
        '401':
          description: Unauthorized
          content:
            application/json; charset=utf-8:
              schema:
                $ref: '#/components/schemas/m4031'
              example:
                message: Unauthorized
                requestId: b5077045-e5ee-4eeb-8783-467c5454d03c
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/m4031'
              example:
                message: Authentication token expired
                requestId: 6d5f5fa2-cf31-4878-9be5-7e094022a206
        '404':
          description: Not Found
          content:
            application/json; charset=utf-8:
              schema:
                $ref: '#/components/schemas/m4041'
              example:
                type: exception
                code: TRP0005E
                data:
                  '0': '1'
                  carrierId: MTEyMjMtQWZ0ZXJTaGlwLWRldmVsb3BtZW50
                  serviceId: 78c83922-d658-48bf-89d5-0658a6a94e27
                requestId: 8ce83c17-d9c4-434f-94cd-f2016bb7be8a
                date: '2024-03-15T05:59:30.114Z'
                message: 'Service not found: ''MTEyMjMtQWZ0ZXJTaGlwLWRldmVsb3BtZW50&_78c83922-d658-48bf-89d5-0658a6a94e27'''
      deprecated: false
      servers:
      - url: https://api.pickingnpacking.com/{environment}/v1/tracking/hook
        variables:
          environment:
            default: DefaultParameterValue
  /notes/{carrierId}/{serviceId}:
    post:
      tags:
      - Shipping Updates
      summary: VTex Create notes
      description: "Allows carriers to add notes and information on existing services.\r\n\r\n## Permissions\r\n\r\nThis endpoint does not require [permissions](https://help.vtex.com/en/tutorial/license-manager-resources--3q6ztrC8YynQf6rdc6euk3)."
      operationId: Createnotes
      parameters:
      - name: carrierId
        in: path
        description: Carrier ID.
        required: true
        style: simple
        schema:
          type: string
          example: MTEyMjMtQWZ0ZXJTaGlwLWRldmVsb3BtZW50
      - name: serviceId
        in: path
        description: Service ID.
        required: true
        style: simple
        schema:
          type: string
          example: 78c83922-d658-48bf-89d5-0658a6a94e27
      - $ref: '#/components/parameters/Content-Type'
      - $ref: '#/components/parameters/Accept'
      - $ref: '#/components/parameters/Authorization'
      requestBody:
        content:
          application/json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/CreatenotesRequest'
            example:
            - type: ERROR
              note: The package takes time to be shipped
              author: Oscar Rojas
            - type: COMMENT
              note: The package was picked up
              author: Oscar Rojas
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json; charset=utf-8:
              schema:
                $ref: '#/components/schemas/ServiceBody3'
              example:
                message: Notes saved successfully
                data:
                - type: ERROR
                  note: The package takes time to be shipped
                  author: Oscar Rojas
                - type: COMMENT
                  note: The package was picked up
                  author: Oscar Rojas
        '401':
          description: Unauthorized
          content:
            application/json; charset=utf-8:
              schema:
                $ref: '#/components/schemas/m4031'
              example:
                message: Unauthorized
                requestId: 3c685f11-45ec-4b8a-88ce-b9fff421eafe
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/m4031'
              example:
                message: Authentication token expired
                requestId: 6fd59420-57c6-4111-bb32-e2aa35eff256
        '404':
          description: Not Found
          content:
            application/json; charset=utf-8:
              schema:
                $ref: '#/components/schemas/m4041'
              example:
                type: exception
                code: TRP0005E
                data:
                  '0': '1'
                  carrierId: MTEyMjMtQWZ0ZXJTaGlwLWRldmVsb3BtZW50
                  serviceId: servicemock
                requestId: 6129725b-fbb1-42dd-9ec2-4fefecce41c1
                date: '2024-03-15T06:14:15.950Z'
                message: 'Service not found: ''MTEyMjMtQWZ0ZXJTaGlwLWRldmVsb3BtZW50&servicemock'''
      deprecated: false
      servers:
      - url: https://api.pickingnpacking.com/{environment}/v1/tracking/hook
        variables:
          environment:
            default: DefaultParameterValue
  /evidences/{carrierId}/{serviceId}:
    post:
      tags:
      - Shipping Updates
      summary: VTex Create evidence
      description: "Allows the carrier to add evidence of delivery or pickup to the shipping service, as photos, text.\r\n\r\n## Permissions\r\n\r\nThis endpoint does not require [permissions](https://help.vtex.com/en/tutorial/license-manager-resources--3q6ztrC8YynQf6rdc6euk3)."
      operationId: Createevidence
      parameters:
      - name: carrierId
        in: path
        description: Carrier ID.
        required: true
        style: simple
        schema:
          type: string
          example: MTEyMjMtQWZ0ZXJTaGlwLWRldmVsb3BtZW50
      - name: serviceId
        in: path
        description: Service ID.
        required: true
        style: simple
        schema:
          type: string
          example: 78c83922-d658-48bf-89d5-0658a6a94e27
      - $ref: '#/components/parameters/Content-Type'
      - $ref: '#/components/parameters/Accept'
      - $ref: '#/components/parameters/Authorization'
      requestBody:
        content:
          application/json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/CreateevidenceRequest'
              example:
              - type: IMAGE
                content: https://parkers-images.bauersecure.com/wp-images/18727/courier-van-insurance-01.jpg
                author: Felipe Cardenas
              - type: TEXT
                content: The package was delivered
                author: Felipe Cardenas
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json; charset=utf-8:
              schema:
                $ref: '#/components/schemas/ServiceBody4'
              example:
                message: Evidences saved successfully
                data:
                - type: IMAGE
                  content: https://parkers-images.bauersecure.com/wp-images/18727/courier-van-insurance-01.jpg
                  author: Felipe Cardenas
                - type: TEXT
                  content: The package was delivered
                  author: Felipe Cardenas
        '401':
          description: Unauthorized
          content:
            application/json; charset=utf-8:
              schema:
                $ref: '#/components/schemas/m4031'
              example:
                message: Unauthorized
                requestId: c482e112-aa73-4dfb-a31c-1586978dfead
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/m4031'
              example:
                message: Authentication token expired
                requestId: bcd67893-292d-4547-a01f-62feb56f8a74
        '404':
          description: Not Found
          content:
            application/json; charset=utf-8:
              schema:
                $ref: '#/components/schemas/m4041'
              example:
                type: exception
                code: TRP0005E
                data:
                  '0': '1'
                  carrierId: MTEyMjMtQWZ0ZXJTaGlwLWRldmVsb3BtZW50
                  serviceId: 78c83922-d658-48bf-89d5-0658a6a94e27
                requestId: b39a0833-629f-429e-8955-f448165502ac
                date: '2024-03-15T06:22:50.518Z'
                message: 'Service not found: ''MTEyMjMtQWZ0ZXJTaGlwLWRldmVsb3BtZW50&_78c83922-d658-48bf-89d5-0658a6a94e27'''
      deprecated: false
      servers:
      - url: https://api.pickingnpacking.com/{environment}/v1/tracking/hook
        variables:
          environment:
            default: DefaultParameterValue
  /labels/{carrierId}/{serviceId}:
    post:
      tags:
      - Shipping Updates
      summary: VTex Create label
      description: "Allows the carrier to create and add a shipping label to an order. \n\nIt is important that the tag ID is a unique value, if this value is repeated it will throw an exception. \n\n> ⚠️ If the label is type `BASE64` or `TXT`, the max size that allowed is 180kb. \r\n\r\n## Permissions\r\n\r\nThis endpoint does not require [permissions](https://help.vtex.com/en/tutorial/license-manager-resources--3q6ztrC8YynQf6rdc6euk3)."
      operationId: Createlabels
      parameters:
      - name: carrierId
        in: path
        description: Carrier ID.
        required: true
        style: simple
        schema:
          type: string
          example: MTEyMjMtQWZ0ZXJTaGlwLWRldmVsb3BtZW50
      - name: serviceId
 

# --- truncated at 32 KB (93 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/vtex/refs/heads/main/openapi/vtex-shipping-updates-api-openapi.yml