Entity

Get entity

GET

Path parameters

entityIdstringRequired

Response

This endpoint returns an object
id
string
name
string
email
string
isCustomer
boolean
True if this entity has a direct relationship with your organization.
accountType
enum
Allowed values: businessindividual
profile
object
status
enum
acceptedTos
boolean
True if this entity has accepted the terms of service.
isPayor
boolean
True if this entity can pay invoices.
isPayee
boolean
True if this entity can receive payments.
isNetworkPayor
boolean
True if this entity is available as a payor to any entity on your platform. Otherwise this entity will only be available as a payor to entities that have a direct relationship with this entity.
isNetworkPayee
boolean
True if this entity is available as a payee to any entity on your platform. Otherwise this entity will only be available as a payee to entities that have a direct relationship with this entity.
createdAt
datetime
updatedAt
datetime
foreignId
stringOptional
The ID used to identify this entity in your system
emailTo
stringOptional
Local-part/username of the email address to which to send invoices to be added to the Invoice Inbox.
emailToAlias
list of stringsOptional
Email inbox alias addresses. Used when forwarding emails to the emailTo address from an alias.
GET
1curl https://api.mercoa.com/entity/ent_a0f6ea94-0761-4a5e-a416-3c453cb7eced \
2 -H "Authorization: Bearer <token>"
200Retrieved
1{
2 "id": "ent_8545a84e-a45f-41bf-bdf1-33b42a55812c",
3 "name": "Acme Inc.",
4 "email": "customer@acme.com",
5 "isCustomer": true,
6 "accountType": "business",
7 "profile": {
8 "business": {
9 "legalBusinessName": "Acme Inc.",
10 "taxIDProvided": true,
11 "email": "customer@acme.com",
12 "businessType": "llc",
13 "phone": {
14 "countryCode": "1",
15 "number": "4155551234"
16 },
17 "address": {
18 "addressLine1": "123 Main St",
19 "city": "San Francisco",
20 "stateOrProvince": "CA",
21 "postalCode": "94105",
22 "addressLine2": "Unit 1",
23 "country": "US"
24 },
25 "ownersProvided": true
26 }
27 },
28 "status": "verified",
29 "acceptedTos": true,
30 "isPayor": true,
31 "isPayee": false,
32 "isNetworkPayor": false,
33 "isNetworkPayee": false,
34 "createdAt": "2024-01-01T00:00:00Z",
35 "updatedAt": "2024-01-02T00:00:00Z",
36 "foreignId": "MY-DB-ID-12345"
37}