Set Commission
Creates or updates a commission configuration for specific transaction parameters.
This endpoint allows partners to set custom commission rates for various currency pairs, operation types, and payment methods, with optional customer-specific overrides.
Endpoint
POST/v2/billing/commission
Link
Request
Authentication
An API key is required for authentication. Include it in the Authorization header.
Header:
AuthorizationValue: Your API key token
HTTP Method & URL
Method:
POSTURL:
https://stagep.tst-apidmndelss.com/v2/billing/commission
Headers
Authorization
Bearer <JWT>
Yes
Accept
application/json
Yes
Content-Type
application/json
Yes
Request Body (JSON)
Required Parameters
currencyIsoFrom
string
Source currency ISO code.
Yes
USD
currencyIsoTo
string
Target currency ISO code.
Yes
EUR
percent
number
Percentage commission rate.
Yes
0.5
fixed
number
Fixed commission amount.
Yes
2.5
Optional Parameters
customerId
string
Customer ID for specific override.
No
cust_abc123
operationType
string
Type of operation (see values).
No
TRANSFER
paymentType
string
Payment method type (see values).
No
SWIFT
Operation Type Values
NOTSET- Applies to all operation typesDEPOSIT- Deposit operationsTRANSFER- Transfer operationsWITHDRAW- Withdrawal operationsCOMMISSION- Commission operationsEXCHANGE- Currency exchangeCORRECTING- Correction operations
Payment Type Values
EMPTY- Applies to all payment typesACH- Automated Clearing HouseFEDWIRE- Fedwire transfersSWIFT- SWIFT transfersCRYPTO- CryptocurrencyEFT- Electronic Funds TransferSEPA_CT- SEPA Credit TransferIMPS- Immediate Payment Service
Example Request Body (General Commission):
Example Request Body (Customer-Specific):
Response (200 OK)
Returns the created or updated commission configuration.
Response Fields
Commission Object (item)
currencyIsoFrom
string
Source currency ISO code.
USD
currencyIsoTo
string
Target currency ISO code.
EUR
operationType
string
Operation type.
TRANSFER
paymentType
string
Payment method type.
SWIFT
createdAt
string
Commission creation timestamp.
2024-01-15T10:30:00Z
updatedAt
string
Last update timestamp.
2024-03-20T14:22:00Z
customerCuid
string
Customer identifier.
cust_abc123
customerName
string
Customer name.
Acme Corporation
Commission Structure (commission)
partner
object
Partner-specific commission rates.
→ percent
number
Percentage commission rate.
0.5
→ fixed
number
Fixed commission amount.
2.5
default
object
Default system commission rates.
→ percent
number
Percentage commission rate.
1.0
→ fixed
number
Fixed commission amount.
5.0
Example Response:
Examples
Set General Commission Rate (cURL)
Set Customer-Specific Commission
Set Exchange-Specific Commission
Error Responses
Missing Required Fields:
Invalid Currency Code:
Invalid Operation Type:
Customer Not Found:
Unauthorized:
Notes
Commission Hierarchy
General rates: Apply when no specific customer or operation type matches
Operation-specific: Override general rates for specific operation types
Payment-specific: Override for specific payment methods
Customer-specific: Highest priority, override all other rates
Rate Validation
Percentage rates should be between 0-100
Fixed rates should be positive values
Rates are validated against business rules
Some rate combinations may require approval
Best Practices
Use specific parameters for precise commission targeting
Test commission calculations before setting rates
Monitor rate changes and their impact on transactions
Document rate changes for audit purposes
Common Use Cases:
Setting competitive commission rates for specific markets
Creating custom rates for VIP customers
Adjusting rates for specific payment methods
Implementing promotional pricing strategies
Rate Calculation Example: For a $1000 transfer with 0.5% + $2.50 commission:
Update Behavior:
Creating a commission with existing parameters updates the existing rate
Rates are effective immediately after successful API call
Historical transactions use rates effective at transaction time
Last updated

