Create new journal accounts for the Business. This will not replace any existing journal accounts.

Request

POST https://api.yourpayroll.com.au/api/v2/business/{businessId}/accounts/bulk

Path parameters

Parameter name Value Description Additional
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

JournalAccountBulkCreateModel