> ## Documentation Index
> Fetch the complete documentation index at: https://sendcloud.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Retrieve a list of shipments

> Retrieve a list of orders that were imported from a specific webshop integration.

<Warning>
  **API v2 is entering maintenance mode.** New users should start with API v3 to access our latest features and improved performance. Already using v2? Don't worry, your current integration remains fully functional. Read more about [maintenance mode](/docs/getting-started/api-version-guide), or check out the [migration guide for API v3](/docs/getting-started/migration-guidelines-for-api-v3).
</Warning>

Note that the orders **are not** affected by [shipping rules](https://support.sendcloud.com/hc/en-us/articles/360025143571-Automate-your-workflow-using-Sendcloud-Shipping-Rules) at the time of retrieval, unless enabled explicitly.

This endpoint is paginated, meaning that you can navigate through the `results` via the URLs provided within the `next` and `previous` fields.


## OpenAPI

````yaml /.openapi/v2/integrations/openapi.yaml get /integrations/{id}/shipments
openapi: 3.1.0
info:
  title: Integrations
  contact:
    name: Sendcloud API Support
    email: contact@sendcloud.com
    url: https://www.sendcloud.dev
  version: 2.0.0
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
  description: >-
    The Integrations API allows you to retrieve, update and add orders to custom
    webshop integrations.
servers:
  - url: https://panel.sendcloud.sc/api/v2
    description: Sendcloud Production
security: []
tags:
  - name: Integrations
  - name: Shipments
paths:
  /integrations/{id}/shipments:
    parameters:
      - name: id
        in: path
        required: true
        schema:
          type: integer
        description: The id of the integration to which the shipments belong
    get:
      tags:
        - Shipments
      summary: Retrieve a list of shipments
      description: >-
        Retrieve a list of orders that were imported from a specific webshop
        integration.
      operationId: sc-public-v2-orders-get-retrieve_a_list_of_shipments
      parameters:
        - $ref: '#/components/parameters/cursor-parameter'
        - name: start_date
          in: query
          required: false
          description: >-
            Displays orders from the given `start_date`, including the set date.
            It defaults to one year ago.
          schema:
            type: string
            format: date
        - name: end_date
          in: query
          required: false
          description: >-
            Displays orders up to the given `end_date`, including the set date.
            It defaults to the current date.
          schema:
            type: string
            format: date
        - name: external_order_ids
          in: query
          required: false
          description: >-
            Filters results to shipments where their `external_order_id` matches
            one of the user provided ones.
          schema:
            type: array
            items:
              type: string
        - name: external_shipment_ids
          in: query
          required: false
          description: >-
            Filters results to shipments where their `external_shipments_id`
            matches one of the user provided ones.
          schema:
            type: array
            items:
              type: string
        - name: shipping_rules
          in: query
          required: false
          description: >-
            Enable shipping rules when retrieving orders. This will have an
            impact on the `allowed_shipping_methods`.
          schema:
            type: boolean
        - name: order_number
          in: query
          required: false
          description: Filters results to shipments on `order_number`.
          schema:
            type: string
        - name: sender_address
          in: query
          required: false
          description: >-
            Allows to specify a sender address id to display proper
            `allowed_shipping_methods`.
          schema:
            type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  next:
                    type: string
                    format: uri
                    description: >-
                      Cursor based pagination url to go forward. By following
                      this URL you can get a next batch of shipments
                  previous:
                    type: string
                    format: uri
                    description: >-
                      Cursor based pagination url to go backwards. By following
                      this URL you can get a previous batch of shipments
                  results:
                    type: array
                    items:
                      $ref: '#/components/schemas/ShipmentBlobOrder'
              examples:
                RetrieveShipmentList:
                  summary: Retrieve a list of shipments
                  value:
                    next: https://example.com
                    previous: https://example.com
                    results:
                      - address: Lansdown Glade
                        address_2: string
                        allowed_shipping_methods:
                          - 0
                        barcode: string
                        city: Oss
                        company_name: string
                        country: AW
                        created_at: '2019-08-24T14:15:22Z'
                        currency: EUR
                        customs_invoice_nr: '120'
                        customs_shipment_type: 0
                        email: user@example.com
                        external_order_id: '555413'
                        external_shipment_id: '777413'
                        house_number: '15'
                        integration: 0
                        name: John Doe
                        order_number: OXSDFGHTD-12
                        order_status:
                          id: fulfilled
                          message: Fulfilled
                        parcel_items:
                          - description: Very orange color
                            hs_code: '01013000'
                            origin_country: AW
                            product_id: '1458734634'
                            properties:
                              size: small
                              colour: red
                            quantity: 2
                            sku: WW-DR-GR-XS-001
                            value: '3.5'
                            weight: '1'
                            mid_code: NLOZR92MEL
                            material_content: 100% Cotton
                            intended_use: Personal use
                        payment_status:
                          id: paid
                          message: Paid
                        postal_code: '5341'
                        sender_address: 12345
                        shipment_uuid: 6b436cb2-65a4-482c-9d25-38be7868ff00
                        shipping_method: 12345
                        shipping_method_checkout_name: string
                        telephone: string
                        to_post_number: string
                        to_service_point: 0
                        to_state: string
                        total_order_value: string
                        updated_at: '2019-08-24T14:15:22Z'
                        weight: string
                        checkout_payload:
                          sender_address_id: 0
                          shipping_product:
                            code: postnl:standard
                            name: PostNL Standard
                            selected_functionalities:
                              age_check: 18
                              last_mile: home_delivery
                              first_mile: pickup_dropoff
                              multicollo: true
                              form_factor: parcel
                              service_area: domestic
                              weekend_delivery: saturday
                              delivery_deadline: best_effort
                              direct_contract_only: false
                          delivery_method_type: string
                          delivery_method_data:
                            delivery_date: '2019-08-24T14:15:22Z'
                            formatted_delivery_date: string
                            parcel_handover_date: '2019-08-24T14:15:22Z'
                        width: string
                        height: string
                        length: string
                        customs_details:
                          discount_granted: '3.99'
                          insurance_costs: '9.99'
                          freight_costs: '5.99'
                          other_costs: '2.99'
                          tax_numbers:
                            sender:
                              - tax_number:
                                  name: VAT
                                  country: NL
                                  value: NL987654321B02
                            receiver:
                              - tax_number:
                                  name: VAT
                                  country: DE
                                  value: DE123456789B03
                            importer_of_records:
                              - tax_number:
                                  name: VAT
                                  country: NL
                                  value: NL975318642B01
                        shipment_created_at: '2019-09-25T14:15:22Z'
                        shipment_updated_at: '2019-09-25T14:15:22Z'
        '404':
          $ref: '#/components/responses/404-Shipments'
      security:
        - HTTPBasicAuth: []
        - OAuth2ClientCreds: []
components:
  parameters:
    cursor-parameter:
      name: cursor
      in: query
      description: >
        The cursor query string will be used as the pivot value to filter
        results. If no value is provided, the service must return the first
        page. The value is Base64 encoded GET parameters. example:
          For a cursor string there are 3 possible parameters to encode:
          - o: Offset
          - r: Reverse
          - p: Position
          Combine into GET parameters. Example: r=1&p=300
          Base 64 encoded it would become: cj0xJnA9MzAw
          GET parameter in url would be https://some.url.com/api/endpoint/?cursor=cj0xJnA9MzAw
      schema:
        type: string
        example: cj0xJnA9MzAw
  schemas:
    ShipmentBlobOrder:
      title: Shipment Blob Order Object
      type: object
      properties:
        address:
          title: Address
          type: string
          minLength: 1
        address_2:
          title: Address 2
          type: string
        allowed_shipping_methods:
          type: array
          items:
            type: integer
          readOnly: true
        barcode:
          title: Barcode
          type: string
          minLength: 1
          description: Barcode value of the label
          readOnly: true
        city:
          title: City
          type: string
          minLength: 1
        company_name:
          title: Company name
          type: string
        country:
          $ref: '#/components/schemas/country-codes'
        created_at:
          type: string
          title: Created at
          format: date-time
          description: >-
            Timestamp indicating when the shipment was created in the Sendcloud
            system
          example: '2022-05-07T15:08:12.152000Z'
        currency:
          type:
            - string
            - 'null'
          title: Currency
          minLength: 1
          description: ISO 4217 currency code
          enum:
            - EUR
            - USD
            - GBP
        customs_invoice_nr:
          type: string
          title: Customs invoice nr
          description: Your own commercial invoice number
          example: '120'
        customs_shipment_type:
          type:
            - integer
            - 'null'
          title: Customs shipment type
          enum:
            - 0
            - 1
            - 2
            - 3
            - 4
          description: |
            Type of shipment for customs purposes:
              - `0` - Gift
              - `1` - Documents
              - `2` - Commercial Goods
              - `3` - Commercial Sample
              - `4` - Returned Goods
          minimum: 0
          maximum: 4
        email:
          title: Customer email address
          type: string
          format: email
        external_order_id:
          title: External order id
          type: string
          minLength: 1
          description: External order ID assigned by the shop system
        external_shipment_id:
          title: External shipment id
          type:
            - string
            - 'null'
          minLength: 1
          description: External shipment ID assigned by the shop system
        house_number:
          title: House number
          type: string
        integration:
          title: Integration
          type: integer
          description: Sendcloud Integration ID
          readOnly: true
        name:
          title: Name
          type: string
          minLength: 1
        order_number:
          title: Order number
          type: string
          minLength: 1
          description: Unique order number generated manualy or by the shop system
        order_status:
          $ref: '#/components/schemas/ShipmentBlobStatus'
        parcel_items:
          type:
            - array
            - 'null'
          description: List of items the parcel contains
          items:
            $ref: '#/components/schemas/ParcelItems'
        payment_status:
          $ref: '#/components/schemas/ShipmentBlobStatus'
        postal_code:
          title: Postal code
          type: string
          minLength: 1
        sender_address:
          title: Sender address
          type:
            - integer
            - 'null'
          description: ID of a sender address in the Sendcloud system
          readOnly: true
        shipment_uuid:
          type: string
          title: Shipment uuid
          minLength: 1
          format: uuid
          description: Automatically generated Sendcloud's internal ID
          readOnly: true
        shipping_method:
          type:
            - integer
            - 'null'
          title: Shipping method
          description: Foreign key indicating shipping method used
          example: 1234
        shipping_method_checkout_name:
          title: Shipping method checkout name
          type: string
          maxLength: 100
          description: Human readable shipping method name
        telephone:
          title: Telephone
          type: string
        to_post_number:
          title: To post number
          type: string
        to_service_point:
          title: To service point
          type:
            - integer
            - 'null'
        to_state:
          title: To state
          type:
            - string
            - 'null'
          minLength: 1
        total_order_value:
          title: Total order value
          type:
            - string
            - 'null'
          format: decimal
          description: The total price of an order
        updated_at:
          type: string
          title: Updated at
          format: date-time
          description: Timestamp for when the shipment was updated in the Sendcloud system
          example: '2022-05-07T15:08:12.152000Z'
        weight:
          type:
            - string
            - 'null'
          title: Weight
          format: decimal
          description: Total weight of the order. Cannot be smaler than 0.001
          example: '10.2'
          maxLength: 10
        checkout_payload:
          $ref: '#/components/schemas/CheckoutPayload'
        width:
          type:
            - string
            - 'null'
          title: Width
          description: Volumetric weight width
          format: decimal
          maxLength: 10
          example: '10.2'
        height:
          type:
            - string
            - 'null'
          title: Height
          description: Volumetric weight height
          format: decimal
          maxLength: 10
          example: '10.2'
        length:
          type:
            - string
            - 'null'
          title: Length
          description: Volumetric weight length
          format: decimal
          maxLength: 10
          example: '10.2'
        customs_details:
          $ref: '#/components/schemas/CustomsInformation'
        shipment_created_at:
          type: string
          format: date-time
          description: >-
            Timestamp indicating when the shipment was created in the shop
            system
          example: '2022-07-07T15:08:12.152000Z'
          readOnly: true
        shipment_updated_at:
          type: string
          format: date-time
          description: Timestamp for when the shipment was updated in the shop system
          example: '2022-07-07T15:08:12.152000Z'
          readOnly: true
      required:
        - address
        - address_2
        - city
        - company_name
        - country
        - created_at
        - currency
        - customs_invoice_nr
        - customs_shipment_type
        - email
        - external_order_id
        - external_shipment_id
        - house_number
        - name
        - order_number
        - order_status
        - parcel_items
        - payment_status
        - postal_code
        - shipping_method_checkout_name
        - telephone
        - to_post_number
        - to_service_point
        - to_state
        - updated_at
        - shipment_created_at
        - shipment_updated_at
    country-codes:
      type: string
      title: Country Code Object
      enum:
        - AW
        - AF
        - AO
        - AI
        - AX
        - AL
        - AD
        - AE
        - AR
        - AM
        - AS
        - AQ
        - TF
        - AG
        - AU
        - AT
        - AZ
        - BI
        - BE
        - BJ
        - BQ
        - BF
        - BD
        - BG
        - BH
        - BS
        - BA
        - BL
        - BY
        - BZ
        - BM
        - BO
        - BR
        - BB
        - BN
        - BT
        - BV
        - BW
        - CF
        - CA
        - CC
        - CH
        - CL
        - CN
        - CI
        - CM
        - CD
        - CG
        - CK
        - CO
        - KM
        - CV
        - CR
        - CU
        - CW
        - CX
        - KY
        - CY
        - CZ
        - DE
        - DJ
        - DM
        - DK
        - DO
        - DZ
        - EC
        - EG
        - ER
        - EH
        - ES
        - EE
        - ET
        - FI
        - FJ
        - FK
        - FR
        - FO
        - FM
        - GA
        - GB
        - GE
        - GG
        - GH
        - GI
        - GN
        - GP
        - GM
        - GW
        - GQ
        - GR
        - GD
        - GL
        - GT
        - GF
        - GU
        - GY
        - HK
        - HM
        - HN
        - HR
        - HT
        - HU
        - ID
        - IM
        - IN
        - IO
        - IE
        - IR
        - IQ
        - IS
        - IL
        - IT
        - JM
        - JE
        - JO
        - JP
        - KZ
        - KE
        - KG
        - KH
        - KI
        - KN
        - KR
        - KW
        - LA
        - LB
        - LR
        - LY
        - LC
        - LI
        - LK
        - LS
        - LT
        - LU
        - LV
        - MO
        - MF
        - MA
        - MC
        - MD
        - MG
        - MV
        - MX
        - MH
        - MK
        - ML
        - MT
        - MM
        - ME
        - MN
        - MP
        - MZ
        - MR
        - MS
        - MQ
        - MU
        - MW
        - MY
        - YT
        - NA
        - NC
        - NE
        - NF
        - NG
        - NI
        - NU
        - NL
        - 'NO'
        - NP
        - NR
        - NZ
        - OM
        - PK
        - PA
        - PN
        - PE
        - PH
        - PW
        - PG
        - PL
        - PR
        - KP
        - PT
        - PY
        - PS
        - PF
        - QA
        - RE
        - RO
        - RU
        - RW
        - SA
        - SD
        - SN
        - SG
        - GS
        - SH
        - SJ
        - SB
        - SL
        - SV
        - SM
        - SO
        - PM
        - RS
        - SS
        - ST
        - SR
        - SK
        - SI
        - SE
        - SZ
        - SX
        - SC
        - SY
        - TC
        - TD
        - TG
        - TH
        - TJ
        - TK
        - TM
        - TL
        - TO
        - TT
        - TN
        - TR
        - TV
        - TW
        - TZ
        - UG
        - UA
        - UM
        - UY
        - US
        - UZ
        - VA
        - VC
        - VE
        - VG
        - VI
        - VN
        - VU
        - WF
        - WS
        - YE
        - ZA
        - ZM
        - ZW
        - IC
        - XK
      description: A country represented by its ISO 3166-1 alpha-2 code
      example: NL
    ShipmentBlobStatus:
      title: Shipment Blob Status Object
      type:
        - object
        - 'null'
      properties:
        id:
          title: Id
          type: string
          minLength: 1
          description: Custom internal shop status, can be used for filtering
        message:
          title: Message
          type: string
          minLength: 1
          description: User-defined human readable status
      required:
        - id
        - message
    ParcelItems:
      title: Parcel Items Object
      type: object
      properties:
        description:
          type: string
          title: Description
          minLength: 1
          description: Description of the type of product
          example: Bag
        hs_code:
          description: Harmonized System Code
          type: string
          title: HS code
          example: '01013000'
          maxLength: 12
        origin_country:
          type:
            - string
            - 'null'
          title: Origin country
          enum:
            - AW
            - AF
            - AO
            - AI
            - AX
            - AL
            - AD
            - AE
            - AR
            - AM
            - AS
            - AQ
            - TF
            - AG
            - AU
            - AT
            - AZ
            - BI
            - BE
            - BJ
            - BQ
            - BF
            - BD
            - BG
            - BH
            - BS
            - BA
            - BL
            - BY
            - BZ
            - BM
            - BO
            - BR
            - BB
            - BN
            - BT
            - BV
            - BW
            - CF
            - CA
            - CC
            - CH
            - CL
            - CN
            - CI
            - CM
            - CD
            - CG
            - CK
            - CO
            - KM
            - CV
            - CR
            - CU
            - CW
            - CX
            - KY
            - CY
            - CZ
            - DE
            - DJ
            - DM
            - DK
            - DO
            - DZ
            - EC
            - EG
            - ER
            - EH
            - ES
            - EE
            - ET
            - FI
            - FJ
            - FK
            - FR
            - FO
            - FM
            - GA
            - GB
            - GE
            - GG
            - GH
            - GI
            - GN
            - GP
            - GM
            - GW
            - GQ
            - GR
            - GD
            - GL
            - GT
            - GF
            - GU
            - GY
            - HK
            - HM
            - HN
            - HR
            - HT
            - HU
            - ID
            - IM
            - IN
            - IO
            - IE
            - IR
            - IQ
            - IS
            - IL
            - IT
            - JM
            - JE
            - JO
            - JP
            - KZ
            - KE
            - KG
            - KH
            - KI
            - KN
            - KR
            - KW
            - LA
            - LB
            - LR
            - LY
            - LC
            - LI
            - LK
            - LS
            - LT
            - LU
            - LV
            - MO
            - MF
            - MA
            - MC
            - MD
            - MG
            - MV
            - MX
            - MH
            - MK
            - ML
            - MT
            - MM
            - ME
            - MN
            - MP
            - MZ
            - MR
            - MS
            - MQ
            - MU
            - MW
            - MY
            - YT
            - NA
            - NC
            - NE
            - NF
            - NG
            - NI
            - NU
            - NL
            - 'NO'
            - NP
            - NR
            - NZ
            - OM
            - PK
            - PA
            - PN
            - PE
            - PH
            - PW
            - PG
            - PL
            - PR
            - KP
            - PT
            - PY
            - PS
            - PF
            - QA
            - RE
            - RO
            - RU
            - RW
            - SA
            - SD
            - SN
            - SG
            - GS
            - SH
            - SJ
            - SB
            - SL
            - SV
            - SM
            - SO
            - PM
            - RS
            - SS
            - ST
            - SR
            - SK
            - SI
            - SE
            - SZ
            - SX
            - SC
            - SY
            - TC
            - TD
            - TG
            - TH
            - TJ
            - TK
            - TM
            - TL
            - TO
            - TT
            - TN
            - TR
            - TV
            - TW
            - TZ
            - UG
            - UA
            - UM
            - UY
            - US
            - UZ
            - VA
            - VC
            - VE
            - VG
            - VI
            - VN
            - VU
            - WF
            - WS
            - YE
            - ZA
            - ZM
            - ZW
            - IC
            - XK
          description: >-
            Country code from where the products were originally produced (ISO
            3166-1 alpha-2)
          minLength: 2
          maxLength: 2
        product_id:
          type: string
          title: Product id
          description: Internal ID of the product
          example: '1458734634'
        properties:
          title: Properties
          type: object
          additionalProperties:
            type:
              - string
              - 'null'
          description: >-
            An object containing any additional properties of the product, e.g.
            `color: Black`
        quantity:
          type: integer
          title: Quantity
          minimum: 1
          description: Number of units of a given item
          example: 2
        sku:
          type: string
          title: Sku
          description: >-
            Internal stock keeping unit, used by retailers to assign to
            products, in order to keep track of stock levels internally.
          example: WW-DR-GR-XS-001
        value:
          title: Value
          type: string
          format: decimal
          description: Price of an item
        weight:
          title: Weight
          type:
            - string
            - 'null'
          format: decimal
          description: Weight of an item
        mid_code:
          title: MID Code
          type:
            - string
            - 'null'
          description: >-
            MID code is short for Manufacturer's Identification code and must be
            shown on the commercial invoice. It's used as an alternative to the
            full name and address of a manufacturer, shipper or exporter and is
            always required for U.S. formal customs entries.
          example: NLOZR92MEL
        material_content:
          title: Material Content
          type:
            - string
            - 'null'
          description: A description of materials of the order content.
          example: 100% Cotton
        intended_use:
          title: Intended Use
          type:
            - string
            - 'null'
          description: >-
            Intended use of the order contents. The intended use may be personal
            or commercial.
          example: Personal use
      required:
        - description
        - quantity
        - value
    CheckoutPayload:
      title: Checkout Payload Object
      type: object
      properties:
        sender_address_id:
          title: >-
            The [sender address unique
            identifier](../sender-addresses/openapi.yaml) associated with the
            order
          type: integer
          description: The sender_address_id associated with the order
        shipping_product:
          title: Shipping product
          type: object
          description: >-
            The shipping product with the associated functionalities of the
            order. See example payload. The `code`, `name` and
            `selected_functionalities` fields are **all required**. This data
            follows from the chosen `delivery_method` (by the end-consumer).
        delivery_method_type:
          title: Delivery method type
          type: string
          minLength: 1
          description: >-
            The type of the delivery method. Needs to be either
            `standard_delivery`, `nominated_day_delivery` or
            `same_day_delivery`.
        delivery_method_data:
          type: object
          properties:
            delivery_date:
              title: Delivery date
              type: string
              format: date-time
              description: The delivery date required by the end-consumer
            formatted_delivery_date:
              type: string
              title: Formatted delivery date
              minLength: 1
              example: February 21, 2012
            parcel_handover_date:
              title: Parcel handover date
              type: string
              format: date-time
              description: Date at which the parcel needs to be handed over to the carrier
          required:
            - delivery_date
            - formatted_delivery_date
            - parcel_handover_date
      required:
        - sender_address_id
        - shipping_product
        - delivery_method_type
    CustomsInformation:
      type:
        - object
        - 'null'
      title: Customs Information
      description: Customs information related to this shipment
      properties:
        discount_granted:
          $ref: '#/components/schemas/CostsObject'
          type:
            - object
            - 'null'
          title: Discount Granted
          description: Discount granted on the total order
        insurance_costs:
          $ref: '#/components/schemas/CostsObject'
          type:
            - object
            - 'null'
          title: Insurance Cost
          description: Amount the order is insured for
        freight_costs:
          $ref: '#/components/schemas/CostsObject'
          type:
            - object
            - 'null'
          title: Freight Cost
          description: Shipping cost of the order
        other_costs:
          $ref: '#/components/schemas/CostsObject'
          type:
            - object
            - 'null'
          title: Other Costs
          description: Any other costs (for eg, wrapping costs) associated with the order
        tax_numbers:
          type:
            - object
            - 'null'
          title: Tax information about sender, receiver, and importer of records
          properties:
            sender:
              type: array
              title: Sender's Tax Information
              minItems: 0
              items:
                $ref: '#/components/schemas/TaxNumber'
            receiver:
              type: array
              title: Receiver's Tax Information
              minItems: 0
              items:
                $ref: '#/components/schemas/TaxNumber'
            importer_of_records:
              type: array
              title: Receiver's Tax Information
              minItems: 0
              items:
                $ref: '#/components/schemas/TaxNumber'
    CostsObject:
      properties:
        value:
          type:
            - string
            - 'null'
          pattern: '[\d]+(\.[\d]+)?'
          example: '3.99'
        currency:
          type:
            - string
            - 'null'
          example: EUR
    TaxNumber:
      type: object
      title: Tax Number
      properties:
        name:
          type:
            - string
            - 'null'
          title: Tax ID name
          example: VAT
        country_code:
          type:
            - string
            - 'null'
          title: The country code of the country in the address
          example: NL
        value:
          type:
            - string
            - 'null'
          title: The value of the Tax ID
          example: NL987654321B02
  responses:
    404-Shipments:
      description: Example response
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: object
                properties:
                  code:
                    type: integer
                    description: HTTP response status code
                    example: 404
                  request:
                    type: string
                    description: Endpoint which returned the response
                  message:
                    type: string
                    description: Human readable error message
                required:
                  - code
                  - request
                  - message
          examples:
            ShipmentNotFound:
              summary: Shipment not found
              value:
                error:
                  code: 404
                  request: api/v2/integrations/1/shipments/
                  message: No ShipmentBlob matches the given query.
            IntegrationNotFound:
              summary: Integration not found
              value:
                error:
                  code: 404
                  request: api/v2/integrations/1/shipments/
                  message: No Integration matches the given query.
  securitySchemes:
    HTTPBasicAuth:
      type: http
      description: >-
        Basic Authentication using API key and secrets is currently the main
        authentication mechanism.
      scheme: basic
    OAuth2ClientCreds:
      type: oauth2
      description: >-
        OAuth2 is a standardized protocol for authorization that allows users to
        share their private resources stored on one site with another site
        without having to provide their credentials. OAuth2 Client Credentials
        Grant workflow. This workflow is typically used for server-to-server
        interactions that require authorization to access specific resources.
      flows:
        clientCredentials:
          tokenUrl: https://account.sendcloud.com/oauth2/token/
          scopes:
            api: Default OAuth scope required to access Sendcloud API.

````