Update an existing journal account for the Business.

Request

PUT https://apimy.yourpayroll.io/api/v2/business/{businessId}/accounts/{id}

Path parameters

Parameter name Value Description Additional
id int32 Required
businessId string Required

Request body

The request body takes a complete JournalAccountModel resource, containing the following writable properties:

{
    "accountCode": "string",
    "accountName": "string",
    "accountType": "string",
    "externalReferenceId": "string",
    "id": "int32"
}

Properties

Name Type Description
accountCode string String
accountName string String
accountType string ExternalAccountType

Possible values are:

  • Asset
  • Expense
  • Liability
  • Equity
  • Income
  • Unknown
  • NotAllowed
  • CostOfGoodsSold
  • AssetAndLiability
  • CapitalsAndReserves
  • Sales
  • Purchases
  • Overheads
externalReferenceId string String
id int32 Int32

Response

The following HTTP status codes may be returned, optionally with a response resource.

Status code Description Resource
200 OK

OK

JournalAccountModel