GET /V1/stock-hub/quotes/{quoteId}

Get a specific Stock Hub quote. This method should be used to validate a quote, before submitting it to an order.

Path parameters

  • quoteId integer Required

Responses

  • 200 Success.

    Hide response attributes Show response attributes object
    • id integer Required

      .

    • created_at string Required

      Timestamp when quote is created

    • updated_at string Required

      Timestamp when quote is updated

    • items array[object] Required

      Quote items

      Hide items attributes Show items attributes object
      • sku string Required

        SKU

      • parent_sku string

        Parent SKU

      • qty integer Required

        Quantity

      • item_price_inc_tax number Required

        Price of single item including VAT

      • row_total_inc_tax number Required

        Price of order line (items X quantity) including VAT

      • manufacturer string

        Manufacturer name

      • size string

        Size

      • mpn string

        Manufacturer product number

    • billing_address object Required
      Hide billing_address attributes Show billing_address attributes object
      • first_name string

        Firstname

      • company_name string

        Company name

      • last_name string

        Lastname

      • email string

        Email

      • telephone string

        Telephone. Needs to be in international format +XXXXXXXXXXX.

      • street string

        Street. Needs to be "street name" and "house number"

      • house_number string Required

        House number with addition.

      • postcode string

        Postcode

      • city string

        City

      • region_code string

        Region code

      • country_id string

        Country id. Needs to a ALPHA-2 ISO 3166 country code.

    • shipping_address object Required
      Hide shipping_address attributes Show shipping_address attributes object
      • first_name string

        Firstname

      • company_name string

        Company name

      • last_name string

        Lastname

      • email string

        Email

      • telephone string

        Telephone. Needs to be in international format +XXXXXXXXXXX.

      • street string

        Street. Needs to be "street name" and "house number"

      • house_number string Required

        House number with addition.

      • postcode string

        Postcode

      • city string

        City

      • region_code string

        Region code

      • country_id string

        Country id. Needs to a ALPHA-2 ISO 3166 country code.

    • payment object
      Hide payment attributes Show payment attributes object
      • method string

        Payment method

      • po_number string

        Purchase order number

    • grand_total number Required

      Grand total (inc. VAT)

    • shipping_price number

      Shipping & handling costs (incl. VAT)

    • currency string
    Hide response attributes Show response attributes object
    • id integer Required

      .

    • created_at string Required

      Timestamp when quote is created

    • updated_at string Required

      Timestamp when quote is updated

    • items array[object] Required

      Quote items

      Hide items attributes Show items attributes object
      • sku string Required

        SKU

      • parent_sku string

        Parent SKU

      • qty integer Required

        Quantity

      • item_price_inc_tax number Required

        Price of single item including VAT

      • row_total_inc_tax number Required

        Price of order line (items X quantity) including VAT

      • manufacturer string

        Manufacturer name

      • size string

        Size

      • mpn string

        Manufacturer product number

    • billing_address object Required
      Hide billing_address attributes Show billing_address attributes object
      • first_name string

        Firstname

      • company_name string

        Company name

      • last_name string

        Lastname

      • email string

        Email

      • telephone string

        Telephone. Needs to be in international format +XXXXXXXXXXX.

      • street string

        Street. Needs to be "street name" and "house number"

      • house_number string Required

        House number with addition.

      • postcode string

        Postcode

      • city string

        City

      • region_code string

        Region code

      • country_id string

        Country id. Needs to a ALPHA-2 ISO 3166 country code.

    • shipping_address object Required
      Hide shipping_address attributes Show shipping_address attributes object
      • first_name string

        Firstname

      • company_name string

        Company name

      • last_name string

        Lastname

      • email string

        Email

      • telephone string

        Telephone. Needs to be in international format +XXXXXXXXXXX.

      • street string

        Street. Needs to be "street name" and "house number"

      • house_number string Required

        House number with addition.

      • postcode string

        Postcode

      • city string

        City

      • region_code string

        Region code

      • country_id string

        Country id. Needs to a ALPHA-2 ISO 3166 country code.

    • payment object
      Hide payment attributes Show payment attributes object
      • method string

        Payment method

      • po_number string

        Purchase order number

    • grand_total number Required

      Grand total (inc. VAT)

    • shipping_price number

      Shipping & handling costs (incl. VAT)

    • currency string
  • 401 Unauthorized

    Hide response attributes Show response attributes object
    • message string Required

      Error message

    • errors array[object]

      Errors list

      Hide errors attributes Show errors attributes object

      Error details

      • message string

        Error message

      • parameters array[object]

        Error parameters list

        Hide parameters attributes Show parameters attributes object

        Error parameters item

        • resources string

          ACL resource

        • fieldName string

          Missing or invalid field name

        • fieldValue string

          Incorrect field value

    • code integer

      Error code

    • parameters array[object]

      Error parameters list

      Hide parameters attributes Show parameters attributes object

      Error parameters item

      • resources string

        ACL resource

      • fieldName string

        Missing or invalid field name

      • fieldValue string

        Incorrect field value

    • trace string

      Stack trace

    Hide response attributes Show response attributes object
    • message string Required

      Error message

    • errors array[object]

      Errors list

      Hide errors attributes Show errors attributes object

      Error details

      • message string

        Error message

      • parameters array[object]

        Error parameters list

        Hide parameters attributes Show parameters attributes object

        Error parameters item

        • resources string

          ACL resource

        • fieldName string

          Missing or invalid field name

        • fieldValue string

          Incorrect field value

    • code integer

      Error code

    • parameters array[object]

      Error parameters list

      Hide parameters attributes Show parameters attributes object

      Error parameters item

      • resources string

        ACL resource

      • fieldName string

        Missing or invalid field name

      • fieldValue string

        Incorrect field value

    • trace string

      Stack trace

  • Unexpected error

    Hide response attributes Show response attributes object
    • message string Required

      Error message

    • errors array[object]

      Errors list

      Hide errors attributes Show errors attributes object

      Error details

      • message string

        Error message

      • parameters array[object]

        Error parameters list

        Hide parameters attributes Show parameters attributes object

        Error parameters item

        • resources string

          ACL resource

        • fieldName string

          Missing or invalid field name

        • fieldValue string

          Incorrect field value

    • code integer

      Error code

    • parameters array[object]

      Error parameters list

      Hide parameters attributes Show parameters attributes object

      Error parameters item

      • resources string

        ACL resource

      • fieldName string

        Missing or invalid field name

      • fieldValue string

        Incorrect field value

    • trace string

      Stack trace

    Hide response attributes Show response attributes object
    • message string Required

      Error message

    • errors array[object]

      Errors list

      Hide errors attributes Show errors attributes object

      Error details

      • message string

        Error message

      • parameters array[object]

        Error parameters list

        Hide parameters attributes Show parameters attributes object

        Error parameters item

        • resources string

          ACL resource

        • fieldName string

          Missing or invalid field name

        • fieldValue string

          Incorrect field value

    • code integer

      Error code

    • parameters array[object]

      Error parameters list

      Hide parameters attributes Show parameters attributes object

      Error parameters item

      • resources string

        ACL resource

      • fieldName string

        Missing or invalid field name

      • fieldValue string

        Incorrect field value

    • trace string

      Stack trace

GET /V1/stock-hub/quotes/{quoteId}
curl \
 --request GET 'https://magento2.winkelstraat.mac/rest/all/V1/stock-hub/quotes/{quoteId}'
Response examples (200)
{
  "id": 42,
  "created_at": "string",
  "updated_at": "string",
  "items": [
    {
      "sku": "string",
      "parent_sku": "string",
      "qty": 42,
      "item_price_inc_tax": 42.0,
      "row_total_inc_tax": 42.0,
      "manufacturer": "string",
      "size": "string",
      "mpn": "string"
    }
  ],
  "billing_address": {
    "first_name": "string",
    "company_name": "string",
    "last_name": "string",
    "email": "string",
    "telephone": "string",
    "street": "string",
    "house_number": "string",
    "postcode": "string",
    "city": "string",
    "region_code": "string",
    "country_id": "string"
  },
  "shipping_address": {
    "first_name": "string",
    "company_name": "string",
    "last_name": "string",
    "email": "string",
    "telephone": "string",
    "street": "string",
    "house_number": "string",
    "postcode": "string",
    "city": "string",
    "region_code": "string",
    "country_id": "string"
  },
  "payment": {
    "method": "string",
    "po_number": "string"
  },
  "grand_total": 42.0,
  "shipping_price": 42.0,
  "currency": "string"
}
Response examples (200)
<?xml version="1.0" encoding="UTF-8"?>
<root>
  <id type="integer">42</id>
  <created-at>string</created-at>
  <updated-at>string</updated-at>
  <items type="array">
    <item>
      <sku>string</sku>
      <parent-sku>string</parent-sku>
      <qty type="integer">42</qty>
      <item-price-inc-tax type="float">42.0</item-price-inc-tax>
      <row-total-inc-tax type="float">42.0</row-total-inc-tax>
      <manufacturer>string</manufacturer>
      <size>string</size>
      <mpn>string</mpn>
    </item>
  </items>
  <billing-address>
    <first-name>string</first-name>
    <company-name>string</company-name>
    <last-name>string</last-name>
    <email>string</email>
    <telephone>string</telephone>
    <street>string</street>
    <house-number>string</house-number>
    <postcode>string</postcode>
    <city>string</city>
    <region-code>string</region-code>
    <country-id>string</country-id>
  </billing-address>
  <shipping-address>
    <first-name>string</first-name>
    <company-name>string</company-name>
    <last-name>string</last-name>
    <email>string</email>
    <telephone>string</telephone>
    <street>string</street>
    <house-number>string</house-number>
    <postcode>string</postcode>
    <city>string</city>
    <region-code>string</region-code>
    <country-id>string</country-id>
  </shipping-address>
  <payment>
    <method>string</method>
    <po-number>string</po-number>
  </payment>
  <grand-total type="float">42.0</grand-total>
  <shipping-price type="float">42.0</shipping-price>
  <currency>string</currency>
</root>
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 (401)
<?xml version="1.0" encoding="UTF-8"?>
<root>
  <message>string</message>
  <errors type="array">
    <error>
      <message>string</message>
      <parameters type="array">
        <parameter>
          <resources>string</resources>
          <fieldName>string</fieldName>
          <fieldValue>string</fieldValue>
        </parameter>
      </parameters>
    </error>
  </errors>
  <code type="integer">42</code>
  <parameters type="array">
    <parameter>
      <resources>string</resources>
      <fieldName>string</fieldName>
      <fieldValue>string</fieldValue>
    </parameter>
  </parameters>
  <trace>string</trace>
</root>
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"
}
Response examples (default)
<?xml version="1.0" encoding="UTF-8"?>
<root>
  <message>string</message>
  <errors type="array">
    <error>
      <message>string</message>
      <parameters type="array">
        <parameter>
          <resources>string</resources>
          <fieldName>string</fieldName>
          <fieldValue>string</fieldValue>
        </parameter>
      </parameters>
    </error>
  </errors>
  <code type="integer">42</code>
  <parameters type="array">
    <parameter>
      <resources>string</resources>
      <fieldName>string</fieldName>
      <fieldValue>string</fieldValue>
    </parameter>
  </parameters>
  <trace>string</trace>
</root>