Skip to content

API Error Messages & Warnings

Understanding the errors and warnings for the MYOB Business API?

Updated

The following is a list of validation errors and warnings to help developers better understand the business logic behind AccountRight, Essentials and MYOB Business.

There are a list of generic error messages and codes as well as ones that are specific to individual endpoints. Particular endpoints also give you the ability to treat warnings as errors. This list will take you through each scenario and what to expect the API to return when making your calls.

We have broken these down into each collection group of endpoints

Sale

  • Invoice/Item
  • Invoice/Service
  • Invoice/Professional
  • Invoice/TimeBilling
  • Invoice/Miscellaneous
  • CustomerPayment
  • CustomerPayment/RecordWithDiscountsAndFees
  • Order/Item
  • Order/Service
  • Order/Professional
  • Order/TimeBilling
  • Order/Miscellaneous
  • CreditSettlement
  • CreditRefund

Purchase

  • Bill/Item
  • Bill/Service
  • Bill/Professional
  • Bill/Miscellaneous
  • SupplierPayment
  • Order/Item
  • Order/Service
  • Order/Professional
  • Order/Miscellaneous
  • DebitSettlement
  • DebitRefund

Inventory

  • Item
  • ItemPriceMatrix
  • Adjustment

Banking

  • SpendMoneyTxn
  • ReceiveMoneyTxn
  • TransferMoneyTxn

Payroll

  • Timesheet

TimeBilling

  • Activity

GeneralLedger

  • GeneralJournal

Firstly lets start with a list of generic error messages and codes that are standard across all AccountRight endpoints.

  • HTTP Method: GET, POST, PUT, DELETE
  • Scenario: The API call has taken longer that time out limit.
  • HTTP Status Code: 504 Timeout

Response · Status 504

json
{
  "Name": "GatewayTimeout",
  "Message": "Connection to the API has timed out",
  "ErrorCode": "null",
  "Severity": "Error",
  "LearnMore": "[Documentation URI]"
}
  • HTTP Method: GET, POST, PUT, DELETE
  • Scenario: The number of API calls made per day has exceeded the limit.
  • HTTP Status Code: 403 Forbidden

Response · Status 403

json
{
  "Name": "RateLimitError",
  "Message": "API key has exceeded the daily rate limit",
  "AdditionalDetails": "Header: x-myobapi-key",
  "ErrorCode": "null",
  "Severity": "Error",
  "LearnMore": "[Documentation URI]"
}
  • HTTP Method: GET, POST, PUT, DELETE
  • Scenario: The number of API calls made per second has exceeded the limit.
  • HTTP Status Code: 403 Forbidden

Response · Status 403

json
{
  "Name": "RateLimitError",
  "Message": "API key has exceeded the per-second rate limit",
  "AdditionalDetails": "Header: x-myobapi-key",
  "ErrorCode": "null",
  "Severity": "Error",
  "LearnMore": "[Documentation URI]"
}
  • HTTP Method: GET, POST, PUT, DELETE
  • Scenario: The API key is either inactive or has not been provided in the x-myobapi-key header.
  • HTTP Status Code: 403 Forbidden

Response · Status 403

json
{
  "Name": "DeveloperInactive",
  "Message": "API key is missing or inactive",
  "AdditionalDetails": "Header: x-myobapi-key",
  "ErrorCode": "null",
  "Severity": "Error",
  "LearnMore": "[Documentation URI]"
}
  • HTTP Method: POST, PUT
  • Scenario: Error converting value to type, ie: passing 'abcdef' to field of type boolean, passing 'xxxxx' as system GUID
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "SerializationError",
  "Message": "Error converting value [Error message returned from serializer]",
  "AdditionalDetails": "[Path]",
  "ErrorCode": "50",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Inserting and updating entities without including all required fields
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "Required",
  "Message": "[Field] is required",
  "AdditionalDetails": "[Path]",
  "ErrorCode": "100",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Resource not found when passing a unique identifier for things like contact, account, taxcode, item, job
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "NotFound",
  "Message": "[Error message returned from serializer]",
  "AdditionalDetails": "[Path]",
  "ErrorCode": "150",
  "Severity": "Error"
}
  • HTTP Method: DELETE
  • Scenario: Deleting transactions where Company/Preferences element TransactionsCannotBeChangedMustBeReversed = true
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "TransactionsCannotBeDeleted",
  "Message": "Transactions cannot be deleted and must be reversed",
  "AdditionalDetails": "[Path]",
  "ErrorCode": "25003",
  "Severity": "Error"
}
  • HTTP Method: GET, POST, PUT, DELETE
  • Scenario: When a user tries to access a resource for which they do not have access to. Double check the x-myobapi-cftoken header. See best practice guide for Company File Authentication.
  • HTTP Status Code: 403 Forbidden

Response · Status 403

json
{
  "Message": "You are not authorised to access this resource",
  "ErrorCode": "AccessDenied"
}
  • HTTP Method: POST, PUT
  • Scenario: Dated transactions prior to beginning of financial year
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "DatePriorToBeginningOfFinancialYear",
  "Message": "Date cannot be prior to beginning of financial year",
  "AdditionalDetails": "Date",
  "ErrorCode": "25008",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: Occurs when the RowVerison is out of date when trying to make a PUT request.
  • HTTP Status Code: 409 Conflict

Response · Status 409

json
{
  "Name": "IncorrectRowVersionSupplied",
  "Message": "An Update operation requires the latest RowVersion for each of the existing entities being modified",
  "AdditionalDetails": "null",
  "ErrorCode": "111",
  "Severity": "Error",
  "LearnMore": "[Documentation URI]"
}

/Sale/Invoice/Item

  • HTTP Method: POST, PUT
  • Scenario: Passing a negative UnitPrice
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "UnitPriceNotValid",
  "Message": "UnitPrice must be a positive number",
  "AdditionalDetails": "Lines[n].UnitPrice",
  "ErrorCode": "12101",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: ShipQuantity not supplied, UnitPrice is ZERO, Total is NON-ZERO
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "UnitPriceNotValid",
  "Message": "UnitPrice must be a positive number",
  "AdditionalDetails": "Lines[n].UnitPrice",
  "ErrorCode": "12101",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Item sale results in negative inventory
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "InsufficientItemQuantity",
  "Message": "Insufficient item quantity to complete transaction",
  "AdditionalDetails": "Lines",
  "ErrorCode": "25002",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: ShipQuantity is ZERO, UnitPrice NOT supplied, Total is NON-ZERO
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "Required",
  "Message": "ShipQuantity is required",
  "AdditionalDetails": "Lines[n].ShipQuantity",
  "ErrorCode": "100",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: ShipQuantity not supplied, UnitPrice not supplied, Total is NON-ZERO
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "Required",
  "Message": "ShipQuantity is required",
  "AdditionalDetails": "Lines[n].ShipQuantity",
  "ErrorCode": "100",
  "Severity": "Error"
}
  • HTTP Method: POST
  • Scenario: Cannot use Order with Status "ConvertedToInvoice" when converting order to invoice
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "OrderConvertedToInvoice",
  "Message": "Order should be in open status to convert to an invoice",
  "AdditionalDetails": "Order.UID",
  "ErrorCode": "37001",
  "Severity": "Error"
}
  • HTTP Method: POST
  • Scenario: Layout type mismatch on Order conversion
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "LayoutTypeMismatch",
  "Message": "Order and Invoice should be of the same layout type",
  "AdditionalDetails": "Order.UID",
  "ErrorCode": "37004",
  "Severity": "Error"
}
  • HTTP Method: DELETE
  • Scenario: Invoice with payments applied
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "InvoicePaid",
  "Message": "Cannot delete Invoice with payment(s) applied",
  "AdditionalDetails": "",
  "ErrorCode": "10001",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: Cannot update Order.UID on existing Invoice
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "CannotUpdateOrderOnExistingInvoice",
  "Message": "Cannot update order on existing invoice",
  "AdditionalDetails": "Order.UID",
  "ErrorCode": "37006",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Passing Total with more than 2 decimal places
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "ValidationError",
  "Message": "CommonRules_DecimalPrecision",
  "AdditionalDetails": "Amount",
  "ErrorCode": "1024",
  "Severity": "Error"
}

Response

json
{
  "Name": "ValidationError",
  "Message": "SaleEventLine_ItemTotalAmountUnBalanced",
  "AdditionalDetails": "Amount",
  "ErrorCode": "4339",
  "Severity": "Error"
}

/Sale/Invoice/Service

  • HTTP Method: POST, PUT
  • Scenario: Missing required fields
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "Required",
  "Message": "[Field] is required",
  "AdditionalDetails": "[Path]",
  "ErrorCode": "100",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Passing Total with more than 2 decimal places
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "ValidationError",
  "Message": "CommonRules_DecimalPrecision",
  "AdditionalDetails": "Amount",
  "ErrorCode": "1024",
  "Severity": "Error"
}
  • HTTP Method: POST
  • Scenario: Customer mismatch between Order and Invoice conversion
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "CustomerMismatch",
  "Message": "Customer on source invoice must match customer on Order/Invoice",
  "AdditionalDetails": "Order.UID",
  "ErrorCode": "11007",
  "Severity": "Error"
}
  • HTTP Method: POST
  • Scenario: Cannot use Order with Status "ConvertedToInvoice" when converting order to invoice
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "OrderConvertedToInvoice",
  "Message": "Order should be in open status to convert to an invoice",
  "AdditionalDetails": "Order.UID",
  "ErrorCode": "37001",
  "Severity": "Error"
}
  • HTTP Method: POST
  • Scenario: Layout type mismatch on order conversion
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "LayoutTypeMismatch",
  "Message": "Order and Invoice should be of the same layout type",
  "AdditionalDetails": "Order.UID",
  "ErrorCode": "37004",
  "Severity": "Error"
}
  • HTTP Method: DELETE
  • Scenario: Invoice with payments applied
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "InvoicePaid",
  "Message": "Cannot delete Invoice with payment(s) applied",
  "AdditionalDetails": "",
  "ErrorCode": "10001",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: Cannot update Order.UID on existing invoice
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "CannotUpdateOrderOnExistingInvoice",
  "Message": "Cannot update order on existing invoice",
  "AdditionalDetails": "Order.UID",
  "ErrorCode": "37006",
  "Severity": "Error"
}

/Sale/Invoice/Professional/

  • HTTP Method: POST, PUT
  • Scenario: Missing required fields
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "Required",
  "Message": "[Field] is required",
  "AdditionalDetails": "[Path]",
  "ErrorCode": "100",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Passing Total with more than 2 decimal places
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "ValidationError",
  "Message": "CommonRules_DecimalPrecision",
  "AdditionalDetails": "Amount",
  "ErrorCode": "1024",
  "Severity": "Error"
}
  • HTTP Method: POST
  • Scenario: Customer mismatch between Order and Invoice conversion
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "CustomerMismatch",
  "Message": "Customer on source invoice must match customer on Order/Invoice",
  "AdditionalDetails": "Order.UID",
  "ErrorCode": "11007",
  "Severity": "Error"
}
  • HTTP Method: POST
  • Scenario: Cannot use Order with Status "ConvertedToInvoice" when converting order to invoice
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "OrderConvertedToInvoice",
  "Message": "Order should be in open status to convert to an invoice",
  "AdditionalDetails": "Order.UID",
  "ErrorCode": "37001",
  "Severity": "Error"
}
  • HTTP Method: POST
  • Scenario: Layout type mismatch on order conversion
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "LayoutTypeMismatch",
  "Message": "Order and Invoice should be of the same layout type",
  "AdditionalDetails": "Order.UID",
  "ErrorCode": "37004",
  "Severity": "Error"
}
  • HTTP Method: DELETE
  • Scenario: Invoice with payments applied
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "InvoicePaid",
  "Message": "Cannot delete Invoice with payment(s) applied",
  "AdditionalDetails": "",
  "ErrorCode": "10001",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: Cannot update Order.UID on existing invoice
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "CannotUpdateOrderOnExistingInvoice",
  "Message": "Cannot update order on existing invoice",
  "AdditionalDetails": "Order.UID",
  "ErrorCode": "37006",
  "Severity": "Error"
}

/Sale/Invoice/TimeBilling

  • HTTP Method: POST, PUT
  • Scenario: Required fields not supplied
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "Required",
  "Message": "[Field] is required",
  "AdditionalDetails": "[Path]",
  "ErrorCode": "100",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Date prior to beginning of financial year
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "DatePriorToBeginningOfFinancialYear",
  "Message": "Date cannot be prior to beginning of financial year",
  "AdditionalDetails": "Date",
  "ErrorCode": "25008",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Not enough stock on hand to complete invoice
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "InsufficientItemQuantity",
  "Message": "Insufficient item quantity to complete transaction",
  "AdditionalDetails": "Lines",
  "ErrorCode": "25002",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Creating or updating line of invoice with both Item & Activity
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "CannotUseItemAndActivityOnSameLine",
  "Message": "Cannot use both Item and Activity on the same line.",
  "AdditionalDetails": "Lines[x].Activity",
  "ErrorCode": "10002",
  "Severity": "Error"
}
  • HTTP Method: POST
  • Scenario: Posting Zero or Negative amount
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "ZeroOrNegativeAmount",
  "Message": "Amount must be a non-zero positive number",
  "AdditionalDetails": "Amount",
  "ErrorCode": "101",
  "Severity": "Error"
}

/Sale/Invoice/Miscellaneous/

  • HTTP Method: POST, PUT
  • Scenario: Missing required fields
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "Required",
  "Message": "[Field] is required",
  "AdditionalDetails": "[Path]",
  "ErrorCode": "100",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Passing Total with more than 2 decimal places
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "ValidationError",
  "Message": "CommonRules_DecimalPrecision",
  "AdditionalDetails": "Amount",
  "ErrorCode": "1024",
  "Severity": "Error"
}
  • HTTP Method: POST
  • Scenario: Customer mismatch between Order and Invoice conversion
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "CustomerMismatch",
  "Message": "Customer on source invoice must match customer on Order/Invoice",
  "AdditionalDetails": "Order.UID",
  "ErrorCode": "11007",
  "Severity": "Error"
}
  • HTTP Method: POST
  • Scenario: Cannot use Order with Status "ConvertedToInvoice" when converting order to invoice
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "OrderConvertedToInvoice",
  "Message": "Order should be in open status to convert to an invoice",
  "AdditionalDetails": "Order.UID",
  "ErrorCode": "37001",
  "Severity": "Error"
}
  • HTTP Method: POST
  • Scenario: Layout type mismatch on order conversion
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "LayoutTypeMismatch",
  "Message": "Order and Invoice should be of the same layout type",
  "AdditionalDetails": "Order.UID",
  "ErrorCode": "37004",
  "Severity": "Error"
}
  • HTTP Method: DELETE
  • Scenario: Invoice with payments applied
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "InvoicePaid",
  "Message": "Cannot delete Invoice with payment(s) applied",
  "AdditionalDetails": "",
  "ErrorCode": "10001",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: Cannot update Order.UID on existing invoice
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "CannotUpdateOrderOnExistingInvoice",
  "Message": "Cannot update order on existing invoice",
  "AdditionalDetails": "Order.UID",
  "ErrorCode": "37006",
  "Severity": "Error"
}

/Sale/CustomerPayment/

  • HTTP Method: POST
  • Scenario: No invoice passed in lines array.
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "Required",
  "Message": "Invoices[n] is required",
  "AdditionalDetails": "Invoices[n].UID",
  "ErrorCode": "100",
  "Severity": "Error"
}
  • HTTP Method: DELETE
  • Scenario: Delete customer payment on Order once it's converted to Invoice
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "SystemCreatedTransaction",
  "Message": "System created transaction cannot be changed or deleted",
  "AdditionalDetails": "",
  "ErrorCode": "224",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Date falling within locked period setup in company preferences
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "DateInLockedPeriod",
  "Message": "Date cannot be in locked period",
  "AdditionalDetails": "Date",
  "ErrorCode": "25009",
  "Severity": "Error"
}
  • HTTP Method: DELETE
  • Scenario: Delete system created transaction
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "PaymentOnOrderConvertedToInvoice",
  "Message": "Cannot delete payment on an order that has been converted to an invoice",
  "AdditionalDetails": "",
  "ErrorCode": "37005",
  "Severity": "Error"
}

/Sale/CustomerPayment/RecordWithDiscountsAndFees

  • HTTP Method: POST
  • Scenario: Payment with no lines
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "NoSaleLine",
  "Message": "Customer Payment must have atleast one sale line",
  "AdditionalDetails": "Lines",
  "ErrorCode": "13003",
  "Severity": "Error"
}
  • HTTP Method: POST
  • Scenario: Finance charge linked account not set
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "LinkedAccountNotSet",
  "Message": "Linked Account for Late Charges is not set",
  "AdditionalDetails": "FinanceCharge",
  "ErrorCode": "14004",
  "Severity": "Error"
}
  • HTTP Method: POST
  • Scenario: Discounts for early payment linked account not set
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "LinkedAccountNotSet",
  "Message": "Linked Account for Discounts is not set",
  "AdditionalDetails": "Lines",
  "ErrorCode": "14004",
  "Severity": "Error"
}
  • HTTP Method: POST
  • Scenario: Recording payment on invoice where Status: Credit
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "InvoiceStatusNotValid",
  "Message": "Invoices must be in open or closed status",
  "AdditionalDetails": "Lines",
  "ErrorCode": "15005",
  "Severity": "Error"
}
  • HTTP Method: POST
  • Scenario: Recording discount on partial payment of invoice.
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "DiscountOnPartialPaymentNotSupported",
  "Message": "Customer Payment discounts are not supported on partial payments",
  "AdditionalDetails": "Lines",
  "ErrorCode": "15006",
  "Severity": "Error"
}
  • HTTP Method: POST
  • Scenario: Account UID is NOT same as UndepositedFunds Linked Account UID
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "DepositToAccountMismatch",
  "Message": "Account does NOT match with Undeposited Funds account",
  "AdditionalDetails": "Account",
  "ErrorCode": "26000",
  "Severity": "Error"
}

/Sale/Order/Item

  • HTTP Method: POST, PUT
  • Scenario: Required fields not supplied
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "Required",
  "Message": "[Field] is required",
  "AdditionalDetails": "[Path]",
  "ErrorCode": "100",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: Incorrect RowID on line
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "NotFound",
  "Message": "RowID not found",
  "AdditionalDetails": "Lines[n].RowID",
  "ErrorCode": "150",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: Updating line Type ie: "Transaction" to "Header"
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "LineTypeCannotBeChanged",
  "Message": "The type of an existing line cannot be changed",
  "AdditionalDetails": "Lines[n].RowID",
  "ErrorCode": "223",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Date prior to beginning of financial year
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "DatePriorToBeginningOfFinancialYear",
  "Message": "Date cannot be prior to beginning of financial year",
  "AdditionalDetails": "Date",
  "ErrorCode": "25008",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Date falling within locked period setup in company preferences
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "DateInLockedPeriod",
  "Message": "Date cannot be in locked period",
  "AdditionalDetails": "Date",
  "ErrorCode": "25009",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Decimal precision error on Total field
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "InvalidValuePrecision",
  "Message": "Total must be rounded off to second decimal",
  "AdditionalDetails": "Lines[n].Total",
  "ErrorCode": "104",
  "Severity": "Error"
}

Response

json
{
  "Name": "LineTotalUnbalanced",
  "Message": "The line total is unbalanced",
  "AdditionalDetails": "Lines[n].Total",
  "ErrorCode": "37003",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: Trying to change customer on existing Order
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "CustomerCannotBeChanged",
  "Message": "Customer cannot be changed on existing Order",
  "AdditionalDetails": "Customer.UID",
  "ErrorCode": "11004",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Passing a negative UnitPrice
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "UnitPriceNotValid",
  "Message": "UnitPrice must be a positive number",
  "AdditionalDetails": "Lines[n].UnitPrice",
  "ErrorCode": "12101",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Not enough stock on hand to complete order
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "InsufficientItemQuantity",
  "Message": "Insufficient item quantity to complete transaction",
  "AdditionalDetails": "Lines",
  "ErrorCode": "25002",
  "Severity": "Error"
}
  • HTTP Method: DELETE
  • Scenario: Delete Order with payments
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "OrderPaid",
  "Message": "Cannot delete order with payment(s) applied",
  "AdditionalDetails": "UID",
  "ErrorCode": "37000",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Update or Delete an Order with Status "ConvertedToInvoice"
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "OrderConvertedToInvoice",
  "Message": "Cannot update or delete order converted to invoice",
  "AdditionalDetails": "",
  "ErrorCode": "37001",
  "Severity": "Error"
}

/Sale/Order/Service

  • HTTP Method: POST, PUT
  • Scenario: Required fields not supplied
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "Required",
  "Message": "[Field] is required",
  "AdditionalDetails": "[Path]",
  "ErrorCode": "100",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: Incorrect RowID on line
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "NotFound",
  "Message": "RowID not found",
  "AdditionalDetails": "Lines[n].RowID",
  "ErrorCode": "150",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: Updating line Type ie: "Transaction" to "Header"
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "LineTypeCannotBeChanged",
  "Message": "The type of an existing line cannot be changed",
  "AdditionalDetails": "Lines[n].RowID",
  "ErrorCode": "223",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Date prior to beginning of financial year
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "DatePriorToBeginningOfFinancialYear",
  "Message": "Date cannot be prior to beginning of financial year",
  "AdditionalDetails": "Date",
  "ErrorCode": "25008",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Date falling within locked period setup in company preferences
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "DateInLockedPeriod",
  "Message": "Date cannot be in locked period",
  "AdditionalDetails": "Date",
  "ErrorCode": "25009",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Decimal precision error on Total field
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "InvalidValuePrecision",
  "Message": "Total must be rounded off to second decimal",
  "AdditionalDetails": "Lines[n].Total",
  "ErrorCode": "104",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: Trying to change customer on existing Order
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "CustomerCannotBeChanged",
  "Message": "Customer cannot be changed on existing Order",
  "AdditionalDetails": "Customer.UID",
  "ErrorCode": "11004",
  "Severity": "Error"
}
  • HTTP Method: DELETE
  • Scenario: Delete Order with payments
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "OrderPaid",
  "Message": "Cannot delete order with payment(s) applied",
  "AdditionalDetails": "UID",
  "ErrorCode": "37000",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Update or Delete an Order with Status "ConvertedToInvoice"
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "OrderConvertedToInvoice",
  "Message": "Cannot update or delete order converted to invoice",
  "AdditionalDetails": "",
  "ErrorCode": "37001",
  "Severity": "Error"
}

/Sale/Order/Professional

  • HTTP Method: POST, PUT
  • Scenario: Required fields not supplied
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "Required",
  "Message": "[Field] is required",
  "AdditionalDetails": "[Path]",
  "ErrorCode": "100",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: Incorrect RowID on line
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "NotFound",
  "Message": "RowID not found",
  "AdditionalDetails": "Lines[n].RowID",
  "ErrorCode": "150",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: Updating line Type ie: "Transaction" to "Header"
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "LineTypeCannotBeChanged",
  "Message": "The type of an existing line cannot be changed",
  "AdditionalDetails": "Lines[n].RowID",
  "ErrorCode": "223",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Date prior to beginning of financial year
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "DatePriorToBeginningOfFinancialYear",
  "Message": "Date cannot be prior to beginning of financial year",
  "AdditionalDetails": "Date",
  "ErrorCode": "25008",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Date falling within locked period setup in company preferences
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "DateInLockedPeriod",
  "Message": "Date cannot be in locked period",
  "AdditionalDetails": "Date",
  "ErrorCode": "25009",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Decimal precision error on Total field
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "InvalidValuePrecision",
  "Message": "Total must be rounded off to second decimal",
  "AdditionalDetails": "Lines[n].Total",
  "ErrorCode": "104",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: Trying to change customer on existing Order
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "CustomerCannotBeChanged",
  "Message": "Customer cannot be changed on existing Order",
  "AdditionalDetails": "Customer.UID",
  "ErrorCode": "11004",
  "Severity": "Error"
}
  • HTTP Method: DELETE
  • Scenario: Delete Order with payments
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "OrderPaid",
  "Message": "Cannot delete order with payment(s) applied",
  "AdditionalDetails": "UID",
  "ErrorCode": "37000",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Update or Delete an Order with Status "ConvertedToInvoice"
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "OrderConvertedToInvoice",
  "Message": "Cannot update or delete order converted to invoice",
  "AdditionalDetails": "",
  "ErrorCode": "37001",
  "Severity": "Error"
}

/Sale/Order/TimeBilling

  • HTTP Method: POST, PUT
  • Scenario: Required fields not supplied
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "Required",
  "Message": "[Field] is required",
  "AdditionalDetails": "[Path]",
  "ErrorCode": "100",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Date prior to beginning of financial year
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "DatePriorToBeginningOfFinancialYear",
  "Message": "Date cannot be prior to beginning of financial year",
  "AdditionalDetails": "Date",
  "ErrorCode": "25008",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: Trying to change customer on existing Order
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "CustomerCannotBeChanged",
  "Message": "Customer cannot be changed on existing Order",
  "AdditionalDetails": "Customer.UID",
  "ErrorCode": "11004",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Not enough stock on hand to complete order
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "InsufficientItemQuantity",
  "Message": "Insufficient item quantity to complete transaction",
  "AdditionalDetails": "Lines",
  "ErrorCode": "25002",
  "Severity": "Error"
}
  • HTTP Method: DELETE
  • Scenario: Delete Order with payments
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "OrderPaid",
  "Message": "Cannot delete order with payment(s) applied",
  "AdditionalDetails": "UID",
  "ErrorCode": "37000",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Update or Delete an Order with Status "ConvertedToInvoice"
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "OrderConvertedToInvoice",
  "Message": "Cannot update or delete order converted to invoice",
  "AdditionalDetails": "",
  "ErrorCode": "37001",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Creating or updating line of order with both Item & Activity
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "CannotUseItemAndActivityOnSameLine",
  "Message": "Cannot use both Item and Activity on the same line.",
  "AdditionalDetails": "Lines[x].Activity",
  "ErrorCode": "10002",
  "Severity": "Error"
}
  • HTTP Method: POST
  • Scenario: Posting Zero or Negative amount
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "ZeroOrNegativeAmount",
  "Message": "Amount must be a non-zero positive number",
  "AdditionalDetails": "Amount",
  "ErrorCode": "101",
  "Severity": "Error"
}

/Sale/Order/Miscellaneous

  • HTTP Method: POST, PUT
  • Scenario: Required fields not supplied
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "Required",
  "Message": "[Field] is required",
  "AdditionalDetails": "[Path]",
  "ErrorCode": "100",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: Incorrect RowID on line
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "NotFound",
  "Message": "RowID not found",
  "AdditionalDetails": "Lines[n].RowID",
  "ErrorCode": "150",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: Updating line Type ie: "Transaction" to "Header"
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "LineTypeCannotBeChanged",
  "Message": "The type of an existing line cannot be changed",
  "AdditionalDetails": "Lines[n].RowID",
  "ErrorCode": "223",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Date prior to beginning of financial year
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "DatePriorToBeginningOfFinancialYear",
  "Message": "Date cannot be prior to beginning of financial year",
  "AdditionalDetails": "Date",
  "ErrorCode": "25008",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Date falling within locked period setup in company preferences
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "DateInLockedPeriod",
  "Message": "Date cannot be in locked period",
  "AdditionalDetails": "Date",
  "ErrorCode": "25009",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Decimal precision error on Total field
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "InvalidValuePrecision",
  "Message": "Total must be rounded off to second decimal",
  "AdditionalDetails": "Lines[n].Total",
  "ErrorCode": "104",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: Trying to change customer on existing Order
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "CustomerCannotBeChanged",
  "Message": "Customer cannot be changed on existing Order",
  "AdditionalDetails": "Customer.UID",
  "ErrorCode": "11004",
  "Severity": "Error"
}
  • HTTP Method: DELETE
  • Scenario: Delete Order with payments
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "OrderPaid",
  "Message": "Cannot delete order with payment(s) applied",
  "AdditionalDetails": "UID",
  "ErrorCode": "37000",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Update or Delete an Order with Status "ConvertedToInvoice"
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "OrderConvertedToInvoice",
  "Message": "Cannot update or delete order converted to invoice",
  "AdditionalDetails": "",
  "ErrorCode": "37001",
  "Severity": "Error"
}

/Sale/CreditSettlement/

  • HTTP Method: POST
  • Scenario: Customer.UID does not match customer on CreditFromInvoice
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "CustomerMismatch",
  "Message": "Customer on credit settlement must match customer on Invoice",
  "AdditionalDetails": "CreditFromInvoice",
  "ErrorCode": "10007",
  "Severity": "Error"
}
  • HTTP Method: POST
  • Scenario: Credit settlement applied to Invoice of Status Credit
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "InvoiceStatusNotValid",
  "Message": "Invoice must be in open or closed status",
  "AdditionalDetails": "Lines[n].Sale",
  "ErrorCode": "15005",
  "Severity": "Error"
}
  • HTTP Method: POST
  • Scenario: Over payments
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "OverPayment",
  "Message": "Amount applied must be less than or equal to credit available on Invoice",
  "AdditionalDetails": "CreditFromInvoice",
  "ErrorCode": "20007",
  "Severity": "Error"
}

/Sale/CreditRefund/

  • HTTP Method: POST
  • Scenario: Customer.UID does not match customer on Invoice
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "CustomerMismatch",
  "Message": "Customer on credit refund must match customer on Invoice",
  "AdditionalDetails": "Customer",
  "ErrorCode": "11007",
  "Severity": "Error"
}
  • HTTP Method: POST
  • Scenario: Over payments
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "OverPayment",
  "Message": "Credit Refund amount must be less than or equal credit available on Invoice",
  "AdditionalDetails": "Amount",
  "ErrorCode": "20007",
  "Severity": "Error"
}
  • HTTP Method: POST
  • Scenario: Invoice to refund not in Status: Credit
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "InvoiceNotInCreditStatus",
  "Message": "Invoice used on credit refund must be in credit status",
  "AdditionalDetails": "Invoice",
  "ErrorCode": "22008",
  "Severity": "Error"
}
  • HTTP Method: POST
  • Scenario: No Customer.UID supplied
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "Required",
  "Message": "Customer is required",
  "AdditionalDetails": "Customer",
  "ErrorCode": "100",
  "Severity": "Error"
}
  • HTTP Method: POST
  • Scenario: Account.UID not found
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "NotFound",
  "Message": "Account not found",
  "AdditionalDetails": "Account.UID",
  "ErrorCode": "150",
  "Severity": "Error"
}
  • HTTP Method: POST
  • Scenario: Posting Zero or Negative amount
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "ZeroOrNegativeAmount",
  "Message": "Amount must be a non-zero positive number",
  "AdditionalDetails": "Amount",
  "ErrorCode": "101",
  "Severity": "Error"
}

/Purchase/Bill/Item

  • HTTP Method: POST, PUT
  • Scenario: Negative item purchase results in negative inventory
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "InsufficientItemQuantity",
  "Message": "Insufficient item quantity to complete transaction",
  "AdditionalDetails": "Lines",
  "ErrorCode": "25002",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: BillQuantity is ZERO, UnitPrice NOT supplied, Total is NON-ZERO
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "QuantityNotValid",
  "Message": "BillQuantity must be non-zero",
  "AdditionalDetails": "Lines[n].BillQuantity",
  "ErrorCode": "12100",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: BillQuantity not supplied, UnitPrice is ZERO, Total is NON-ZERO
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "UnitPriceNotValid",
  "Message": "UnitPrice must be a positive number",
  "AdditionalDetails": "Lines[n].UnitPrice",
  "ErrorCode": "12101",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Passing a negative UnitPrice
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "UnitPriceNotValid",
  "Message": "UnitPrice must be a positive number",
  "AdditionalDetails": "Lines[n].UnitPrice",
  "ErrorCode": "12101",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: BillQuantity not supplied, UnitPrice not supplied, Total is NON-ZERO
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "QuantityRequired",
  "Message": "BillQuantity is required",
  "AdditionalDetails": "Lines[n].BillQuantity",
  "ErrorCode": "100",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: No date supplied
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "Required",
  "Message": "Date is required",
  "AdditionalDetails": "Date",
  "ErrorCode": "100",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Passing Total with more than 2 decimal places
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "ValidationError",
  "Message": "CommonRules_DecimalPrecision",
  "AdditionalDetails": "Amount",
  "ErrorCode": "1024",
  "Severity": "Error"
}

Response

json
{
  "Name": "ValidationError",
  "Message": "PurchaseEventLine_ItemTotalAmountUnBalance",
  "AdditionalDetails": "Amount",
  "ErrorCode": "4273",
  "Severity": "Error"
}

/Purchase/Bill/Service

  • HTTP Method: POST, PUT
  • Scenario: Required fields not supplied
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "Required",
  "Message": "[Field] is required",
  "AdditionalDetails": "[Path]",
  "ErrorCode": "100",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Passing Total with more than 2 decimal places
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "ValidationError",
  "Message": "CommonRules_DecimalPrecision",
  "AdditionalDetails": "Amount",
  "ErrorCode": "1024",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Duplicate purchase number
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "Duplicate",
  "Message": "Duplicate purchase number",
  "AdditionalDetails": "Number",
  "ErrorCode": "200",
  "Severity": "Warning"
}
  • HTTP Method: POST, PUT
  • Scenario: Duplicate supplier invoice number
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "Duplicate",
  "Message": "Duplicate supplier invoice number",
  "AdditionalDetails": "SupplierInvoiceNumber",
  "ErrorCode": "200",
  "Severity": "Warning"
}
  • HTTP Method: POST, PUT
  • Scenario: Supplier contact does not contain an ABN number
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "NoABN",
  "Message": "Supplier has not supplied ABN number",
  "AdditionalDetails": "Supplier",
  "ErrorCode": "210",
  "Severity": "Warning"
}
  • HTTP Method: PUT
  • Scenario: Purchase bill has already been reconciled
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "ReconciledTransaction",
  "Message": "Purchase transaction has been reconciled",
  "AdditionalDetails": "UID",
  "ErrorCode": "25004",
  "Severity": "Warning"
}
  • HTTP Method: POST, PUT
  • Scenario: Transaction will result in exceeding supplier credit limit
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "CreditLimitExceeded",
  "Message": "Purchase transaction will exceed supplier credit limit",
  "AdditionalDetails": "Supplier",
  "ErrorCode": "25005",
  "Severity": "Warning"
}
  • HTTP Method: POST, PUT
  • Scenario: Account type is anything other than Expense or CostOfSales in lines array
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "IncorrectAccountType",
  "Message": "Account on purchase should be \"Expense\" or \"Cost of Sales\" account",
  "AdditionalDetails": "Lines[x].Account.UID",
  "ErrorCode": "25006",
  "Severity": "Warning"
}
  • HTTP Method: POST, PUT
  • Scenario: No lines in array
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "NoLine",
  "Message": "Purchase transactions contains too little information",
  "AdditionalDetails": "Lines",
  "ErrorCode": "",
  "Severity": "Warning"
}
  • HTTP Method: POST, PUT
  • Scenario: Wildcard characters used in Purchase Number field
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "InvalidCharacters",
  "Message": "Since the characters '*' and' are used as wildcards when reporting, you shouldn't use them in your purchase number",
  "AdditionalDetails": "Number",
  "ErrorCode": "181",
  "Severity": "Warning"
}
  • HTTP Method: POST, PUT
  • Scenario: Posting VOID transactions
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "ValidationWarning",
  "Message": "TransferEvent_VoidTransactionWarning",
  "AdditionalDetails": "Amount",
  "ErrorCode": "4450",
  "Severity": "Warning"
}

/Purchase/Bill/Professional

  • HTTP Method: POST, PUT
  • Scenario: Missing required fields
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "Required",
  "Message": "[Field] is required",
  "AdditionalDetails": "[Path]",
  "ErrorCode": "100",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Passing Total with more than 2 decimal places
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "ValidationError",
  "Message": "CommonRules_DecimalPrecision",
  "AdditionalDetails": "Amount",
  "ErrorCode": "1024",
  "Severity": "Error"
}

/Purchase/Bill/Miscellaneous

  • HTTP Method: POST, PUT
  • Scenario: Missing required fields
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "Required",
  "Message": "[Field] is required",
  "AdditionalDetails": "[Path]",
  "ErrorCode": "100",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Passing Total with more than 2 decimal places
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "ValidationError",
  "Message": "CommonRules_DecimalPrecision",
  "AdditionalDetails": "Amount",
  "ErrorCode": "1024",
  "Severity": "Error"
}

/Purchase/SupplierPayment/

  • HTTP Method: POST, PUT
  • Scenario: No lines in purchases array collection
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "Required",
  "Message": "Purchase is required",
  "AdditionalDetails": "Lines[n].Purchase",
  "ErrorCode": "100",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Passing date as null or ""
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "SerializationError",
  "Message": "Error converting value [Error message returned from Serializer]",
  "AdditionalDetails": "[Path]",
  "ErrorCode": "50",
  "Severity": "Error"
}
  • HTTP Method: POST
  • Scenario: Supplier.UID does not match with the supplier on Bill
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "SupplierMismatch",
  "Message": "Supplier on payment must match supplier on Bill",
  "AdditionalDetails": "Lines[n].Purchase.UID",
  "ErrorCode": "20008",
  "Severity": "Error"
}

/Purchase/Order/Item

  • HTTP Method: POST, PUT
  • Scenario: Required fields not supplied
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "Required",
  "Message": "[Field] is required",
  "AdditionalDetails": "[Path]",
  "ErrorCode": "100",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: Incorrect RowID on line
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "NotFound",
  "Message": "RowID not found",
  "AdditionalDetails": "Lines[n].RowID",
  "ErrorCode": "150",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: Updating line Type ie: "Transaction" to "Header"
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "LineTypeCannotBeChanged",
  "Message": "The type of an existing line cannot be changed",
  "AdditionalDetails": "Lines[n].RowID",
  "ErrorCode": "223",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Date prior to beginning of financial year
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "DatePriorToBeginningOfFinancialYear",
  "Message": "Date cannot be prior to beginning of financial year",
  "AdditionalDetails": "Date",
  "ErrorCode": "25008",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Date falling within locked period setup in company preferences
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "DateInLockedPeriod",
  "Message": "Date cannot be in locked period",
  "AdditionalDetails": "Date",
  "ErrorCode": "25009",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Decimal precision error on Total field
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "InvalidValuePrecision",
  "Message": "Total must be rounded off to second decimal",
  "AdditionalDetails": "Lines[n].Total",
  "ErrorCode": "104",
  "Severity": "Error"
}

Response

json
{
  "Name": "LineTotalUnbalanced",
  "Message": "The line total is unbalanced",
  "AdditionalDetails": "Lines[n].Total",
  "ErrorCode": "37003",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: Trying to change supplier on existing Order
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "SupplierCannotBeChanged",
  "Message": "Cannot change supplier on existing Order.",
  "AdditionalDetails": "Supplier.UID",
  "ErrorCode": "11002",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Passing a negative UnitPrice
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "UnitPriceNotValid",
  "Message": "UnitPrice must be a positive number",
  "AdditionalDetails": "Lines[n].UnitPrice",
  "ErrorCode": "12101",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Not enough stock on hand to complete order
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "InsufficientItemQuantity",
  "Message": "Insufficient item quantity to complete transaction",
  "AdditionalDetails": "Lines",
  "ErrorCode": "25002",
  "Severity": "Error"
}
  • HTTP Method: DELETE
  • Scenario: Delete Order with payments
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "PurchaseOrderPaid",
  "Message": "Cannot delete order with payment(s) applied",
  "AdditionalDetails": "UID",
  "ErrorCode": "38000",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Update or Delete an Order with Status "ConvertedToBill"
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "OrderConvertedToBill",
  "Message": "Cannot update or delete order converted to Bill",
  "AdditionalDetails": "",
  "ErrorCode": "38001",
  "Severity": "Error"
}

/Purchase/Order/Service

  • HTTP Method: POST, PUT
  • Scenario: Required fields not supplied
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "Required",
  "Message": "[Field] is required",
  "AdditionalDetails": "[Path]",
  "ErrorCode": "100",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: Incorrect RowID on line
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "NotFound",
  "Message": "RowID not found",
  "AdditionalDetails": "Lines[n].RowID",
  "ErrorCode": "150",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: Updating line Type ie: "Transaction" to "Header"
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "LineTypeCannotBeChanged",
  "Message": "The type of an existing line cannot be changed",
  "AdditionalDetails": "Lines[n].RowID",
  "ErrorCode": "223",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Date prior to beginning of financial year
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "DatePriorToBeginningOfFinancialYear",
  "Message": "Date cannot be prior to beginning of financial year",
  "AdditionalDetails": "Date",
  "ErrorCode": "25008",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Date falling within locked period setup in company preferences
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "DateInLockedPeriod",
  "Message": "Date cannot be in locked period",
  "AdditionalDetails": "Date",
  "ErrorCode": "25009",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Decimal precision error on Total field
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "InvalidValuePrecision",
  "Message": "Total must be rounded off to second decimal",
  "AdditionalDetails": "Lines[n].Total",
  "ErrorCode": "104",
  "Severity": "Error"
}

Response

json
{
  "Name": "LineTotalUnbalanced",
  "Message": "The line total is unbalanced",
  "AdditionalDetails": "Lines[n].Total",
  "ErrorCode": "37003",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: Trying to change supplier on existing Order
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "SupplierCannotBeChanged",
  "Message": "Cannot change supplier on existing Order.",
  "AdditionalDetails": "Supplier.UID",
  "ErrorCode": "11002",
  "Severity": "Error"
}
  • HTTP Method: DELETE
  • Scenario: Delete Order with payments
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "PurchaseOrderPaid",
  "Message": "Cannot delete order with payment(s) applied",
  "AdditionalDetails": "UID",
  "ErrorCode": "38000",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Update or Delete an Order with Status "ConvertedToBill"
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "OrderConvertedToBill",
  "Message": "Cannot update or delete order converted to Bill",
  "AdditionalDetails": "",
  "ErrorCode": "38001",
  "Severity": "Error"
}

/Purchase/Order/Professional

  • HTTP Method: POST, PUT
  • Scenario: Required fields not supplied
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "Required",
  "Message": "[Field] is required",
  "AdditionalDetails": "[Path]",
  "ErrorCode": "100",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: Incorrect RowID on line
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "NotFound",
  "Message": "RowID not found",
  "AdditionalDetails": "Lines[n].RowID",
  "ErrorCode": "150",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: Updating line Type ie: "Transaction" to "Header"
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "LineTypeCannotBeChanged",
  "Message": "The type of an existing line cannot be changed",
  "AdditionalDetails": "Lines[n].RowID",
  "ErrorCode": "223",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Date prior to beginning of financial year
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "DatePriorToBeginningOfFinancialYear",
  "Message": "Date cannot be prior to beginning of financial year",
  "AdditionalDetails": "Date",
  "ErrorCode": "25008",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Date falling within locked period setup in company preferences
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "DateInLockedPeriod",
  "Message": "Date cannot be in locked period",
  "AdditionalDetails": "Date",
  "ErrorCode": "25009",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Decimal precision error on Total field
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "InvalidValuePrecision",
  "Message": "Total must be rounded off to second decimal",
  "AdditionalDetails": "Lines[n].Total",
  "ErrorCode": "104",
  "Severity": "Error"
}

Response

json
{
  "Name": "LineTotalUnbalanced",
  "Message": "The line total is unbalanced",
  "AdditionalDetails": "Lines[n].Total",
  "ErrorCode": "37003",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: Trying to change supplier on existing Order
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "SupplierCannotBeChanged",
  "Message": "Cannot change supplier on existing Order.",
  "AdditionalDetails": "Supplier.UID",
  "ErrorCode": "11002",
  "Severity": "Error"
}
  • HTTP Method: DELETE
  • Scenario: Delete Order with payments
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "PurchaseOrderPaid",
  "Message": "Cannot delete order with payment(s) applied",
  "AdditionalDetails": "UID",
  "ErrorCode": "38000",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Update or Delete an Order with Status "ConvertedToBill"
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "OrderConvertedToBill",
  "Message": "Cannot update or delete order converted to Bill",
  "AdditionalDetails": "",
  "ErrorCode": "38001",
  "Severity": "Error"
}

/Purchase/Order/Miscellaneous

  • HTTP Method: POST, PUT
  • Scenario: Required fields not supplied
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "Required",
  "Message": "[Field] is required",
  "AdditionalDetails": "[Path]",
  "ErrorCode": "100",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: Incorrect RowID on line
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "NotFound",
  "Message": "RowID not found",
  "AdditionalDetails": "Lines[n].RowID",
  "ErrorCode": "150",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Date prior to beginning of financial year
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "DatePriorToBeginningOfFinancialYear",
  "Message": "Date cannot be prior to beginning of financial year",
  "AdditionalDetails": "Date",
  "ErrorCode": "25008",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Date falling within locked period setup in company preferences
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "DateInLockedPeriod",
  "Message": "Date cannot be in locked period",
  "AdditionalDetails": "Date",
  "ErrorCode": "25009",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Decimal precision error on Total field
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "InvalidValuePrecision",
  "Message": "Total must be rounded off to second decimal",
  "AdditionalDetails": "Lines[n].Total",
  "ErrorCode": "104",
  "Severity": "Error"
}

Response

json
{
  "Name": "LineTotalUnbalanced",
  "Message": "The line total is unbalanced",
  "AdditionalDetails": "Lines[n].Total",
  "ErrorCode": "37003",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: Trying to change supplier on existing Order
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "SupplierCannotBeChanged",
  "Message": "Cannot change supplier on existing Order.",
  "AdditionalDetails": "Supplier.UID",
  "ErrorCode": "11002",
  "Severity": "Error"
}
  • HTTP Method: DELETE
  • Scenario: Delete Order with payments
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "PurchaseOrderPaid",
  "Message": "Cannot delete order with payment(s) applied",
  "AdditionalDetails": "UID",
  "ErrorCode": "38000",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Update or Delete an Order with Status "ConvertedToBill"
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "OrderConvertedToBill",
  "Message": "Cannot update or delete order converted to Bill",
  "AdditionalDetails": "",
  "ErrorCode": "38001",
  "Severity": "Error"
}

/Purchase/DebitSettlement/

  • HTTP Method: POST
  • Scenario: Zero AmountApplied
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "ZeroAmount",
  "Message": "Total Amount Applied must be a non-zero number",
  "AdditionalDetails": "Lines[x].AmountApplied",
  "ErrorCode": "190",
  "Severity": "Error"
}
  • HTTP Method: POST
  • Scenario: Debit settlement applied to Purchase of Status Debit
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "BillStatusNotValid",
  "Message": "Debit from Bill must be in Debit status",
  "AdditionalDetails": "DebitFromBill",
  "ErrorCode": "19005",
  "Severity": "Error"
}

Response

json
{
  "Name": "BillStatusNotValid",
  "Message": "Bill must be in Open or Closed status",
  "AdditionalDetails": "Lines[n].Purchase",
  "ErrorCode": "19005",
  "Severity": "Error"
}
  • HTTP Method: POST
  • Scenario: Over payments
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "OverPayment",
  "Message": "Amount applied must be less than or equal to debit available on Bill",
  "AdditionalDetails": "Lines[n].AmountApplied",
  "ErrorCode": "20007",
  "Severity": "Error"
}
  • HTTP Method: POST
  • Scenario: Supplier.UID does not match with the supplier on DebitFromBill
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "SupplierMismatch",
  "Message": "Supplier on debit settlement must match supplier on Bill",
  "AdditionalDetails": "Supplier",
  "ErrorCode": "20008",
  "Severity": "Error"
}

/Purchase/DebitRefund/

  • HTTP Method: POST
  • Scenario: Bill to refund not in Status: Debit
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "BillNotInDebitStatus",
  "Message": "Bill used on debit refund must be in debit status",
  "AdditionalDetails": "Bill",
  "ErrorCode": "20006",
  "Severity": "Error"
}
  • HTTP Method: POST
  • Scenario: Over payments
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "OverPayment",
  "Message": "Debit Refund amount must be less than or equal to the debit on the Bill",
  "AdditionalDetails": "Amount",
  "ErrorCode": "20007",
  "Severity": "Error"
}
  • HTTP Method: POST
  • Scenario: Supplier.UID does not match with the supplier on Bill
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "SupplierMismatch",
  "Message": "Supplier on debit refund must match supplier on Bill",
  "AdditionalDetails": "Supplier",
  "ErrorCode": "20008",
  "Severity": "Error"
}
  • HTTP Method: POST
  • Scenario: Account.UID is not same as UndepositedFunds Linked Account.UID
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "DepositToAccountMismatch",
  "Message": "Account does NOT match with the Undeposited Funds account",
  "AdditionalDetails": "Account",
  "ErrorCode": "26000",
  "Severity": "Error"
}

/Inventory/Item/

  • HTTP Method: PUT
  • Scenario: Occurs when trying to modify the “ItemsPerBuyingUnit” and “ItemsPerSellingUnit” fields after the item has been used in a Sale or Purchase transaction.
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "ValidationError",
  "Message": "Inventory_EditNumberItemsPerSellingUnit_HasSales",
  "AdditionalDetails": "NumberItemsPerSellingUnit:(SoldItem)",
  "ErrorCode": "4077",
  "Severity": "Error",
  "LearnMore": "[Documentation URI]"
}

Response

json
{
  "Name": "ValidationError",
  "Message": "Inventory_EditNumberItemsPerBuyingUnit_HasPurchases",
  "AdditionalDetails": "NumberItemsPerBuyingUnit:(PurchasedItem)",
  "ErrorCode": "4078",
  "Severity": "Error",
  "LearnMore": "[Documentation URI]"
}
  • HTTP Method: PUT
  • Scenario: Change IsBought to false for an Item used on purchases
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "ItemLinkedToPurchases",
  "Message": "Item linked to purchase transaction",
  "AdditionalDetails": "IsBought",
  "ErrorCode": "9001",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: Change IsSold to false for an Item used on sales
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "ItemLinkedToSales",
  "Message": "Item linked to sale transaction",
  "AdditionalDetails": "IsSold",
  "ErrorCode": "9002",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: Change IsInventoried to false for an Item with journal entries
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "ItemWithJournalEntry",
  "Message": "Item linked to Journal Entry",
  "AdditionalDetails": "IsInventoried",
  "ErrorCode": "9003",
  "Severity": "Error"
}
  • HTTP Method: DELETE
  • Scenario: Item used in sale or purchase transaction
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "ItemLinkedToSaleOrPurchase",
  "Message": "Item linked to sale or purchase transactions",
  "AdditionalDetails": "",
  "ErrorCode": "9004",
  "Severity": "Error"
}
  • HTTP Method: DELETE
  • Scenario: Item with x number of items in Inventory
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "ItemWithInventory",
  "Message": "Units of Item in inventory",
  "AdditionalDetails": "",
  "ErrorCode": "9005",
  "Severity": "Error"
}
  • HTTP Method: DELETE
  • Scenario: Item with Inventory transactions
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "ItemWithInventoryTransaction",
  "Message": "Item has inventory transactions",
  "AdditionalDetails": "",
  "ErrorCode": "9006",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: ExpenseAccount.UID not supplied for Item with IsBought: True and IsInventoried: False
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "Required",
  "Message": "ExpenseAccount is required when Item is Bought and NOT Inventoried",
  "AdditionalDetails": "ExpenseAccount.UID",
  "ErrorCode": "100",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: CostOfSalesAccount.UID not supplied for Item when IsBought: False, IsSold: True and IsInventoried: True
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "Required",
  "Message": "CostOfSalesAccount is required when Item is Sold and Inventoried",
  "AdditionalDetails": "CostOfSalesAccount.UID",
  "ErrorCode": "100",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: CostOfSalesAccount.UID not supplied for Item when IsBought: True, IsSold: True and IsInventoried: True
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "Required",
  "Message": "CostOfSalesAccount is required when Item is Sold and Inventoried",
  "AdditionalDetails": "CostOfSalesAccount.UID",
  "ErrorCode": "100",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: IncomeAccount.UID not supplied for Item with IsSold: True
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "Required",
  "Message": "IncomeAccount is required when Item is sold",
  "AdditionalDetails": "IncomeAccount.UID",
  "ErrorCode": "100",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: AssetAccount.UID not supplied for Item with IsInventoried: True
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "Required",
  "Message": "AssetAccount is required when Item is Inventoried",
  "AdditionalDetails": "AssetAccount.UID",
  "ErrorCode": "100",
  "Severity": "Error"
}

/Inventory/ItemPriceMatrix/

  • HTTP Method: PUT
  • Scenario: Invalid price level supplied ie: Level G
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "InvalidItemPriceLevel",
  "Message": "Price level is invalid",
  "AdditionalDetails": "SellingPrices[n].Levels[\"LevelG\"]",
  "ErrorCode": "9500",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: Duplicate QuantityOver values
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "DuplicateQuantityOver",
  "Message": "Duplicate Quantity Over values supplied",
  "AdditionalDetails": "SellingPrices",
  "ErrorCode": "9501",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: Update without including QuantityOver: 0
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "PriceLevelForZeroQuantity",
  "Message": "Item Price Levels for Quantity Zero must be defined",
  "AdditionalDetails": "SellingPrices",
  "ErrorCode": "9502",
  "Severity": "Error"
}

/Inventory/Adjustment/

  • HTTP Method: POST, PUT
  • Scenario: Adjustment results in negative inventory
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "InsufficientItemQuantity",
  "Message": "Insufficient item quantity to complete transaction",
  "AdditionalDetails": "Quantity",
  "ErrorCode": "25002",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Adjusting a non-inventoried item
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "ItemNotInventoried",
  "Message": "Item must be inventoried to complete transaction",
  "AdditionalDetails": "",
  "ErrorCode": "28001",
  "Severity": "Error"
}

/Banking/SpendMoneyTxn/

  • Scenario: POST, PUT
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "SpendMoneyTxnContactNotSupplied",
  "Message": "null",
  "AdditionalDetails": "Contact.UID",
  "ErrorCode": "23002",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Cannot pay customer contact from Electronic Payments account
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "ValidationError",
  "Message": "CashPaymentEvent_InvalidAccountForCustomerCardType",
  "AdditionalDetails": "AccountId",
  "ErrorCode": "4461",
  "Severity": "Error"
}

Response

json
{
  "Name": "ValidationError",
  "Message": "BusinessEvent_CustomerCardInvalidElectronicAccount",
  "AdditionalDetails": "CardId",
  "ErrorCode": "4225",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Category tracking is required
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "ValidationError",
  "Message": "BusinessEvent_CategoryRequired",
  "AdditionalDetails": "CategoryId",
  "ErrorCode": "4221",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: Updating reconciled transaction
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "ValidationWarning",
  "Message": "BusinessEvent_HasBeenReconciledWarning",
  "AdditionalDetails": "Id",
  "ErrorCode": "4230",
  "Severity": "Warning"
}

/Banking/ReceiveMoneyTxn/

  • HTTP Method: POST
  • Scenario: Account.UID is not same as UndepositedFunds Linked Account.UID
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "DepositToAccountMismatch",
  "Message": "Account does NOT match with the Undeposited Funds account",
  "AdditionalDetails": "Account",
  "ErrorCode": "26000",
  "Severity": "Error"
}
  • HTTP Method: POST, PUT
  • Scenario: Category tracking is required
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "ValidationError",
  "Message": "BusinessEvent_CategoryRequired",
  "AdditionalDetails": "CategoryId",
  "ErrorCode": "4221",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: Updating reconciled transaction
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "ValidationWarning",
  "Message": "BusinessEvent_HasBeenReconciledWarning",
  "AdditionalDetails": "Id",
  "ErrorCode": "4230",
  "Severity": "Warning"
}

/Banking/TransferMoneyTxn/

  • HTTP Method: POST
  • Scenario: Posting Zero or Negative amount
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "ZeroOrNegativeAmount",
  "Message": "Amount must be a non-zero positive number",
  "AdditionalDetails": "Amount",
  "ErrorCode": "101",
  "Severity": "Error"
}
  • HTTP Method: POST
  • Scenario: Using the same FromAccount UID for ToAccount UID
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "TransferBetweenSameAccount",
  "Message": "FromAccount and ToAccount must be different",
  "AdditionalDetails": "ToAccount",
  "ErrorCode": "29000",
  "Severity": "Error"
}
  • HTTP Method: POST
  • Scenario: AccountType of FromAccount isn't Bank or Credit Card
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "AccountNotValid",
  "Message": "Account must be bank or credit card type",
  "AdditionalDetails": "FromAccount.UID",
  "ErrorCode": "29001",
  "Severity": "Error"
}
  • HTTP Method: POST
  • Scenario: AccountType of ToAccount isn't Bank or Credit Card
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "AccountNotValid",
  "Message": "Account must be bank or credit card type",
  "AdditionalDetails": "ToAccount.UID",
  "ErrorCode": "29001",
  "Severity": "Error"
}

/Payroll/Timesheet/

  • HTTP Method: PUT
  • Scenario: 'I Use Timesheet..." preference not enabled
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "CompanyFilePreferenceForTimesheet",
  "Message": "Company File preference to 'Use Timesheet for...' should be ON",
  "AdditionalDetails": "null",
  "ErrorCode": "34003",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: 'I Use Timesheet..." preference enabled for Payroll only
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "CompanyFilePreferenceForTimesheet",
  "Message": "Company File preference to 'Use Timesheet for TimeBilling and Payroll' should be ON to use Customer",
  "AdditionalDetails": "Lines[x].Customer.UID",
  "ErrorCode": "34003",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: 'I Use Timesheet..." preference enabled for Payroll only
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "CompanyFilePreferenceForTimesheet",
  "Message": "Company File preference to 'Use Timesheet for TimeBilling and Payroll' should be ON to use Activity",
  "AdditionalDetails": "Lines[x].Activity.UID",
  "ErrorCode": "34003",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: Activity of "Type: Non-Hourly" supplied
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "NonHourlyActivity",
  "Message": "Only activity of 'Type: Hourly' can be used",
  "AdditionalDetails": "Activity",
  "ErrorCode": "34005",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: StartDate is dated after EndDate
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "InvalidDateRange",
  "Message": "'Date' should be between 'StartDate' and 'EndDate'",
  "AdditionalDetails": "null",
  "ErrorCode": "221",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: Date on entries outside range of 'StartDate' and 'EndDate'
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "DateOutOfRange",
  "Message": "'StartDate' should be prior to OR same as 'EndDate'",
  "AdditionalDetails": "Lines[x].Entries[x].Date",
  "ErrorCode": "220",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: Timesheet has been processed
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "ProcessedTimesheet",
  "Message": "Cannot update or delete a processed timesheet",
  "AdditionalDetails": "Lines",
  "ErrorCode": "34002",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: PayrollWageCategory used NOT assigned to employee
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "InvalidPayrollCategory",
  "Message": "Only PayrollCategories assigned to the employee can be used on Timesheet",
  "AdditionalDetails": "PayrollCategory.UID",
  "ErrorCode": "34001",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: PayrollWageCategory used not 'WageType: Hourly'
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "InvalidPayrollCategoryWageType",
  "Message": "PayrollCategory used on timesheet should be of 'WageType: Hourly'",
  "AdditionalDetails": "PayrollCategory.UID",
  "ErrorCode": "34000",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: PayrollCategory.UID not supplied
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "Required",
  "Message": "PayrollCategory is required",
  "AdditionalDetails": "Lines[x].PayrollCategory",
  "ErrorCode": "100",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: StartDate not supplied
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "Required",
  "Message": "StartDate is required",
  "AdditionalDetails": "StartDate",
  "ErrorCode": "100",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: EndDate not supplied
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "Required",
  "Message": "EndDate is required",
  "AdditionalDetails": "EndDate",
  "ErrorCode": "100",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: Line entries date not supplied
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "Required",
  "Message": "Date is required",
  "AdditionalDetails": "Lines[x].Entries[x].Date",
  "ErrorCode": "100",
  "Severity": "Error"
}
  • HTTP Method: PUT
  • Scenario: Employee not supplied
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "Required",
  "Message": "Employee is required",
  "AdditionalDetails": "Employee",
  "ErrorCode": "100",
  "Severity": "Error"
}

/Contact/Employee/

  • HTTP Method: PUT,POST
  • Scenario: Updating a contact card where the state field is required. From 2018.1, the state field is required if the address Country field is blank or set to "Australia"
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "ValidationError",
  "Message": "Card_Address_StateRequired",
  "AdditionalDetails": "Addresses:(Card)",
  "ErrorCode": "6042",
  "Severity": "Error"
}

/GeneralLedger/GeneralJournal/

  • HTTP Method: PUT
  • Scenario: Updating General Journal entry that has been reconciled
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "ReconciledTransaction",
  "Message": "One or more parts of this journal entry have been reconciled. Changing or deleting this may affect your next reconciliation",
  "AdditionalDetails": "",
  "ErrorCode": "25004",
  "Severity": "Warning"
}

/TimeBilling/Activity/

  • HTTP Method: POST, PUT
  • Scenario: Not passing ChargeableDetails when Status = Chargeable
  • HTTP Status Code: 400 Bad Request

Response · Status 400

json
{
  "Name": "ChargeableDetailsRequired",
  "Message": "ChargeableDetails is required when 'Status: Chargeable'",
  "AdditionalDetails": "ChargeableDetails\"",
  "ErrorCode": "32000",
  "Severity": "Error"
}