Mark order items deficient (not in stock), by providing a shipment increment id and a list of SKU with quantities deficient. A shipment token is required to authorize the request.
application/json
POST
/V2/winkelstraat/creditmemo_api/shipment/{incrementId}/deficiency
cURL (application/json)
curl \
--request POST 'https://m2.winkelstraat.nl/rest/all/V2/winkelstraat/creditmemo_api/shipment/{incrementId}/deficiency' \
--header "Content-Type: application/json" \
--data '{"shipmentToken":"string","items":[{"sku":"string","quantity":42}]}'
curl \
--request POST 'https://m2.winkelstraat.nl/rest/all/V2/winkelstraat/creditmemo_api/shipment/{incrementId}/deficiency' \
--header "Content-Type: application/xml"
Request examples
{
"shipmentToken": "string",
"items": [
{
"sku": "string",
"quantity": 42
}
]
}
Request examples
<?xml version="1.0" encoding="UTF-8"?>
<root>
<shipmentToken>string</shipmentToken>
<items type="array">
<item>
<sku>string</sku>
<quantity type="integer">42</quantity>
</item>
</items>
</root>
Response examples (200)
[
"string"
]
Response examples (200)
<?xml version="1.0" encoding="UTF-8"?>
<root type="array">
<root>string</root>
</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>