Skip to main content
This endpoint allows a user to calculate payment charges associated with different payment methods. It supports scenarios including:
  • Customer transactions (subAction = "transaction")
  • Money transfers (subAction = "transfer")
Charges are determined based on:
  • Selected payment method
  • Amount and currency
  • Organisation and customer country

Authentication

X-Auth-Token
string
required
Authentication token obtained after login.
uuid
string
required
Device UUID used for request tracking.
platform
string
required
Platform identifier (e.g., “WEB”, “ANDROID”, “IOS”).

Request Body

pcn
string
Payment code number. Required if subAction = "transaction".
subAction
string
required
Action type. Accepted values:
  • "transaction"
  • "transfer"
payment_method
string
required
Selected payment method. Must match PaymentMethod enum, e.g., "ONLINE_CARD_PAYMENT", "BANK_TRANSFER".
currency
string
Currency code for the transfer (required if subAction = "transfer").
amount
string
Amount for the transfer (required if subAction = "transfer").

Code Examples

curl --request POST \
  --url "https://remitjunction.fincode.software/api/v6/services/paymentmanagement/payment-methods-charges" \
  --header 'Content-Type: application/json' \
  --header 'X-Auth-Token: your_auth_token' \
  --header 'uuid: your_device_uuid' \
  --header 'platform: WEB' \
  --data '{
    "subAction": "transfer",
    "payment_method": "BANK_TRANSFER",
    "currency": "USD",
    "amount": "150"
  }'

Use Cases

1. Retrieve Charges for a Transfer

await paymentMethodsCharges({
  subAction: "transfer",
  payment_method: "BANK_TRANSFER",
  currency: "USD",
  amount: "150"
});

2. Retrieve Charges for a Transaction

await paymentMethodsCharges({
  subAction: "transaction",
  pcn: "PCN123",
  payment_method: "ONLINE_CARD_PAYMENT"
});