EntityCounterparty

Link Payors

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

Path parameters

entityIdstringRequired

Request

This endpoint expects an object.
payors
list of stringsRequired
List of payor entity IDs to associate with the entity
customizations
list of objectsOptional
List of customizations to apply to the payors. If the payor 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/addPayors \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "payors": [
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}'