/payment-setting/
This endpoint is responsible for creating a new payment setting.
Method:POST
Request Payload:
Field | Type | Required | Description |
---|---|---|---|
name | string | Yes | The name of the payment setting |
type | string | Yes | The type of the payment setting |
settings | object | Yes | The settings/configuration of the payment setting. Some of the sample properties are “accountName”, “accountNumber”, “bankName”, “routingNumber”, “swiftCode”, “IBAN”, indicating details related to the payment method configuration |
isDefault | boolean | No | Indicates whether the payment setting is the default one |
memo | string | No | Any additional notes or comments about the payment setting |
Request Body Examples
Bank Wire Transfer:Authentication
This endpoint requires authentication. Include your bearer token in the Authorization header.Request Body
Request Schema
Field | Type | Required | Description |
---|---|---|---|
name | string | ✅ | The name of the payment setting |
type | string | ✅ | The type of the payment setting |
settings | object | ✅ | The settings/configuration of the payment setting |
isDefault | boolean | ❌ | Indicates whether the payment setting is the default one |
memo | string | ❌ | Any additional notes or comments about the payment setting |
Responses
✅ 201 - Payment setting created successfully
⚠️ 400 - Bad Request - Invalid data
⚠️ 401 - Unauthorized
❌ 500 - Internal Server Error
Tags
Payment Settings
Authorizations
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Body
application/json
The name of the payment setting
The type of the payment setting
Available options:
BankWireTransfer
, PayPal
, Card
, Crypto
The settings/configuration of the payment setting
Indicates whether the payment setting is the default one
Any additional notes or comments about the payment setting