Add StandAlone Accounting System
Allows adding a StandAlone accounting system in Basecone.
POST accountingsystems/standalone
Request properties
Property | Type | Description | Optional |
---|---|---|---|
accountingSystemCode | String | StandAlone accounting system code. | No |
Example request
{ "accountingsystemcode": "Some StandAlone code", }
Success response
Upon successful operation a 201 status code will be returned.
Example response:
{ "accountingSystemId": "d5278262-b4a6-4503-9e7b-a89b65b2f214" }
Error response
Case an error occurs, a 400 status code will be returned, containing error message(s).
Example response:
{ "message": "One or more validation errors occurred.", "code": "invalid_request_payload", "_metadata":[ { "field": "accountingSystemCode", "message": "Accounting system code is already in use", "code": "accounting_system_code_in_use" } ] }
Possible error responses
Status code | Error code | Field | Message |
---|---|---|---|
400 | accounting_system_code_in_use | accountingSystemCode | Accounting system code is already in use. |
400 | synchronization_user_not_allowed_to_office | Api User | User does not have access to the office. |
400 | synchronization_user_not_found | Api User | User does not exist. |
400 | unknown_error | unknown. |