Payment Settings
Create New Payment Setting
/payment-setting/
POST
This endpoint requires authentication. Include your Bearer token in the Authorization header.
Description
/payment-setting/
This endpoint is responsible for creating a new payment setting.
Authorization:
- Required role:
useror higher
POST
Request Payload:
Paystack side effect on
BankWireTransfer settings: if the workspace has
Paystack enabled, creating a BankWireTransfer setting triggers a live
Paystack transfer-recipient resolution before the row is saved. Royalti first
looks for a cached PaystackRecipientCode on another setting in the same
workspace with a matching accountNumber/bankCode; if none exists, it calls
Paystack to create a new transfer recipient and stores the returned code on
settings.PaystackRecipientCode. For NGN accounts (settings.currency: NGN
or settings.countryCode: NG), a failure to resolve or create the recipient
makes the whole request fail with 400 — this is a live external-API call on
an otherwise generic CRUD endpoint, not a background/best-effort step.
Request Body Examples
Bank Wire Transfer:Code Examples
Authorizations
Body
application/json