At MYOB we are always looking for ways to simplify processes. As a result we are in the process of standardizing the data structures across our products. What this means is that there are some changes coming to the GeneralLedger/Account Endpoint for AccountRight.
As a result when POSTing or PUTing Accounts, you will need to move to using the `DisplayID` field over the `Number` field to set the Account Number.
The `DisplayID` field will also move to supporting alpha-numeric values as well as a numeric format.
The Number field will eventually be removed, but will remain during a transition period to help you make the necessary changes to your code.
To help you get a better understanding of what will happen when POSTing/PUTing using the GeneralLedger/Account, we have created a table below (GET and DELETE requests will not be affected):
Number: Yes DisplayID: No UseAlphaAccountIdentifier: False |
Number: Yes DisplayID: Yes UseAlphaAccountIdentifier: False |
Number: Yes DisplayID: Yes UseAlphaAccountIdentifier: True |
Number: Yes DisplayID: No UseAlphaAccountIdentifier: True |
|
POST/PUT |
2XX – OK We will create the Identifier value based on X-XXXX |
2XX – OK We will use the DisplayId as source of truth and ignore the Number 4XX – Error If DisplayID is not the same as formatting X-XXXX |
2XX – OK We will use the DisplayId as source of truth and ignore the Number
|
4XX – Error DisplayID must be supplied |
Validation |
|
|
|
UseAlphaAccountIdentifier field
We are also introducing a read-only `UseAlphaAccountIdentifier` Boolean field in the Company/Preferences endpoint that determines whether the Company file allows alpha-numeric Account number values, or stays with the current 9-9999 format. The change to the Company/Preferences endpoint will look like this:
{
"System" : {
"CategoryTracking" : "Off",
"TransactionsCannotBeChangedMustBeReversed": false,
"LockPeriodPriorTo" : "2013-07-01T00:00:00"
"UseAlphaAccountIdentifier": false
},
"ReportsAndForms" : {
"ReportTaxablePayments" : false
},
.
}
If the `UseAlphaAccountIdentifier` field is marked as false, this means that the `DisplayID` field will use the traditional format of 9-9999. Where as if the field is marked as true this will allow you to use an Alpha-numeric format.
These changes are will come into effect in Q4 2019. More information and detail about these changes will be released over the coming months.
Comments
0 comments
Article is closed for comments.