Get Sources assigned to Stock ordered by priority If Stock with given id doesn't exist then return an empty array
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}
curl \
-X GET https://magento2.winkelstraat.mac/rest/all/V1/inventory/get-sources-assigned-to-stock-ordered-by-priority/{stockId}
Response examples (200)
[
{
"source_code": "string",
"name": "string",
"email": "string",
"contact_name": "string",
"enabled": true,
"description": "string",
"latitude": 42.0,
"longitude": 42.0,
"country_id": "string",
"region_id": 42,
"region": "string",
"city": "string",
"street": "string",
"postcode": "string",
"phone": "string",
"fax": "string",
"use_default_carrier_config": true,
"carrier_links": [
{
"carrier_code": "string",
"position": 42,
"extension_attributes": {}
}
],
"extension_attributes": {
"is_pickup_location_active": true,
"frontend_name": "string",
"frontend_description": "string"
}
}
]
Response examples (401)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}
Response examples (400)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}
Response examples (500)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}
Response examples (default)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}