# API: set Client Automation Settings

# setClientAutomationSettings

Set Client Automation Settings. Either value or default is required. Supported settings to change:

  • DefaultPaymentModule - set default payment gateway to module ID for future and existing services
  • CreditAutoApply - set to on to auto-apply client credit, off to disable,
  • GenerateSeparateInvoices - control invoice merge settings. Set to off to NOT merge invoices, due to merge those with same due dates, or on to merge all issued on same day

# Required parameters

Parameter Description
id Client Id
setting Name of setting to change.

# Optional parameters

Parameter Description
value New value to set
default Set to 1 and do not send value, this will reset setting to its default (system) value

# Request

GET /admin/api.php?api_id=API_ID&api_key=API_KEY&call=setClientAutomationSettings&id=ID&setting=SETTING

# PHP Samples

# Response

{
    "success": true,
    "call": "setClientAutomationSettings",
    "server_time": 1718267559,
    "info": [
        "The specified setting has been changed"
    ]
}
Last Updated: 10/7/2024, 2:36:43 PM