When using Subscription Billing, sometimes you may have the need to create a one-time fee.
To create a one time fee, create a CUSTOM Fee
:
attention
This endpoint is deprecated and will be removed in a future release.
Make sure your requests use the latest version of Finix's API and endpoints. For more information, see Versioning.
curl 'https://finix.sandbox-payments-api.com/fees' \
-H 'Content-Type: application/json' \
-H 'Finix-Version: 2022-02-01' \
-u USimz3zSq5R2PqiEBXY6rSiJ:8bacba32-9550-48ff-b567-fe7648947041 \
-d '{
"amount": 1000,
"currency": "USD",
"fee_subtype": "CUSTOM",
"fee_type": "CUSTOM",
"label": "April_Performance_Analytics_Fees",
"merchant_id": "MUhQVWbSdd3Da68RKpfodqEV",
"settlement_delay_days": 3
}'
A successful response returns a 200 and the newly created fee.
{
"id": "FErDoHFmiNJAoKXVqU1tqNbQ",
"created_at": "2022-10-10T04:34:21.70Z",
"updated_at": "2022-10-10T04:34:21.70Z",
"amount": 1000,
"currency": "USD",
"display_name": "April_Performance_Analytics_Fees",
"fee_subtype": "CUSTOM",
"fee_type": "CUSTOM",
"label": "April_Performance_Analytics_Fees",
"linked_id": null,
"linked_type": null,
"merchant": "MUhQVWbSdd3Da68RKpfodqEV",
"tags": {},
"_links": {
"self": {
"href": "https://finix.sandbox-payments-api.com/fees/FErDoHFmiNJAoKXVqU1tqNbQ"
},
"merchant": {
"href": "https://finix.sandbox-payments-api.com/merchants/MUhQVWbSdd3Da68RKpfodqEV"
}
}
}