application/json
POST
/V1/user/rma
cURL (application/json)
curl \
--request POST 'https://magento2.winkelstraat.mac/rest/all/V1/user/rma' \
--header "Content-Type: application/json" \
--data '{"orderIncrementId":"string","items":[{"reason":42,"resolution":42,"items":[42],"exchange_size":"string","condition":42}]}'
curl \
--request POST 'https://magento2.winkelstraat.mac/rest/all/V1/user/rma' \
--header "Content-Type: application/xml"
Request examples
{
"orderIncrementId": "string",
"items": [
{
"reason": 42,
"resolution": 42,
"items": [
42
],
"exchange_size": "string",
"condition": 42
}
]
}
Request examples
<?xml version="1.0" encoding="UTF-8"?>
<root>
<orderIncrementId>string</orderIncrementId>
<items type="array">
<item>
<reason type="integer">42</reason>
<resolution type="integer">42</resolution>
<items type="array">
<item type="integer">42</item>
</items>
<exchange-size>string</exchange-size>
<condition type="integer">42</condition>
</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 (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>