younifyd
Menu

Get shipments

Get shipments

GET/V1/shipments

Use it in a workflow

  1. Add a step and choose the Adobe Commerce connector.
  2. Pick the Get shipments action (under Invoices & Shipments).
  3. Fill in the fields below, then reference the result from later steps as {{getShipments.response.data}}.

Request

Query parameters

searchCriteria[filterGroups][0][filters][0][field]string

Field

searchCriteria[filterGroups][0][filters][0][value]string

Value

searchCriteria[filterGroups][0][filters][0][conditionType]string

Condition type

searchCriteria[sortOrders][0][field]string

Sorting field.

searchCriteria[sortOrders][0][direction]string

Sorting direction.

searchCriteria[pageSize]integer

Page size.

searchCriteria[currentPage]integer

Current page.

Response

Returns 200 with an object. Read it in later steps with {{getShipments.response.data.<field>}}.

itemsarray<object>

Array of collection items.

billing_address_idinteger

Billing address ID.

created_atstring

Created-at timestamp.

customer_idinteger

Customer ID.

email_sentinteger

Email-sent flag value.

entity_idinteger

Shipment ID.

increment_idstring

Increment ID.

order_idintegerrequired

Order ID.

packagesarray<object>1 fields

Array of packages, if any. Otherwise, null.

shipment_statusinteger

Shipment status.

shipping_address_idinteger

Shipping address ID.

shipping_labelstring

Shipping label.

store_idinteger

Store ID.

total_qtynumber

Total quantity.

total_weightnumber

Total weight.

updated_atstring

Updated-at timestamp.

itemsarray<object>required13 fields

Array of items.

tracksarray<object>required12 fields

Array of tracks.

commentsarray<object>required7 fields

Array of comments.

extension_attributesobject1 fields

ExtensionInterface class for @see \Magento\Sales\Api\Data\ShipmentInterface

search_criteriaobject

Search criteria interface.

filter_groupsarray<object>required1 fields

A list of filter groups.

sort_ordersarray<object>2 fields

Sort order.

page_sizeinteger

Page size.

current_pageinteger

Current page.

total_countinteger

Total count.

json
{
  "items": [
    {
      "order_id": 0,
      "items": [
        {
          "order_item_id": 0,
          "qty": 0,
          "additional_data": "string",
          "description": "string",
          "entity_id": 0,
          "name": "string",
          "parent_id": 0,
          "price": 0,
          "product_id": 0,
          "row_total": 0,
          "sku": "string",
          "weight": 0
        }
      ],
      "tracks": [
        {
          "order_id": 0,
          "parent_id": 0,
          "weight": 0,
          "qty": 0,
          "description": "string",
          "track_number": "string",
          "title": "string",
          "carrier_code": "string",
          "created_at": "string",
          "entity_id": 0,
          "updated_at": "string",
          "extension_attributes": {}
        }
      ],
      "comments": [
        {
          "is_customer_notified": 0,
          "parent_id": 0,
          "comment": "string",
          "is_visible_on_front": 0,
          "extension_attributes": {},
          "created_at": "string",
          "entity_id": 0
        }
      ],
      "billing_address_id": 0,
      "created_at": "string",
      "customer_id": 0,
      "email_sent": 0,
      "entity_id": 0,
      "increment_id": "string",
      "packages": [
        {
          "extension_attributes": {}
        }
      ],
      "shipment_status": 0
    }
  ],
  "search_criteria": {
    "filter_groups": [
      {
        "filters": [
          {
            "field": "string",
            "value": "string",
            "condition_type": "string"
          }
        ]
      }
    ],
    "sort_orders": [
      {
        "field": "string",
        "direction": "string"
      }
    ],
    "page_size": 0,
    "current_page": 0
  },
  "total_count": 0
}

Need more? See the Adobe Commerce guide for connection setup and behaviour shared by every action.