cancel
Showing results for 
Search instead for 
Did you mean: 

Triggering RMA Confirmation Notification When Creating Return via API

Triggering RMA Confirmation Notification When Creating Return via API

When creating a return via API, the customer is not receiving notifications like they do when an RMA is created via the user interface. I've tried changing "customer notified" from false to true and also tried passing in "notify" in the JSON. I can't get it to work. Can anyone please help? Payload is below.

 

{
    "rmaDataObject": {
        "increment_id": "36",
        "order_id": 21,
        "order_increment_id": "M000000021",
        "store_id": 1,
        "customer_id": 0,
        "date_requested": "2021-08-25 11:23:18",
        "customer_custom_email": "bob@bob-test.com",
        "items": [
            {
                "order_item_id": 27,
                "qty_requested": 1,
                "qty_authorized": null,
                "qty_approved": null,
                "qty_returned": null,
                "reason": "12677",
                "condition": "7",
                "resolution": "5",
                "status": "pending"
            }
        ],
        "status": "pending",
        "comments": [
            {
                "comment": "asdfasdfasdfasd",
                "created_at": "2021-08-25 11:23:18",
                "customer_notified": true,
                "visible_on_front": false,
                "status": "pending",
                "admin": true
            }
        ]
    }
}