For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get Commissions

Retrieves commission configurations with comprehensive filtering capabilities.

This endpoint returns commission rates for various transaction types, currencies, and customers, allowing partners to view their commission structures and overrides.

Endpoint

GET/v2/billing/commission

Link

Request

Authentication

An API key is required for authentication. Include it in the Authorization header.

  • Header: Authorization

  • Value: Your API key token

HTTP Method & URL

  • Method: GET

  • URL: https://stagep.tst-apidmndelss.com/v2/billing/commission

Query Parameters

Currency & Transaction Filters

Parameter
Type
Description
Required
Example

currencyIsoFrom

string

Source currency ISO code.

No

USD

currencyIsoTo

string

Target currency ISO code.

No

EUR

operationType

string

Type of operation (see values).

No

TRANSFER

paymentType

string

Payment method type (see values).

No

SWIFT

Customer Filters

Parameter
Type
Description
Required
Example

customerCuid

string

Customer identifier.

No

cust_abc123

customerName

string

Customer name.

No

Acme Corp

withAllCustomers

boolean

Include all customers.

No

true

Date Range Filters

Parameter
Type
Description
Required
Example

fromCreatedAt

string

Start creation date (ISO format).

No

2024-01-01T00:00:00Z

toCreatedAt

string

End creation date (ISO format).

No

2024-03-31T23:59:59Z

fromUpdatedAt

string

Start update date (ISO format).

No

2024-01-01T00:00:00Z

toUpdatedAt

string

End update date (ISO format).

No

2024-03-31T23:59:59Z

Operation Type Values

  • NOTSET - No specific type

  • DEPOSIT - Deposit operations

  • TRANSFER - Transfer operations

  • WITHDRAW - Withdrawal operations

  • COMMISSION - Commission operations

  • EXCHANGE - Currency exchange

  • CORRECTING - Correction operations

Payment Type Values

  • PAYMENT_TYPE_NOT_SET - No specific payment type

  • EMPTY - Empty payment type

  • ACH - Automated Clearing House

  • FEDWIRE - Fedwire transfers

  • SWIFT - SWIFT transfers

  • CRYPTO - Cryptocurrency

  • EFT - Electronic Funds Transfer

  • SEPA_CT - SEPA Credit Transfer

  • IMPS - Immediate Payment Service

Headers

Key
Value
Required

Authorization

Bearer <JWT>

Yes

Accept

application/json

Yes


Response (200 OK)

Returns an array of commission configurations matching the filter criteria.

Response Fields

Commission Object (items[])

Field
Type
Description
Example

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)

Field
Type
Description
Example

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

Basic Commission Query (cURL)

Filter by Currency and Operation

Filter by Customer and Date Range


Error Responses

  1. Unauthorized:

  2. Invalid Date Format:

  3. Invalid Operation Type:


Notes

Commission Hierarchy

  • Partner rates: Custom rates specific to your partner account

  • Default rates: Base rates that apply when no partner rates exist

  • Customer-specific overrides: Rates that apply to specific customers

Filtering Logic

  • Multiple filters are combined with AND logic

  • Omitted filters return all matching records

  • Date ranges are inclusive

  • Currency filters can be used for conversion rate commissions

Best Practices

  • Cache commission data to reduce API calls

  • Use specific filters to narrow down results

  • Monitor updatedAt for changes in commission structures

  • Handle null customer fields for general commission rates

Common Use Cases:

  • Displaying commission rates in partner dashboards

  • Calculating expected earnings from transactions

  • Auditing commission structures and changes

  • Customer-specific rate negotiations

Rate Calculation Example: For a $1000 transfer with 0.5% + $2.50 commission:

Data Freshness:

  • Commission rates may change based on market conditions

  • Always use the latest rates for accurate calculations

  • Consider implementing rate change notifications

Request sample

Response sample

Last updated