Benji Pays · Schema

PaymentMethodWithMandate

Saved payment method with its authorization mandate

PaymentsAccountingIntegrationQuickBooksXero

Properties

Name Type Description
id string Payment method identifier (profile `_id`)
accountingCompanyId string Accounting company ID
customerId string Accounting system customer ID this payment method belongs to
accountingType string Accounting platform type (e.g. quickbooks, xero)
gatewayProcessor string Payment processor identifier (public key, e.g. `benjipayments`)
gatewayId string Gateway store identifier
gatewayCustomerId object Processor-specific customer ID
vaultToken object Processor payment-method token (e.g. Moneris data key, Stripe `pm_…` id), or `null` if none. Treat as sensitive.
customerName string Accounting customer display name (denormalized from the linked customer onto the profile)
maskedPan string Masked card or bank account number
expiryMonth string Card expiry month (CC only)
expiryYear string Card expiry year (CC only)
cardBrand string Card brand, e.g. Visa, Mastercard (CC only)
paymentType string Payment type, defaults to "cc"
isDebitCard boolean Whether the card is a debit card (CC only, defaults to false)
autoPayEnabled boolean Whether autopay is enabled (enabled and not fuse-blown)
autoPayPriority number Processing priority when multiple methods exist
benjiSurchargeEnabled boolean Whether Benji surcharging is enabled (!surchargingDisabled)
note string
declineCount number Number of declines, defaults to 0
lastDeclineDate object
creatorIpAddress string
createdDate string
lastModifiedDate string
mandate object Authorization mandate for this payment method, or null when none was captured
View JSON Schema on GitHub

JSON Schema

benjipays-com-payment-method-with-mandate-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/benjipays-com/json-schema/benjipays-com-payment-method-with-mandate-schema.json",
  "title": "PaymentMethodWithMandate",
  "description": "Saved payment method with its authorization mandate",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/benjipays-com-benji-pays-merchant-api-openapi.yml#/components/schemas/PaymentMethodWithMandate",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Payment method identifier (profile `_id`)"
    },
    "accountingCompanyId": {
      "description": "Accounting company ID",
      "type": "string"
    },
    "customerId": {
      "description": "Accounting system customer ID this payment method belongs to",
      "type": "string"
    },
    "accountingType": {
      "description": "Accounting platform type (e.g. quickbooks, xero)",
      "type": "string"
    },
    "gatewayProcessor": {
      "description": "Payment processor identifier (public key, e.g. `benjipayments`)",
      "type": "string"
    },
    "gatewayId": {
      "description": "Gateway store identifier",
      "type": "string"
    },
    "gatewayCustomerId": {
      "description": "Processor-specific customer ID",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "vaultToken": {
      "description": "Processor payment-method token (e.g. Moneris data key, Stripe `pm_…` id), or `null` if none. Treat as sensitive.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "customerName": {
      "description": "Accounting customer display name (denormalized from the linked customer onto the profile)",
      "type": "string"
    },
    "maskedPan": {
      "description": "Masked card or bank account number",
      "type": "string"
    },
    "expiryMonth": {
      "description": "Card expiry month (CC only)",
      "type": "string"
    },
    "expiryYear": {
      "description": "Card expiry year (CC only)",
      "type": "string"
    },
    "cardBrand": {
      "description": "Card brand, e.g. Visa, Mastercard (CC only)",
      "type": "string"
    },
    "paymentType": {
      "type": "string",
      "description": "Payment type, defaults to \"cc\""
    },
    "isDebitCard": {
      "description": "Whether the card is a debit card (CC only, defaults to false)",
      "type": "boolean"
    },
    "autoPayEnabled": {
      "type": "boolean",
      "description": "Whether autopay is enabled (enabled and not fuse-blown)"
    },
    "autoPayPriority": {
      "description": "Processing priority when multiple methods exist",
      "type": "number"
    },
    "benjiSurchargeEnabled": {
      "type": "boolean",
      "description": "Whether Benji surcharging is enabled (!surchargingDisabled)"
    },
    "note": {
      "type": "string"
    },
    "declineCount": {
      "type": "number",
      "description": "Number of declines, defaults to 0"
    },
    "lastDeclineDate": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "creatorIpAddress": {
      "type": "string"
    },
    "createdDate": {
      "type": "string"
    },
    "lastModifiedDate": {
      "type": "string"
    },
    "mandate": {
      "anyOf": [
        {
          "$ref": "#/$defs/Mandate"
        },
        {
          "type": "null"
        }
      ],
      "description": "Authorization mandate for this payment method, or null when none was captured"
    }
  },
  "required": [
    "id",
    "paymentType",
    "autoPayEnabled",
    "benjiSurchargeEnabled",
    "declineCount",
    "mandate"
  ],
  "additionalProperties": false,
  "$defs": {
    "Mandate": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Mandate identifier"
        },
        "acceptedAt": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "When the customer accepted off-session billing authorization (ISO-8601)"
        },
        "ip": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "IP address recorded at acceptance"
        },
        "type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Where the customer agreed: `web-app`, `payment-portal`, `customer-portal`, `api`, `billing-profile`, or `advanced-notification`."
        },
        "agreement": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Authorization text the customer agreed to"
        },
        "loginName": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Portal user name, if the mandate was accepted by a logged-in portal user"
        },
        "loginEmail": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Portal user email, if the mandate was accepted by a logged-in portal user"
        }
      },
      "required": [
        "id",
        "acceptedAt",
        "ip",
        "type",
        "agreement",
        "loginName",
        "loginEmail"
      ],
      "additionalProperties": false,
      "description": "Off-session billing authorization mandate, e.g. for chargeback defense (Stripe accepted_at/IP)"
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/benjipays-com-payment-method-with-mandate"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.