GL Classifications
Create classification
Changed onCreate a GL classification, typically for a value from your ERP. A classification is identified by its type, thirdPartyId and vendorValueId. Creating an identical classification again returns the existing one with status 200. Creating one with the same type, thirdPartyId and vendorValueId but a different payload returns 409. Use :find and then update the existing classification instead.
Every id in glEntityIds must be an existing GL entity. An empty glEntityIds applies the classification to the whole organization, which principals restricted to specific entities are not allowed to do.
post/accounting/v2beta/gl-classifications
Request
- Base URLhttps://api.atlar.com
- AuthHTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"thirdPartyId": "9a8b1372-5c80-44a5-81a9-553a34041eb7",
"type": {
"type": "cseg_region",
"name": "Class",
"fieldKey": "cseg_region"
},
"name": "EMEA Sales"
}Response
An identical GL classification already existed and is returned.
Example response
{
"id": "2ed9a3ee-60aa-4f9f-a858-2eed4eefbbc8",
"organizationId": "0160f6ab-5741-49e1-af46-9138927e547e",
"thirdPartyId": "9a8b1372-5c80-44a5-81a9-553a34041eb7",
"type": {
"type": "cseg_region",
"name": "Class",
"fieldKey": "cseg_region"
},
"name": "EMEA Sales",
"version": 1,
"etag": "version:3",
"created": "2022-05-04T18:31:12.889104898Z",
"updated": "2022-05-04T18:47:32.213842599Z"
}Changes
- info
endpoint added
- info