email field must be unique per entity: you cannot create two counterparties with the same email under the same entity. If you supply a client_reference, that value must also be unique per entity and is useful for correlating counterparties with records in your own system.curl --location '/counterparties' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "jane.doe@example.com"
}'{
"message": "Counterparty created successfully",
"status": "success",
"data": {
"id": "01HZ9KPQR3VTXMN84JWYB65CD0",
"entity_id": "01HZ9ABCD1234EFGH5678IJKL90",
"email": "jane.doe@example.com",
"status": "active",
"first_name": "Jane",
"last_name": "Doe",
"phonenumber": "+2348031234567",
"client_reference": "cust-00412",
"created": 1722870000000,
"updated": 1722870000000
}
}