Skip to main content
POST
/
v3
/
{id}
/
update
/
{propertyToUpdate}
{
  "bodyTemplate": "string",
  "dummy": "string"
}
{
  "description": "<string>",
  "id": "<string>"
}
{
  "bodyTemplate": "string",
  "dummy": "string"
}

Path Parameters

id
string<biginteger>
required

The accountId of which account you want to update

propertyToUpdate
enum<string>
required

What property you want to update

  • DELETE_ADDRESS - Deletes address.
  • WRITE_OFF - Write-off uncollectible debt for given account id and book it as a loss. Only applicable for CREDIT accounts.
  • IMMEDIATE_ACCOUNT_CLOSE Immediately closes account. For the change to be effective, account to be closed must have zero balance. Also usage of this feature must be agreed to be enabled with Enfuce before it can be taken into use.
Available options:
DELETE_ADDRESS,
WRITE_OFF,
IMMEDIATE_ACCOUNT_CLOSE

Query Parameters

auditUser
string
required

The audit user to log the request

Body

application/json

Select the bodyTemplate of the propertyToUpdate to view possible properties needed in the request body of the request.

  • DELETE_ADDRESS
  • WRITE_OFF

Should set the value of the property you are updating, leave rest empty

bodyTemplate
string

Request body template given based on selected property.

dummy
string

Dummy value not used

Response

Successful update of account

description
string

Short description of the result of the action

id
string

Will contain the ID of the resource that has been created or updated

I