Created
October 28, 2020 17:17
-
-
Save SerKnight/b95d5b227818534ae7dad5abf089ae20 to your computer and use it in GitHub Desktop.
POST MJ tracking category
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GET https://api.xero.com/api.xro/2.0/TrackingCategories | |
{ | |
"Id": "52320140-3aaa-4106-b9fc-087c9feec702", | |
"Status": "OK", | |
"ProviderName": "Insomnia Client", | |
"DateTimeUTC": "\/Date(1603904047088)\/", | |
"TrackingCategories": [ | |
{ | |
"Name": "Regions", | |
"Status": "ACTIVE", | |
"TrackingCategoryID": "05206072-4e65-47ba-bc2b-52ea0efe8c58", | |
"Options": [ | |
{ | |
"TrackingOptionID": "254baa05-820b-4425-bbe1-aa23c5117d21", | |
"Name": "North Region", | |
"Status": "ACTIVE", | |
"HasValidationErrors": false, | |
"IsDeleted": false, | |
"IsArchived": false, | |
"IsActive": true | |
} | |
] | |
} | |
] | |
} | |
----------- | |
POST https://api.xero.com/api.xro/2.0/ManualJournals | |
{ | |
"ManualJournals": [ | |
{ | |
"Date": "\/Date(1486166400000+0000)\/", | |
"Status": "POSTED", | |
"LineAmountTypes": "NoTax", | |
"UpdatedDateUTC": "\/Date(1291226902527+0000)\/", | |
"ManualJournalID": "c53ebb10-c046-471b-9919-29ac6b9fb977", | |
"Narration": "Coded incorrectly Office Equipment should be Computer Equipment", | |
"TrackingCategoryID": "05206072-4e65-47ba-bc2b-52ea0efe8c58", | |
"JournalLines": [ | |
{ | |
"Description": "Coded incorrectly Office Equipment should be Computer Equipment", | |
"TaxType": "NONE", | |
"TaxAmount": 0.00, | |
"LineAmount": -2569.00, | |
"AccountCode": "1109", | |
"Tracking": [{ | |
"Name": "Regions", | |
"Option": "North Region" | |
}], | |
"IsBlank": false | |
}, | |
{ | |
"Description": "Coded incorrectly Computer Equipment should be Office Equipment", | |
"TaxType": "NONE", | |
"TaxAmount": 0.00, | |
"LineAmount": 2569.00, | |
"AccountCode": "1109", | |
"Tracking": [{ | |
"Name": "Regions", | |
"Option": "North Region" | |
}], | |
"IsBlank": false | |
} | |
], | |
"ShowOnCashBasisReports": true, | |
"HasAttachments": false | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment