younifyd
Menu

Get inventory/sources/{sourceCode}

Get inventory/sources/{sourceCode}

GET/V1/inventory/sources/{sourceCode}

Use it in a workflow

  1. Add a step and choose the Adobe Commerce connector.
  2. Pick the Get inventory/sources/{sourceCode} action (under Inventory).
  3. Fill in the fields below, then reference the result from later steps as {{getInventorySourcesSourcecode.response.data}}.

Request

Path parameters

sourceCodestringrequired

Response

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

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>

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

carrier_codestring

Carrier code

positioninteger

Position

extension_attributesobject

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

extension_attributesobject

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

is_pickup_location_activeboolean
frontend_namestring
frontend_descriptionstring
json
{
  "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"
}

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

Get inventory/sources/{sourceCode} — Adobe Commerce — Documentation