setAccountCheckCredit

Request Method: PUT

Description: Account check_credit status

URL: https://api.iovox.com:444/Users?v=3&method=setAccountCheckCredit

The following parameters can be sent in the querystring

ParameterDescriptionDefault ValueData TypeMandatory
vAPI version to use INTEGERYES

Payload

The following XML payload must be sent with an setAccountCheckCredit request:

<?xml version="1.0" encoding="utf-8"?>
<request>
    <sub_account_name></sub_account_name>
    <check_credit></check_credit>
</request>

Payload Description

Node NameDescriptionDefault ValueData TypeMandatory
sub_account_name
the subaccount name STRINGYES
check_credit
check credit status to set STRINGYES

Result

Error Result

HTTP CodeError StringResolution
400API Version EmptyAdd a value for the v parameter in the query string
400API Version InvalidCorrect v parameter
400Request Method must be PUT. x attemptedSwitch request method x to PUT
400XML EmptyAdd xml to the request body
400XML parse error. x at line y, column zCorrect XML at point x on line y, column z
400Sub Account Name must be setsub_account_name is empty, it must be set
400Check Credit must be set to TRUE or FALSEcheck_credit is not set or set to a not valid value. It should be TRUE or FALSE
400The provided subAccountName is not validThe sub account does not exists beneath the main account
400The account must have active subscriptions to set credit check. Create a subscription for this account first.The sub account exists but does not have a subscription
500Internal Server ErrorRetry later

Success Result

HTTP/1.1 204 No Content