setConnectContractorCreditLimit
The method allows you to set new trade credit limit for chosen contractor
Input parameters
Output data:
A sample request in PHP:
| contractor_id | int | Contractor ID |
| new_limit | float | New limit value |
| message | string | Message shown in trade credit history |
Output data
The method returns the data in JSON format.
| status | varchar(30) | SUCCESS - request executed correctly ERROR - an error occurred during an API request. Error details will be described in 2 additional returned fields: error_message and error_code |
| new_limit_set | float | New trade credit limit value |
Sample
Input data:Output data:
A sample request in PHP: