application/json
DELETE
/V1/returns/{id}
cURL (application/json)
curl \
--request DELETE 'https://magento2.winkelstraat.mac/rest/all/V1/returns/{id}' \
--header "Content-Type: application/json" \
--data '{"rmaDataObject":{"increment_id":"string","entity_id":42,"order_id":42,"order_increment_id":"string","store_id":42,"customer_id":42,"date_requested":"string","customer_custom_email":"string","items":[{"entity_id":42,"rma_entity_id":42,"order_item_id":42,"qty_requested":42,"qty_authorized":42,"qty_approved":42,"qty_returned":42,"reason":"string","condition":"string","resolution":"string","status":"string","extension_attributes":{"merchant_resolution_code":"string","reason_code":"string","resolution_code":"string","product_color":"string","product_size":"string","product_merchant_code":"string","product_merchant_name":"string","product_merchant_product_reference":"string","product_manufacturer_code":"string","product_manufacturer_name":"string","exchange_size":"string"}}],"status":"string","comments":[{"comment":"string","rma_entity_id":42,"created_at":"string","entity_id":42,"customer_notified":true,"visible_on_front":true,"status":"string","admin":true,"extension_attributes":{},"custom_attributes":[{"attribute_code":"string","value":"string"}]}],"tracks":[{"entity_id":42,"rma_entity_id":42,"track_number":"string","carrier_title":"string","carrier_code":"string","extension_attributes":{"status":"string","delivery_time":"string","external_updated_at":"string","label_filename":"string"}}],"extension_attributes":{"rma_return_address":{"rma_id":42,"name":"string","street":"string","city":"string","country_id":"string","postcode":"string","telephone":"string","email":"string"},"merchant_code":"string","date_received":"string","customer_firstname":"string","customer_lastname":"string","date_processed":"string","shipping_address_customer_firstname":"string","shipping_address_customer_lastname":"string"},"custom_attributes":[{"attribute_code":"string","value":"string"}]}}'
curl \
--request DELETE 'https://magento2.winkelstraat.mac/rest/all/V1/returns/{id}' \
--header "Content-Type: application/xml"
Request examples
{
"rmaDataObject": {
"increment_id": "string",
"entity_id": 42,
"order_id": 42,
"order_increment_id": "string",
"store_id": 42,
"customer_id": 42,
"date_requested": "string",
"customer_custom_email": "string",
"items": [
{
"entity_id": 42,
"rma_entity_id": 42,
"order_item_id": 42,
"qty_requested": 42,
"qty_authorized": 42,
"qty_approved": 42,
"qty_returned": 42,
"reason": "string",
"condition": "string",
"resolution": "string",
"status": "string",
"extension_attributes": {
"merchant_resolution_code": "string",
"reason_code": "string",
"resolution_code": "string",
"product_color": "string",
"product_size": "string",
"product_merchant_code": "string",
"product_merchant_name": "string",
"product_merchant_product_reference": "string",
"product_manufacturer_code": "string",
"product_manufacturer_name": "string",
"exchange_size": "string"
}
}
],
"status": "string",
"comments": [
{
"comment": "string",
"rma_entity_id": 42,
"created_at": "string",
"entity_id": 42,
"customer_notified": true,
"visible_on_front": true,
"status": "string",
"admin": true,
"extension_attributes": {},
"custom_attributes": [
{
"attribute_code": "string",
"value": "string"
}
]
}
],
"tracks": [
{
"entity_id": 42,
"rma_entity_id": 42,
"track_number": "string",
"carrier_title": "string",
"carrier_code": "string",
"extension_attributes": {
"status": "string",
"delivery_time": "string",
"external_updated_at": "string",
"label_filename": "string"
}
}
],
"extension_attributes": {
"rma_return_address": {
"rma_id": 42,
"name": "string",
"street": "string",
"city": "string",
"country_id": "string",
"postcode": "string",
"telephone": "string",
"email": "string"
},
"merchant_code": "string",
"date_received": "string",
"customer_firstname": "string",
"customer_lastname": "string",
"date_processed": "string",
"shipping_address_customer_firstname": "string",
"shipping_address_customer_lastname": "string"
},
"custom_attributes": [
{
"attribute_code": "string",
"value": "string"
}
]
}
}
Request examples
<?xml version="1.0" encoding="UTF-8"?>
<root>
<rmaDataObject>
<increment-id>string</increment-id>
<entity-id type="integer">42</entity-id>
<order-id type="integer">42</order-id>
<order-increment-id>string</order-increment-id>
<store-id type="integer">42</store-id>
<customer-id type="integer">42</customer-id>
<date-requested>string</date-requested>
<customer-custom-email>string</customer-custom-email>
<items type="array">
<item>
<entity-id type="integer">42</entity-id>
<rma-entity-id type="integer">42</rma-entity-id>
<order-item-id type="integer">42</order-item-id>
<qty-requested type="integer">42</qty-requested>
<qty-authorized type="integer">42</qty-authorized>
<qty-approved type="integer">42</qty-approved>
<qty-returned type="integer">42</qty-returned>
<reason>string</reason>
<condition>string</condition>
<resolution>string</resolution>
<status>string</status>
<extension-attributes>
<merchant-resolution-code>string</merchant-resolution-code>
<reason-code>string</reason-code>
<resolution-code>string</resolution-code>
<product-color>string</product-color>
<product-size>string</product-size>
<product-merchant-code>string</product-merchant-code>
<product-merchant-name>string</product-merchant-name>
<product-merchant-product-reference>string</product-merchant-product-reference>
<product-manufacturer-code>string</product-manufacturer-code>
<product-manufacturer-name>string</product-manufacturer-name>
<exchange-size>string</exchange-size>
</extension-attributes>
</item>
</items>
<status>string</status>
<comments type="array">
<comment>
<comment>string</comment>
<rma-entity-id type="integer">42</rma-entity-id>
<created-at>string</created-at>
<entity-id type="integer">42</entity-id>
<customer-notified type="boolean">true</customer-notified>
<visible-on-front type="boolean">true</visible-on-front>
<status>string</status>
<admin type="boolean">true</admin>
<extension-attributes>
</extension-attributes>
<custom-attributes type="array">
<custom-attribute>
<attribute-code>string</attribute-code>
<value>string</value>
</custom-attribute>
</custom-attributes>
</comment>
</comments>
<tracks type="array">
<track>
<entity-id type="integer">42</entity-id>
<rma-entity-id type="integer">42</rma-entity-id>
<track-number>string</track-number>
<carrier-title>string</carrier-title>
<carrier-code>string</carrier-code>
<extension-attributes>
<status>string</status>
<delivery-time>string</delivery-time>
<external-updated-at>string</external-updated-at>
<label-filename>string</label-filename>
</extension-attributes>
</track>
</tracks>
<extension-attributes>
<rma-return-address>
<rma-id type="integer">42</rma-id>
<name>string</name>
<street>string</street>
<city>string</city>
<country-id>string</country-id>
<postcode>string</postcode>
<telephone>string</telephone>
<email>string</email>
</rma-return-address>
<merchant-code>string</merchant-code>
<date-received>string</date-received>
<customer-firstname>string</customer-firstname>
<customer-lastname>string</customer-lastname>
<date-processed>string</date-processed>
<shipping-address-customer-firstname>string</shipping-address-customer-firstname>
<shipping-address-customer-lastname>string</shipping-address-customer-lastname>
</extension-attributes>
<custom-attributes type="array">
<custom-attribute>
<attribute-code>string</attribute-code>
<value>string</value>
</custom-attribute>
</custom-attributes>
</rmaDataObject>
</root>
Response examples (200)
true
Response examples (200)
true
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 (400)
{
"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 (400)
<?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>