Create online refund for order
Create online refund for order
Body
-
items array[object]
-
notify boolean
-
appendComment boolean
-
comment object
Interface CreditmemoCommentCreationInterface
POST /V1/winkelstraat/order/{incrementId}/refund
curl \
-X POST https://magento2.winkelstraat.mac/rest/all/V1/winkelstraat/order/{incrementId}/refund \
-d '{"items":[{"sku":"string","status":"string","quantity":42}],"notify":true,"appendComment":true,"comment":{"extension_attributes":{},"comment":"string","is_visible_on_front":42}}'
Request examples
{
"items": [
{
"sku": "string",
"status": "string",
"quantity": 42
}
],
"notify": true,
"appendComment": true,
"comment": {
"extension_attributes": {},
"comment": "string",
"is_visible_on_front": 42
}
}
Response examples (200)
[
"string"
]
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 (default)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}