EntityPayment Method

Update

PUT
https://api.mercoa.com/entity/:entityId/paymentMethod/:paymentMethodId

Only custom payment methods can be updated.

Path parameters

entityId
string
paymentMethodId
string

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 return a union.
Bank Account
OR
Card
OR
Check
OR
Custom
OR
Off Platform
PUT
/entity/:entityId/paymentMethod/:paymentMethodId
curl -X PUT https://api.mercoa.com/entity/:entityId/paymentMethod/:paymentMethodId \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"type": "custom"
}'
Response
{
"type": "bankAccount",
"accountName": "string",
"accountNumber": "string",
"accountType": "CHECKING",
"bankName": "string",
"createdAt": "2023-01-01T00:00:00Z",
"id": "string",
"isDefaultDestination": true,
"isDefaultSource": true,
"routingNumber": "string",
"status": "NEW",
"supportedCurrencies": [
"AED"
],
"updatedAt": "2023-01-01T00:00:00Z",
"checkOptions": {
"enabled": true,
"initialCheckNumber": 0,
"routingNumberOverride": "string",
"accountNumberOverride": "string",
"signatoryName": "string",
"signatureImage": "string"
}
}