Custom Payment Method Schema

Get All

GET
Get all custom payment method schemas

Response

This endpoint returns 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
$curl https://api.mercoa.com/paymentMethod/schema \
> -H "Authorization: Bearer <token>"
Response
1[
2 {
3 "id": "string",
4 "name": "string",
5 "isSource": true,
6 "isDestination": true,
7 "supportedCurrencies": [
8 "AED"
9 ],
10 "fields": [
11 {
12 "name": "string",
13 "type": "text",
14 "optional": true,
15 "displayName": "string",
16 "useAsAccountName": true,
17 "useAsAccountNumber": true,
18 "options": [
19 "string"
20 ]
21 }
22 ],
23 "createdAt": "2023-01-01T00:00:00Z",
24 "updatedAt": "2023-01-01T00:00:00Z"
25 }
26]