How to update the Status in a custom module?

How to update the Status in a custom module?

Hi, I have a custom module "cm_payment_registry" in Billing, I am trying to change the status which is "Draft" with:

  1. array = {"custom_status":"Approved"};
  2. zoho.billing.update("cm_payment_registry",organization.get("organization_id"), XXXXXXXXXXXXXX, array,"connectionname");
But I get:

Log Messages

{"code":14805,"message":"Invalid module field: custom_status;"}


How can I change the status?

Thanks