Logo
Sign inBook a demo
HomeGuidesAPI ReferenceGlossary
HomeGuidesAPI ReferenceGlossary
  • API Reference
Sign inBook a demo
API ReferenceEntityExternal Accounting System

Create/Update External Entity

POST
https://api.mercoa.com/entity/:entityId/external-accounting-system/create
POST
/entity/:entityId/external-accounting-system/create
1curl -X POST https://api.mercoa.com/entity/ent_8545a84e-a45f-41bf-bdf1-33b42a55812c/external-accounting-system/create \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "type": "rutter",
6 "accessToken": "123"
7}'
Try it
200Default
1{
2 "type": "rutter",
3 "accessToken": "123"
4}

Create/Link an entity to an external accounting system like Codat or Rutter. If the entity is already linked to an external accounting system, this will return the existing connection.

Path parameters

entityIdstringRequired
Entity ID or Entity ForeignID

Headers

AuthorizationstringRequired
Bearer authentication of the form `Bearer <token>`, where token is your auth token.

Request

This endpoint expects an object.
codatobjectRequired
OR
rutterobjectRequired

Response

This endpoint returns an object.
codatobject
OR
rutterobject
OR
noneobject

Errors

Was this page helpful?
Previous

Connect External System

Next
Built with
Entity ID or Entity ForeignID

Bearer authentication of the form Bearer <token>, where token is your auth token.