younifyd
Menu

Get inventory/sources

Get inventory/sources

GET/V1/inventory/sources

Use it in a workflow

  1. Add a step and choose the Adobe Commerce connector.
  2. Pick the Get inventory/sources action (under Inventory).
  3. Fill in the fields below, then reference the result from later steps as {{getInventorySources.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 {{getInventorySources.response.data.<field>}}.

itemsarray<object>

Sources list

source_codestring

Source code

namestring

Source name

emailstring

Source email

contact_namestring

Source contact name

enabledboolean

If source is enabled. For new entity can be null

descriptionstring

Source description

latitudenumber

Source latitude

longitudenumber

Source longitude

country_idstring

Source country id

region_idinteger

Region id if source has registered region.

regionstring

Region title if source has custom region

citystring

Source city

streetstring

Source street name

postcodestring

Source post code

phonestring

Source phone number

faxstring

Source fax

use_default_carrier_configboolean

Is need to use default config

carrier_linksarray<object>3 fields

Carrier links for the source as an array of SourceCarrierLinkInterface objects or null.

extension_attributesobject3 fields

ExtensionInterface class for @see \Magento\InventoryApi\Api\Data\SourceInterface

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": [
    {
      "source_code": "string",
      "name": "string",
      "email": "string",
      "contact_name": "string",
      "enabled": false,
      "description": "string",
      "latitude": 0,
      "longitude": 0,
      "country_id": "string",
      "region_id": 0,
      "region": "string",
      "city": "string"
    }
  ],
  "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.