EntityPayment Method

Create

POST

Path parameters

entityIdstringRequired

Request

This endpoint expects a union.
Bank Account
OR
Card
OR
Check
OR
Custom
OR
Off Platform

Response

This endpoint returns a union
Bank Account
OR
Card
OR
Check
OR
Custom
OR
Off Platform
POST
1curl -X POST https://api.mercoa.com/entity/ent_8545a84e-a45f-41bf-bdf1-33b42a55812c/paymentMethod \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "type": "bankAccount",
6 "accountNumber": "99988767623",
7 "accountType": "CHECKING",
8 "routingNumber": "12345678",
9 "bankName": "Chase"
10}'
200
Successful
1{
2 "type": "bankAccount",
3 "accountName": "My Checking Account",
4 "accountNumber": "99988767623",
5 "accountType": "CHECKING",
6 "bankName": "Chase",
7 "createdAt": "2021-01-01T00:00:00Z",
8 "id": "pm_4794d597-70dc-4fec-b6ec-c5988e759769",
9 "isDefaultDestination": true,
10 "isDefaultSource": true,
11 "routingNumber": "12345678",
12 "status": "VERIFIED",
13 "supportedCurrencies": [
14 "USD"
15 ],
16 "updatedAt": "2021-01-01T00:00:00Z"
17}