OpenAPI Specification
openapi: 3.1.0
info:
title: Method Account Attributes Payments API
version: '2025-12-01'
license:
name: Proprietary
url: https://methodfi.com
description: "The Method API enables you to retrieve financial data, create payments, and manage\nentities and accounts programmatically. This specification covers the public API\nsurface for version `2025-12-01`.\n\n## Authentication\n\nMost API requests require a Bearer token in the `Authorization` header.\nUse your secret key (`sk_...`) for server-side requests and public key (`pk_...`)\nfor client-side Element requests. Public Message-Level Encryption key discovery\nendpoints are documented separately and do not require authentication.\n\n## Versioning\n\nThe API version is selected via the `Method-Version` header. This spec targets\nversion `2025-12-01`. The SDK sets this header automatically.\n\n## Response Envelope\n\nMost JSON responses are wrapped in a standard envelope:\n\n```json\n{\n \"success\": true,\n \"data\": { ... },\n \"message\": null\n}\n```\n\nThe `/.well-known/jwks.json` endpoint is an exception and returns a bare JWK set.\n\n## Pagination\n\nList endpoints return pagination metadata in response headers:\n`Pagination-Page`, `Pagination-Page-Count`, `Pagination-Page-Limit`,\n`Pagination-Total-Count`, `Pagination-Page-Cursor-Prev`, `Pagination-Page-Cursor-Next`.\n\n## Expandable Fields\n\nCertain resource fields can be expanded from IDs to full objects using the\n`expand` query parameter. Maximum nesting depth is 4 levels.\n"
contact:
name: Method Financial
url: https://methodfi.com
email: team@methodfi.com
servers:
- url: https://production.methodfi.com
description: Production
- url: https://sandbox.methodfi.com
description: Sandbox
- url: https://dev.methodfi.com
description: Development
security:
- SecretKey: []
tags:
- name: Payments
description: ACH and clearing payments
paths:
/payments:
get:
operationId: listPayments
summary: List all payments
description: Returns a paginated list of payments. Results can be filtered by status, type, accounts, holders, reversal, and date range.
tags:
- Payments
security:
- SecretKey: []
parameters:
- $ref: '#/components/parameters/method_version'
- $ref: '#/components/parameters/PageParam'
- $ref: '#/components/parameters/PageLimitParam'
- $ref: '#/components/parameters/PageCursorParam'
- $ref: '#/components/parameters/FromDateParam'
- $ref: '#/components/parameters/ToDateParam'
- name: status
in: query
required: false
description: Filter payments by status.
schema:
type: string
enum:
- pending
- processing
- sent
- posted
- settled
- failed
- reversed
- canceled
- cashed
- name: source
in: query
required: false
description: Filter payments by source account ID.
schema:
type: string
pattern: ^acc_\w+$
- name: destination
in: query
required: false
description: Filter payments by destination account ID.
schema:
type: string
pattern: ^acc_\w+$
- name: type
in: query
required: false
description: Filter payments by payment type.
schema:
type: string
enum:
- standard
- clearing
- name: reversal_id
in: query
required: false
description: Filter payments by reversal ID.
schema:
type: string
pattern: ^rvs_\w+$
- name: acc_id
in: query
required: false
description: Filter payments by either the source or destination account ID.
schema:
type: string
pattern: ^acc_\w+$
- name: destination_holder_id
in: query
required: false
description: Filter payments by destination entity ID.
schema:
type: string
pattern: ^ent_\w+$
- name: source_holder_id
in: query
required: false
description: Filter payments by source entity ID.
schema:
type: string
pattern: ^ent_\w+$
- name: holder_id
in: query
required: false
description: Filter payments by either the source or destination entity ID.
schema:
type: string
pattern: ^ent_\w+$
- $ref: '#/components/parameters/expand_payments'
responses:
'200':
description: A paginated list of payments.
headers:
Pagination-Page:
$ref: '#/components/headers/Pagination-Page'
Pagination-Page-Count:
$ref: '#/components/headers/Pagination-Page-Count'
Pagination-Page-Limit:
$ref: '#/components/headers/Pagination-Page-Limit'
Pagination-Total-Count:
$ref: '#/components/headers/Pagination-Total-Count'
Pagination-Page-Cursor-Prev:
$ref: '#/components/headers/Pagination-Page-Cursor-Prev'
Pagination-Page-Cursor-Next:
$ref: '#/components/headers/Pagination-Page-Cursor-Next'
content:
application/json:
schema:
$ref: '#/components/schemas/PaymentListResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/InternalError'
post:
operationId: createPayment
summary: Create a payment
description: Creates a new payment to transfer funds from a source account to a destination account.
tags:
- Payments
security:
- SecretKey: []
parameters:
- $ref: '#/components/parameters/method_version'
- $ref: '#/components/parameters/idempotency_key'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PaymentCreateRequest'
examples:
standard:
summary: Create a standard payment
value:
source: acc_b9q2XVAnNFbp3
destination: acc_Y8u3qL9mNa1Bz
amount: 5000
description: Monthly card payment
metadata:
invoice_id: inv_1001
clearing:
summary: Create a clearing payment with a fee
value:
source: acc_b9q2XVAnNFbp3
destination: acc_Y8u3qL9mNa1Bz
amount: 25000
description: Settlement transfer
fee:
type: total
amount: 250
responses:
'200':
description: The newly created payment.
content:
application/json:
schema:
$ref: '#/components/schemas/PaymentResponse'
example:
success: true
data:
id: pmt_rPrDPEwyCVUcm
reversal_id: null
source_trace_id: null
destination_trace_id: null
source: acc_b9q2XVAnNFbp3
destination: acc_Y8u3qL9mNa1Bz
amount: 5000
description: Monthly card payment
status: pending
fund_status: transmitting
estimated_completion_date: '2026-01-19'
source_settlement_date: null
destination_settlement_date: null
source_status: null
destination_status: null
destination_payment_method: null
fee: null
type: standard
error: null
metadata:
invoice_id: inv_1001
created_at: '2026-01-15T18:30:00.000Z'
updated_at: '2026-01-15T18:30:00.000Z'
message: null
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'422':
$ref: '#/components/responses/UnprocessableEntity'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/InternalError'
/payments/{paymentId}:
get:
operationId: retrievePayment
summary: Retrieve a payment
description: Retrieves a payment by its unique identifier.
tags:
- Payments
security:
- SecretKey: []
parameters:
- $ref: '#/components/parameters/method_version'
- $ref: '#/components/parameters/PaymentIdParam'
- $ref: '#/components/parameters/expand_payments'
responses:
'200':
description: The requested payment.
content:
application/json:
schema:
$ref: '#/components/schemas/PaymentResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/InternalError'
delete:
operationId: deletePayment
summary: Delete a payment
description: Cancels a pending payment. Only payments with a `pending` status can be canceled.
tags:
- Payments
security:
- SecretKey: []
parameters:
- $ref: '#/components/parameters/method_version'
- $ref: '#/components/parameters/PaymentIdParam'
- $ref: '#/components/parameters/idempotency_key'
responses:
'200':
description: The canceled payment.
content:
application/json:
schema:
$ref: '#/components/schemas/PaymentResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'422':
$ref: '#/components/responses/UnprocessableEntity'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/InternalError'
components:
schemas:
PaymentResponse:
allOf:
- $ref: '#/components/schemas/SuccessEnvelope'
- type: object
properties:
data:
$ref: '#/components/schemas/Payment'
ErrorObject:
type: object
required:
- type
- code
- message
properties:
type:
type: string
description: Error type category.
enum:
- invalid_request
- api_error
- resource_error
code:
type: integer
description: Numeric error code. Common codes include 400 (bad request), 401 (unauthorized), 403 (forbidden), 404 (not found), 422 (unprocessable entity), 429 (rate limited), and 500 (internal error).
sub_type:
type:
- string
- 'null'
description: More specific error classification.
message:
type: string
description: Human-readable error description.
SuccessEnvelope:
type: object
description: Standard envelope for successful responses that return a single payload.
required:
- success
- data
- message
properties:
success:
type: boolean
description: Always `true` for successful responses.
data:
description: Operation-specific response payload.
message:
type:
- string
- 'null'
example:
success: true
data: {}
message: null
UpdateResourceError:
type:
- object
- 'null'
description: Error details when an account update fails.
required:
- type
- code
- sub_type
- message
properties:
type:
type: string
description: The category of update error.
enum:
- UPDATE_FAILED
code:
type: integer
description: Numeric error code (21XXX range).
enum:
- 21001
sub_type:
type: string
description: Specific update error classification.
enum:
- UPDATE_TEMPORARILY_UNAVAILABLE
message:
type: string
description: Human-readable error description.
example:
type: UPDATE_FAILED
code: 21001
sub_type: UPDATE_TEMPORARILY_UNAVAILABLE
message: Update is temporarily unavailable for this account.
ListEnvelope:
type: object
description: Standard envelope for successful responses that return a list payload.
required:
- success
- data
- message
properties:
success:
type: boolean
description: Always `true` for successful responses.
data:
description: Operation-specific list payload.
message:
type:
- string
- 'null'
example:
success: true
data: []
message: null
AccountSensitive:
type: object
description: Sensitive data for an account.
required:
- id
- account_id
- status
- type
- fields
- created_at
- updated_at
properties:
id:
type: string
description: Unique identifier for the sensitive record.
pattern: ^astv_\w+$
example: astv_aTJMbnCjw34yQ
account_id:
type: string
description: The account this sensitive data belongs to.
pattern: ^acc_\w+$
status:
type: string
description: Current status of the sensitive data request.
enum:
- completed
- pending
- failed
type:
type: string
description: The type of sensitive data.
fields:
type: array
description: List of sensitive data fields retrieved.
items:
type: object
properties:
name:
type: string
description: Name of the field.
value:
type: string
description: Value of the field.
error:
$ref: '#/components/schemas/AccountSensitiveResourceError'
created_at:
type: string
format: date-time
description: Timestamp when the sensitive record was created.
updated_at:
type: string
format: date-time
description: Timestamp when the sensitive record was last updated.
PaymentListResponse:
allOf:
- $ref: '#/components/schemas/ListEnvelope'
- type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/Payment'
PayoffResourceError:
type:
- object
- 'null'
description: Error details when a payoff sync fails.
required:
- type
- code
- sub_type
- message
properties:
type:
type: string
description: The category of payoff error.
enum:
- PAYOFF_FAILED
code:
type: integer
description: Numeric error code (18XXX range).
enum:
- 18001
sub_type:
type: string
description: Specific payoff error classification.
enum:
- PAYOFF_TEMPORARILY_UNAVAILABLE
message:
type: string
description: Human-readable error description.
example:
type: PAYOFF_FAILED
code: 18001
sub_type: PAYOFF_TEMPORARILY_UNAVAILABLE
message: Payoff is temporarily unavailable for this account.
AccountExpandableBalance:
title: AccountExpandableBalance
description: 'The latest balance ID. This field is expandable. When expanded, returns the full AccountBalance object.
'
oneOf:
- type: string
pattern: ^bal_\w+$
- type: 'null'
- $ref: '#/components/schemas/AccountBalance'
AccountACH:
type:
- object
- 'null'
description: ACH account details. Present when `type` is `ach`.
properties:
routing:
type: string
description: The ACH routing number.
number:
type: string
description: The ACH account number.
type:
type: string
description: The type of ACH account.
enum:
- checking
- savings
AccountVerificationSessionResourceError:
type:
- object
- 'null'
description: Error details when an account verification session fails.
required:
- type
- code
- sub_type
- message
properties:
type:
type: string
description: The category of verification session error.
enum:
- ACCOUNT_VERIFICATION_SESSION_FAILED
code:
type: integer
description: Numeric error code (16XXX range).
enum:
- 16001
- 16002
- 16003
- 16004
sub_type:
type: string
description: Specific verification session error classification.
enum:
- VERIFICATION_TYPE_NOT_SUPPORTED
- INVALID_DETAILS
- VERIFICATION_SESSION_ATTEMPT_LIMIT_REACHED
- MICRO_DEPOSITS_FAILED
message:
type: string
description: Human-readable error description.
example:
type: ACCOUNT_VERIFICATION_SESSION_FAILED
code: 16001
sub_type: VERIFICATION_TYPE_NOT_SUPPORTED
message: The verification type provided is not supported for the merchant.
AccountExpandableSensitive:
title: AccountExpandableSensitive
description: 'The latest sensitive ID. This field is expandable. When expanded, returns the full AccountSensitive object.
'
oneOf:
- type: string
pattern: ^astv_\w+$
- type: 'null'
- $ref: '#/components/schemas/AccountSensitive'
AccountPaymentInstrument:
type: object
description: A payment instrument for an account.
required:
- id
- account_id
- status
- type
- created_at
- updated_at
properties:
id:
type: string
description: Unique identifier for the payment instrument.
pattern: ^pmt_inst_\w+$
example: pmt_inst_aTJMbnCjw34yQ
account_id:
type: string
description: The account this payment instrument belongs to.
pattern: ^acc_\w+$
status:
type: string
description: Current status of the payment instrument.
enum:
- pending
- in_progress
- completed
type:
type: string
description: The type of payment instrument.
enum:
- card
- network_token
- inbound_achwire_payment
chargeable:
type: boolean
description: Whether this payment instrument is currently chargeable.
card:
type:
- object
- 'null'
description: Card details. Present when type is card.
properties:
number:
type: string
description: The card number.
exp_month:
type: string
description: Card expiration month.
exp_year:
type: string
description: Card expiration year.
billing_zip_code:
type: string
description: Billing zip code.
network_token:
type:
- object
- 'null'
description: Network token details. Present when type is network_token.
properties:
token:
type: string
description: The network token value.
inbound_achwire_payment:
type:
- object
- 'null'
description: ACH/wire payment details. Present when type is inbound_achwire_payment.
properties:
account_number:
type: string
description: The account number.
routing_number:
type: string
description: The routing number.
error:
$ref: '#/components/schemas/ResourceError'
created_at:
type: string
format: date-time
description: Timestamp when the payment instrument was created.
updated_at:
type: string
format: date-time
description: Timestamp when the payment instrument was last updated.
MerchantProviderIds:
type: object
properties:
plaid:
type: array
items:
type: string
mx:
type: array
items:
type: string
finicity:
type: array
items:
type: string
dpp:
type: array
items:
type: string
rpps:
type: array
items:
type: string
AccountExpandableAttribute:
title: AccountExpandableAttribute
description: 'The latest attribute ID. This field is expandable. When expanded, returns the full AccountAttribute object.
'
oneOf:
- type: string
pattern: ^acc_attr_\w+$
- type: 'null'
- $ref: '#/components/schemas/AccountAttribute'
AccountExpandableUpdate:
title: AccountExpandableUpdate
description: 'The latest update ID. This field is expandable. When expanded, returns the full AccountUpdate object.
'
oneOf:
- type: string
pattern: ^upd_\w+$
- type: 'null'
- $ref: '#/components/schemas/AccountUpdate'
AccountExpandableCardBrand:
title: AccountExpandableCardBrand
description: 'The latest card brand ID. This field is expandable. When expanded, returns the full AccountCardBrand object.
'
oneOf:
- type: string
pattern: ^cbrd_\w+$
- type: 'null'
- $ref: '#/components/schemas/AccountCardBrand'
Metadata:
type:
- object
- 'null'
additionalProperties: true
description: Arbitrary key-value metadata attached to the resource.
AccountDebitCard:
type:
- object
- 'null'
description: Debit card account details. Present when `type` is `debit_card`.
properties:
network:
type: string
description: The card network.
mask:
type: string
description: Last 4 digits of the card number.
issuer:
type: string
description: The card issuer.
MerchantType:
type: string
enum:
- auto_loan
- bank
- bnpl
- business_loan
- city
- collection
- county
- credit_builder
- credit_card
- electric_utility
- fintech
- home_equity_loan
- home_loan
- insurance
- internet_utility
- loan
- medical
- mortgage
- personal_loan
- student_loan
- student_loans
- subscription
- telephone_utility
- television_utility
- unknown
- utility
- waste_utility
- water_utility
AccountExpandablePaymentInstrument:
title: AccountExpandablePaymentInstrument
description: 'The latest payment instrument ID. This field is expandable. When expanded, returns the full AccountPaymentInstrument object.
'
oneOf:
- type: string
pattern: ^pmt_inst_\w+$
- type: 'null'
- $ref: '#/components/schemas/AccountPaymentInstrument'
PaymentResourceError:
type:
- object
- 'null'
description: Error details when a payment fails or is canceled.
required:
- type
- code
- sub_type
- message
properties:
type:
type: string
description: The category of payment error.
enum:
- PAYMENT_FAILED
- PAYMENT_CANCELED
code:
type: integer
description: Numeric error code (10XXX range).
enum:
- 10001
- 10002
- 10003
- 10004
- 10005
- 10006
- 10007
- 10008
- 10009
- 10010
sub_type:
type: string
description: Specific payment error classification.
enum:
- PAYMENT_INSUFFICIENT_FUNDS
- PAYMENT_UNAUTHORIZED
- PAYMENT_INVALID_ACCOUNT
- PAYMENT_UNAUTHORIZED_SOURCE
- PAYMENT_UNAUTHORIZED_DESTINATION
- PAYMENT_INVALID_SOURCE_ACCOUNT
- PAYMENT_INVALID_DESTINATION_ACCOUNT
- PAYMENT_REJECTED_BY_DESTINATION_INSTITUTION
- PAYMENT_REJECTED_INVALID_AMOUNT
message:
type: string
description: Human-readable error description.
example:
type: PAYMENT_FAILED
code: 10001
sub_type: PAYMENT_INSUFFICIENT_FUNDS
message: Payment failed due to insufficient funds from the source account.
AccountExpandablePayoff:
title: AccountExpandablePayoff
description: 'The latest payoff ID. This field is expandable. When expanded, returns the full AccountPayoff object.
'
oneOf:
- type: string
pattern: ^pyf_\w+$
- type: 'null'
- $ref: '#/components/schemas/AccountPayoff'
AccountSensitiveResourceError:
type:
- object
- 'null'
description: Error details when retrieving account sensitive data fails.
required:
- type
- code
- sub_type
- message
properties:
type:
type: string
description: The category of sensitive data error.
enum:
- ACCOUNT_SENSITIVE_FAILED
code:
type: integer
description: Numeric error code (17XXX range).
enum:
- 17001
sub_type:
type: string
description: Specific sensitive data error classification.
enum:
- ACCOUNT_SENSITIVE_FAILED_VERIFICATION_REQUIRED
message:
type: string
description: Human-readable error description.
example:
type: ACCOUNT_SENSITIVE_FAILED
code: 17001
sub_type: ACCOUNT_SENSITIVE_FAILED_VERIFICATION_REQUIRED
message: Account sensitive failed due to missing required verification.
AccountResourceError:
type:
- object
- 'null'
description: Error details when an account is disabled.
required:
- type
- code
- sub_type
- message
properties:
type:
type: string
description: The category of account error.
enum:
- ACCOUNT_DISABLED
code:
type: integer
description: Numeric error code (11XXX range).
enum:
- 11001
- 11002
- 11003
- 11004
- 11005
- 11006
sub_type:
type: string
description: Specific account error classification.
enum:
- ACCOUNT_INVALID_DETAILS
- ACCOUNT_UNAUTHORIZED_PAYMENT
- ACCOUNT_CLOSED
- ACCOUNT_CONSENT_WITHDRAWN
- ACCOUNT_DISABLED_INVALID_STATE
- ACCOUNT_DISABLED_HOLDER_ENTITY_DISABLED
message:
type: string
description: Human-readable error description.
example:
type: ACCOUNT_DISABLED
code: 11001
sub_type: ACCOUNT_INVALID_DETAILS
message: Account was disabled due to invalid information reported by the financial institution.
Merchant:
type: object
required:
- id
- parent_name
- name
- logo
- type
- provider_ids
- is_temp
- account_number_formats
properties:
id:
type: string
description: Unique identifier for the merchant.
example: mch_aTJMbnCjw34yQ
parent_name:
type: string
description: Name of the parent merchant group.
example: Chase
name:
type: string
description: Display name of the merchant.
example: Chase - Credit Cards
logo:
type: string
description: URL of the merchant logo.
example: https://static.methodfi.com/logos/chase.png
type:
$ref: '#/components/schemas/MerchantType'
description: Type of accounts supported by this merchant.
provider_ids:
$ref: '#/components/schemas/MerchantProviderIds'
is_temp:
type: boolean
description: Whether this is a temporary merchant entry.
account_number_formats:
type: array
items:
type: string
description: Accepted account number formats.
AccountBalance:
type: object
description: A balance record for an account.
required:
- id
- account_id
- status
- amount
- created_at
- updated_at
properties:
id:
type: string
description: Unique identifier for the balance.
pattern: ^bal_\w+$
example: bal_dKe9ehC3hEBYy
account_id:
type: string
description: The account this balance belongs to.
pattern: ^acc_\w+$
status:
type: string
description: Current status of the balance request.
enum:
- completed
- pending
- failed
amount:
type:
- number
- 'null'
description: The balance amount in cents.
error:
$ref: '#/components/schemas/BalanceResourceError'
created_at:
type: string
format: date-time
description: Timestamp when the balance was created.
updated_at:
type: string
format: date-time
description: Timestamp when the balance was last updated.
AccountClearing:
type:
- object
- 'null'
description: Clearing account details. Present when `type` is `clearing`.
properties:
type:
type: string
description: The type of clearing account.
enum:
- single_use
- multi_use
routing:
type: string
description: The clearing routing number.
number:
type: string
description: The clearing account number.
AccountPayoff:
type: object
description: A payoff record for an account.
required:
- id
- account_id
- status
- amount
- term
- per_diem_amount
- created_at
- updated_at
properties:
id:
type: string
description: Unique identifier for the payoff.
pattern: ^pyf_\w+$
example: pyf_dKe9ehC3hEBYy
account_id:
type: string
description: The account this payoff belongs to.
pattern: ^acc_\w+$
status:
type: string
description: Current status of the payoff request.
enum:
- completed
- pending
- failed
amount:
type:
- number
- 'null'
description: The payoff amount in cents.
term:
type:
- number
- 'null'
description: Number of days the payoff amount is valid.
per_diem_amount:
type:
- number
- 'null'
description: Per diem interest amount in cents.
error:
$ref: '#/components/schemas/PayoffResourceError'
created_at:
type: string
format: date-time
# --- truncated at 32 KB (78 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/methodfi/refs/heads/main/openapi/methodfi-payments-api-openapi.yml