Skip to content

2.1.7 - REST POST invoice comment - error #10117

@manhao-chen

Description

@manhao-chen

using CE 2.1.7 demo data

trying to add comment via the REST API
POST : http://[domain]/magento-217/rest/V1/invoices/comments

BODY:
{
"parent_id": 3,
"is_customer_notified": 0,
"comment": "test comment 10456",
"is_visible_on_front": 0,
"entity_id": 3,
"invoice_id": 3,
"entity": "invoice"
}

get a response
{
"message": "Cannot save comment:\n%1",
"parameters": ["Parent Invoice Id is a required field\nComment is a required field"]
}

any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions