Performs persist operations for a specified invoice comment.
application/json
POST
/V1/invoices/comments
cURL (application/json)
curl \
--request POST 'https://magento2.winkelstraat.mac/rest/all/V1/invoices/comments' \
--header "Content-Type: application/json" \
--data '{"entity":{"is_customer_notified":42,"parent_id":42,"extension_attributes":{},"comment":"string","is_visible_on_front":42,"created_at":"string","entity_id":42}}'
curl \
--request POST 'https://magento2.winkelstraat.mac/rest/all/V1/invoices/comments' \
--header "Content-Type: application/xml"
Request examples
{
"entity": {
"is_customer_notified": 42,
"parent_id": 42,
"extension_attributes": {},
"comment": "string",
"is_visible_on_front": 42,
"created_at": "string",
"entity_id": 42
}
}
Request examples
<?xml version="1.0" encoding="UTF-8"?>
<root>
<entity>
<is-customer-notified type="integer">42</is-customer-notified>
<parent-id type="integer">42</parent-id>
<extension-attributes>
</extension-attributes>
<comment>string</comment>
<is-visible-on-front type="integer">42</is-visible-on-front>
<created-at>string</created-at>
<entity-id type="integer">42</entity-id>
</entity>
</root>
Response examples (200)
{
"is_customer_notified": 42,
"parent_id": 42,
"extension_attributes": {},
"comment": "string",
"is_visible_on_front": 42,
"created_at": "string",
"entity_id": 42
}
Response examples (200)
<?xml version="1.0" encoding="UTF-8"?>
<root>
<is-customer-notified type="integer">42</is-customer-notified>
<parent-id type="integer">42</parent-id>
<extension-attributes>
</extension-attributes>
<comment>string</comment>
<is-visible-on-front type="integer">42</is-visible-on-front>
<created-at>string</created-at>
<entity-id type="integer">42</entity-id>
</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 (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>