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.
application/json
POST
/V1/stock-hub/quotes/request
cURL (application/json)
curl \
--request POST 'https://magento2.winkelstraat.mac/rest/all/V1/stock-hub/quotes/request' \
--header "Content-Type: application/json" \
--data '{"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"}}'
curl \
--request POST 'https://magento2.winkelstraat.mac/rest/all/V1/stock-hub/quotes/request' \
--header "Content-Type: application/xml"
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"
}
}
Request examples
<?xml version="1.0" encoding="UTF-8"?>
<root>
<items type="array">
<item>
<qty type="integer">42</qty>
<sku>string</sku>
</item>
</items>
<billingAddress>
<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>
</billingAddress>
<shippingAddress>
<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>
</shippingAddress>
<payment>
<method>string</method>
<po-number>string</po-number>
</payment>
</root>
Response examples (200)
42
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 (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>