API reference · Financial
POST/api/v1/financial/payment-methods

Create payment method

Creates a payment method using FinancialService.createPaymentMethod().

RBAC · financial

Request body

Content type: application/json · schema FinancialCreatePaymentMethodBody

client_idstring <uuid>Required
typestringRequired
Enum: credit_cardbank_account
last4stringRequired
min length 4 · max length 4
exp_monthstring
exp_yearstring
is_defaultboolean
is_deletedboolean

Response body

Success response 201 · schema FinancialInvoiceApiSuccess

dataanyOfRequired
anyOf (option 1)object
anyOf (option 2)array of object
itemsobject
metaobject

Response codes

201
Payment method created.
400
Invalid request payload.
401
API key missing/invalid.
403
financial:create permission denied.
500
Unexpected payment method creation failure.