Custom Payment Method Schema

Get

GET
Get custom payment method schema

Path parameters

schemaIdstringRequired

Response

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