Create Stock Hub quote for a set of product items

POST /V1/stock-hub/quotes/request

Create Stock Hub quote for a set of product items. Note: The billing address must specify the address of the person/entity that completes the payment to Winkelstraat.nl. For direct payments from 3rd party customers to Winkelstraat.nl, we need to specify the address of the 3rd party customer. For indirect payments from 3rd party customers to Winkestraat.nl, we need so specify the intermediate party that executes the payment. The shipping address must specify the address to which the quoted items need to be shipped. The correct address are required for fraud detection when conducted by Winkelstraat.nl's payment service provider.

Body

Responses

  • 200 Success.

  • 401 Unauthorized

    Hide response attributes Show response attributes object
    • message string Required

      Error message

    • errors array[object]

      Error details

      Hide errors attributes Show errors attributes object

      Error details

      • message string

        Error message

      • parameters array[object]

        Error parameters item

        Hide parameters attributes Show parameters attributes object

        Error parameters item

    • code integer

      Error code

    • parameters array[object]

      Error parameters item

      Hide parameters attributes Show parameters attributes object

      Error parameters item

    • trace string

      Stack trace

  • Unexpected error

    Hide response attributes Show response attributes object
    • message string Required

      Error message

    • errors array[object]

      Error details

      Hide errors attributes Show errors attributes object

      Error details

      • message string

        Error message

      • parameters array[object]

        Error parameters item

        Hide parameters attributes Show parameters attributes object

        Error parameters item

    • code integer

      Error code

    • parameters array[object]

      Error parameters item

      Hide parameters attributes Show parameters attributes object

      Error parameters item

    • trace string

      Stack trace

POST /V1/stock-hub/quotes/request
curl \
 -X POST https://magento2.winkelstraat.mac/rest/all/V1/stock-hub/quotes/request \
 -d '{"items":[{"qty":42,"sku":"string"}],"billingAddress":{"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"},"shippingAddress":{"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"}}'
Request examples
{
  "items": [
    {
      "qty": 42,
      "sku": "string"
    }
  ],
  "billingAddress": {
    "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"
  },
  "shippingAddress": {
    "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"
  }
}
Response examples (200)
42
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 (default)
{
  "message": "string",
  "errors": [
    {
      "message": "string",
      "parameters": [
        {
          "resources": "string",
          "fieldName": "string",
          "fieldValue": "string"
        }
      ]
    }
  ],
  "code": 42,
  "parameters": [
    {
      "resources": "string",
      "fieldName": "string",
      "fieldValue": "string"
    }
  ],
  "trace": "string"
}