Get Source data by given code

GET /V1/inventory/sources/{sourceCode}

Get Source data by given code. If you want to create plugin on get method, also you need to create separate plugin on getList method, because entity loading way is different for these methods

Responses

GET /V1/inventory/sources/{sourceCode}
curl \
 -X GET https://magento2.winkelstraat.mac/rest/all/V1/inventory/sources/{sourceCode}
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 (default)
{
  "message": "string",
  "errors": [
    {
      "message": "string",
      "parameters": [
        {
          "resources": "string",
          "fieldName": "string",
          "fieldValue": "string"
        }
      ]
    }
  ],
  "code": 42,
  "parameters": [
    {
      "resources": "string",
      "fieldName": "string",
      "fieldValue": "string"
    }
  ],
  "trace": "string"
}