EntityPayment Method

Update

PUT
Only custom payment methods can be updated.

Path parameters

entityIdstringRequired
paymentMethodIdstringRequired

Request

This endpoint expects a union.
Custom
OR
Bank Account
Only defaultSource, defaultDestination, accountName, and checkOptions can be updated.
OR
Card
Only defaultSource and defaultDestination can be updated.
OR
Check
Only defaultSource and defaultDestination can be updated.
OR
Off Platform
Only defaultSource and defaultDestination can be updated.

Response

This endpoint returns a union
Bank Account
OR
Card
OR
Check
OR
Custom
OR
Off Platform
PUT
1curl -X PUT https://api.mercoa.com/entity/ent_8545a84e-a45f-41bf-bdf1-33b42a55812c/paymentMethod/pm_4794d597-70dc-4fec-b6ec-c5988e759769 \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "type": "bankAccount",
6 "defaultDestination": true,
7 "defaultSource": true
8}'
200Updated
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}