EntityExternal Accounting System

Create/Update External Entity

POST
Create/Link an entity to an external accounting system like Codat or Rutter

Path parameters

entityIdstringRequired

Request

This endpoint expects a union.
Codat
OR
Rutter

Response

This endpoint returns a union
Codat
OR
Rutter
POST
1curl -X POST https://api.mercoa.com/entity/:entityId/external-accounting-system/create \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "type": "codat"
6}'
200
Successful
1{
2 "type": "codat",
3 "companyId": "string"
4}