Entity

Update entity

POST

Path parameters

entityIdstringRequired

Request

This endpoint expects an object.
foreignId
stringOptional
The ID used to identify this entity in your system. This ID must be unique across all entities in your system.
emailTo
stringOptional
Sets the email address to which to send invoices to be added to the Invoice Inbox. Only provide the local-part/username of the email address, do not include the @domain.com
emailToAlias
list of stringsOptional
Email inbox alias addresses. Used when forwarding emails to the emailTo address from an alias. Include the full email address.
isCustomer
booleanOptional
If this entity has a direct relationship with your organization (e.g your direct customer or client), set this to true. Otherwise, set to false (e.g your customer's vendors).
accountType
enumOptional
Allowed values: businessindividual
profile
objectOptional
isPayor
booleanOptional
If this entity will be paying invoices, set this to true.
isPayee
booleanOptional
If this entity will be receiving payments, set this to true.
logo
stringOptional
Base64 encoded PNG image data for the entity logo.

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.
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.
POST
1curl -X POST https://api.mercoa.com/entity/:entityId \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{}'
200
Successful
1{
2 "id": "string",
3 "name": "string",
4 "email": "string",
5 "isCustomer": true,
6 "accountType": "business",
7 "profile": {
8 "business": {
9 "legalBusinessName": "string",
10 "taxIDProvided": true,
11 "email": "string",
12 "businessType": "soleProprietorship",
13 "phone": {
14 "countryCode": "string",
15 "number": "string"
16 },
17 "doingBusinessAs": "string",
18 "website": "string",
19 "description": "string",
20 "address": {
21 "addressLine1": "string",
22 "city": "string",
23 "stateOrProvince": "string",
24 "postalCode": "string",
25 "addressLine2": "string",
26 "country": "string"
27 },
28 "ownersProvided": true
29 },
30 "individual": {
31 "name": {
32 "firstName": "string",
33 "lastName": "string",
34 "middleName": "string",
35 "suffix": "string"
36 },
37 "birthDateProvided": true,
38 "governmentIDProvided": true,
39 "email": "string",
40 "phone": {
41 "countryCode": "string",
42 "number": "string"
43 },
44 "address": {
45 "addressLine1": "string",
46 "city": "string",
47 "stateOrProvince": "string",
48 "postalCode": "string",
49 "addressLine2": "string",
50 "country": "string"
51 }
52 }
53 },
54 "status": "unverified",
55 "acceptedTos": true,
56 "isPayor": true,
57 "isPayee": true,
58 "createdAt": "2023-01-01T00:00:00Z",
59 "updatedAt": "2023-01-01T00:00:00Z",
60 "foreignId": "string",
61 "emailTo": "string",
62 "emailToAlias": [
63 "string"
64 ]
65}