createReturnMerchandiseAuthorisationNote function

Future<ApiResponse<Object?>> createReturnMerchandiseAuthorisationNote(
  1. ExsitedClient client,
  2. Object rmaId,
  3. Object payload, {
  4. bool? raiseOnError,
  5. String? responseFormat,
})

POST /api/{api_version}/return_merchandise_authorisations/{rma_id}/notes

Add RMA note, the rma_ id and a JSON {"note": {"note": "..."}}, not a form; no attachment.

No typed view. Read response.map.

Implementation

Future<ApiResponse<Object?>> createReturnMerchandiseAuthorisationNote(
  ExsitedClient client,
  Object rmaId,
  Object payload, {
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendPostRequest(
        ReturnMerchandiseAuthorisationsUrls.returnMerchandiseAuthorisationNotes,
        pathParams: {'rma_id': rmaId},
        jsonBody: payload,
        raiseOnError: raiseOnError,
        responseFormat: responseFormat);