Update a customer's account status

Updates the account status for a customer. Accounts can be activated/deactivated.

Request
query Parameters
customerId
required
integer <int32>

Customer internal id of the customer who's account status should be changed.

isActive
required
boolean

True if the account should be activated, false otherwise.

updatedBy
required
integer <int32>

Account internal id of current user. Pass 1 for the default account.

cultureCode
string

Specifies in which language to display culture specific information. If none is supplied, value is resolved from Application.

includeCompanies
string

Include full company data, if any, with the customer. Otherwise only primary company, if any, is included. Default is true.

Responses
200

Success

500

Internal Server Error

post/CustomerService.svc/rest/UpdateAccountStatus
Response samples
{
  • "Id": 0,
  • "Key": "string",
  • "Code": "string",
  • "Email": "string",
  • "SSN": "string",
  • "FirstName": "string",
  • "LastName": "string",
  • "Phone": "string",
  • "CellPhone": "string",
  • "ReferId": 0,
  • "ReferUrl": "string",
  • "Account": {
    },
  • "Companies": [
    ],
  • "DeliveryAddresses": [
    ],
  • "InvoiceAddress": {
    },
  • "Flags": [
    ],
  • "UseInvoiceAddressAsDeliveryAddress": true,
  • "Info": [
    ],
  • "PricelistIds": [
    ],
  • "CrmId": "string",
  • "IsActive": true,
  • "Created": "2019-08-24T14:15:22Z",
  • "Updated": "2019-08-24T14:15:22Z"
}