EntityCounterparty

Link Payees

POST
Create association between Entity and a given list of Payees. If a Payee has previously been archived, unarchive the Payee.

Path parameters

entityIdstringRequired

Request

This endpoint expects an object.
payees
list of stringsRequired
List of payee entity IDs to associate with the entity
customizations
list of objectsOptional
List of customizations to apply to the payees. If the payee is not currently a counterparty of the entity, the counterparty will be created with the provided customizations.
POST
1curl -X POST https://api.mercoa.com/entity/ent_8545a84e-a45f-41bf-bdf1-33b42a55812c/addPayees \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "payees": [
6 "ent_21661ac1-a2a8-4465-a6c0-64474ba8181d"
7 ],
8 "customizations": [
9 {
10 "counterpartyId": "ent_21661ac1-a2a8-4465-a6c0-64474ba8181d",
11 "accountId": "85866843"
12 }
13 ]
14}'