Adhoc Fees
Adhoc fees are flexible charges that can be applied either in conjunction with a payment or as standalone fees. They serve several business purposes:
- Post-Payment Charges: Add additional fees after a payment has been processed (e.g., late fees, service charges)
- Standalone Fees: Create charges independent of any payment (e.g., membership fees, administrative fees)
Key features of Adhoc fees:
- Support both positive and negative amounts (when associated with payments)
- Provide detailed transaction history and reporting
- Settle according to configured settlement schedules
- Include customizable descriptions for clear record-keeping
Adhoc fees require specific account configuration and may have limits on amounts and frequency. Contact your account representative to enable and configure Adhoc fee settings for your account.
API Specification
For detailed API endpoints and request/response schemas for Adhoc fees, see the Payments API specification.
Creating Adhoc fees for a payment
Requirements
- Your Adhoc Fee Settings must be enabled (Contact your account representative)
Steps
Create a payment using the Accept Payments guide
Once the payment is created, call the
/fees
endpoint with:{
"payment_id": "pmt_123",
"amount": 1000, // Amount in cents
"description": "Late payment fee"
}Note: You can create multiple Adhoc fees for a single payment, both positive and negative. The sum of all the fees must net to less than the payment amount.
The fee will be created and associated with the payment.
Note: The fee will be settled immediately if the payment has already been settled. If the payment is not settled, the fee will settle when the payment settles.
The fee can be fetched with a call to the
/fees/:id
endpoint.The fee transaction can be viewed in the transaction history using the
/transactions/search
endpoint.
Creating Standalone Adhoc fees
Requirements
- Your Adhoc Fee Settings must be enabled (Contact your account representative)
- The Adhoc fee amount must be within your configured limits
Steps
Call the
/fees
endpoint with:{
"amount": 1000, // Amount in cents
"description": "Cash payment fee"
}Note: The amount must be positive and less than the limits defined in your Adhoc fee settings.
The fee will be created and processed independently. Note: The fee will be settled according to your configured settlement schedule.
The fee can be fetched with a call to the
/fees/:id
endpoint.The fee transaction can be viewed in the transaction history using the
/transactions/search
endpoint.