Getting Started
This guide walks you through adding payment method details to customer accounts using the Rime API. You’ll make your first successful API call to configure SEPA bank account information that enables seamless fund transfers.Payment methods are automatically used in order processing. The primary
payment method is selected by default for all transactions.
Prerequisites
Before adding payment methods, ensure you have:- Authentication token - Follow our authentication guide to get your access token
- Customer account - The
account_id
for your customer who needs payment method setup - Bank account details - Valid IBAN and account holder information for SEPA transfers
Payment Method Requirements
SEPA payment methods require specific information: Required fields:- Payment type (
type
) - Must besepa
(only supported type currently) - IBAN (
iban
) - Valid European bank account number - Account holder (
account_holder_name
) - Name on the bank account
- Set to primary payment method details (
is_primary
) - Set totrue
to make this the default payment method
The primary payment method will be automatically selected for new orders on an
account. Only one payment method can be marked as primary per account.
Step-by-Step Implementation
Step 1: Prepare payment method data
Structure your payment method data with the required SEPA information:Step 2: Add the payment method
Create the payment method for your customer account:Step 3: Handle the response
A successful payment method creation returns a201 Created
status with the complete payment method details:
Automatic Order Integration
Payment methods are automatically used in order processing. Primary payment
methods are selected by default for all buy and sell orders.
Primary Payment Method Management
Setting a primary payment method
When you create a payment method withis_primary: true
, it automatically becomes the default for order processing:
- Buy orders: Funds transfer from customer’s primary payment method
- Sell orders: Proceeds transfer to customer’s primary payment method
- Automatic selection: No need to specify payment method in order requests
Managing multiple payment methods
You can add multiple payment methods per account, but only one can be primary:Troubleshooting
400 Bad Request - Invalid IBAN
400 Bad Request - Invalid IBAN
Cause: Invalid IBAN format or non-European bank accountSolution: Ensure the IBAN follows the correct European format and is a valid bank account number
404 Not Found - Account Not Found
404 Not Found - Account Not Found
Cause: Invalid
account_id
or account doesn’t existSolution: Verify the account ID exists and belongs to your distributor422 Unprocessable Entity - Validation Error
422 Unprocessable Entity - Validation Error
Cause: Missing required fields or invalid data formatSolution: Ensure all required fields are provided with correct data types
Next Steps
After adding payment methods to your customer accounts:- Buy shares - Execute buy orders using the configured payment method
- Sell shares - Process sell orders with automatic payment routing
- Get portfolio information - View customer holdings and transaction history