Custom Payment Method Schema

Get All

GET
https://api.mercoa.com/paymentMethod/schema

Get all custom payment method schemas

Response

This endpoint return a list of objects.
id
string
name
string
isSource
boolean

This payment method can be used as a payment source for an invoice

isDestination
boolean

This payment method can be used as a payment destination for an invoice

supportedCurrencies
list of enums

List of currencies that this payment method supports.

fields
list of objects
createdAt
datetime
updatedAt
datetime
GET
/paymentMethod/schema
curl https://api.mercoa.com/paymentMethod/schema \
-H "Authorization: Bearer <token>"
Response
[
{
"id": "string",
"name": "string",
"isSource": true,
"isDestination": true,
"supportedCurrencies": [
"AED"
],
"fields": [
{
"name": "string",
"type": "text",
"optional": true,
"displayName": "string",
"useAsAccountName": true,
"useAsAccountNumber": true,
"options": [
"string"
]
}
],
"createdAt": "2023-01-01T00:00:00Z",
"updatedAt": "2023-01-01T00:00:00Z"
}
]