Create online refund for order
application/json
POST
/V1/winkelstraat/order/{incrementId}/refund
cURL (application/json)
curl \
--request POST 'https://magento2.winkelstraat.mac/rest/all/V1/winkelstraat/order/{incrementId}/refund' \
--header "Content-Type: application/json" \
--data '{"items":[{"sku":"string","status":"string","quantity":42}],"notify":true,"appendComment":true,"comment":{"extension_attributes":{},"comment":"string","is_visible_on_front":42}}'
curl \
--request POST 'https://magento2.winkelstraat.mac/rest/all/V1/winkelstraat/order/{incrementId}/refund' \
--header "Content-Type: application/xml"
Request examples
{
"items": [
{
"sku": "string",
"status": "string",
"quantity": 42
}
],
"notify": true,
"appendComment": true,
"comment": {
"extension_attributes": {},
"comment": "string",
"is_visible_on_front": 42
}
}
Request examples
<?xml version="1.0" encoding="UTF-8"?>
<root>
<items type="array">
<item>
<sku>string</sku>
<status>string</status>
<quantity type="integer">42</quantity>
</item>
</items>
<notify type="boolean">true</notify>
<appendComment type="boolean">true</appendComment>
<comment>
<extension-attributes>
</extension-attributes>
<comment>string</comment>
<is-visible-on-front type="integer">42</is-visible-on-front>
</comment>
</root>
Response examples (200)
[
"string"
]
Response examples (200)
<?xml version="1.0" encoding="UTF-8"?>
<root type="array">
<root>string</root>
</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>