ReDoc documentation
Find Sources by SearchCriteria SearchCriteria is not required because load all stocks is useful case
200 Success.
401 Unauthorized
Unexpected error
{- "items": [
- {
- "source_code": "string",
- "name": "string",
- "email": "string",
- "contact_name": "string",
- "enabled": true,
- "description": "string",
- "latitude": 0,
- "longitude": 0,
- "country_id": "string",
- "region_id": 0,
- "region": "string",
- "city": "string",
- "street": "string",
- "postcode": "string",
- "phone": "string",
- "fax": "string",
- "use_default_carrier_config": true,
- "carrier_links": [
- {
- "carrier_code": "string",
- "position": 0,
- "extension_attributes": { }
}
], - "extension_attributes": {
- "is_pickup_location_active": true,
- "frontend_name": "string",
- "frontend_description": "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
}
Save Source data
required | object (inventory-api-data-source-interface) Represents physical storage, i.e. brick and mortar store or warehouse Used fully qualified namespaces in annotations for proper work of WebApi request parser |
400 Bad Request
401 Unauthorized
Unexpected error
{- "source": {
- "source_code": "string",
- "name": "string",
- "email": "string",
- "contact_name": "string",
- "enabled": true,
- "description": "string",
- "latitude": 0,
- "longitude": 0,
- "country_id": "string",
- "region_id": 0,
- "region": "string",
- "city": "string",
- "street": "string",
- "postcode": "string",
- "phone": "string",
- "fax": "string",
- "use_default_carrier_config": true,
- "carrier_links": [
- {
- "carrier_code": "string",
- "position": 0,
- "extension_attributes": { }
}
], - "extension_attributes": {
- "is_pickup_location_active": true,
- "frontend_name": "string",
- "frontend_description": "string"
}
}
}
{- "message": "string",
- "errors": [
- {
- "message": "string",
- "parameters": [
- {
- "resources": "string",
- "fieldName": "string",
- "fieldValue": "string"
}
]
}
], - "code": 0,
- "parameters": [
- {
- "resources": "string",
- "fieldName": "string",
- "fieldValue": "string"
}
], - "trace": "string"
}