# Get Sources assigned to Stock ordered by priority If Stock with given id doesn't exist then return an empty array **GET /V1/inventory/get-sources-assigned-to-stock-ordered-by-priority/{stockId}** Get Sources assigned to Stock ordered by priority If Stock with given id doesn't exist then return an empty array ## Servers - https://magento2.winkelstraat.mac/rest/all: https://magento2.winkelstraat.mac/rest/all () ## Parameters ### Path parameters - **stockId** (integer) ## Responses ### 200 200 Success. #### Body: (array[object]) - **source_code** (string) Source code - **name** (string) Source name - **email** (string) Source email - **contact_name** (string) Source contact name - **enabled** (boolean) If source is enabled. For new entity can be null - **description** (string) Source description - **latitude** (number) Source latitude - **longitude** (number) Source longitude - **country_id** (string) Source country id - **region_id** (integer) Region id if source has registered region. - **region** (string) Region title if source has custom region - **city** (string) Source city - **street** (string) Source street name - **postcode** (string) Source post code - **phone** (string) Source phone number - **fax** (string) Source fax - **use_default_carrier_config** (boolean) Is need to use default config - **carrier_links** (array[object]) Represents relation between some physical storage and shipping method Used fully qualified namespaces in annotations for proper work of WebApi request parser - **extension_attributes** (object) ExtensionInterface class for @see \Magento\InventoryApi\Api\Data\SourceInterface ### 401 401 Unauthorized #### Body: (object) - **message** (string) Error message - **errors** (array[object]) Error details - **code** (integer) Error code - **parameters** (array[object]) Error parameters item - **trace** (string) Stack trace ### 400 400 Bad Request #### Body: (object) - **message** (string) Error message - **errors** (array[object]) Error details - **code** (integer) Error code - **parameters** (array[object]) Error parameters item - **trace** (string) Stack trace ### 500 Internal Server error #### Body: (object) - **message** (string) Error message - **errors** (array[object]) Error details - **code** (integer) Error code - **parameters** (array[object]) Error parameters item - **trace** (string) Stack trace ### default Unexpected error #### Body: (object) - **message** (string) Error message - **errors** (array[object]) Error details - **code** (integer) Error code - **parameters** (array[object]) Error parameters item - **trace** (string) Stack trace [Powered by Bump.sh](https://bump.sh)