FarPay API Documentation
Welcome to the FarPay API documentation. This comprehensive guide will help you integrate with FarPay's payment processing platform to handle invoices, payments, customer management, and recurring payment agreements.
Quick Start
- Get your API key from the FarPay web application
- Test the API using our interactive documentation
- Review examples in our integration examples
Base URL
https://api.farpay.io/v2
Authentication
All API requests require an API key in the header:
X-API-KEY: your-api-key-here
Accept: application/json
Core Concepts
| Resource | Description | Endpoint |
|---|---|---|
| Customers | Manage customer information and payment agreements | /customers |
| Orders | Create payment flows and agreements | /orders |
| Invoices | Generate and manage invoices | /invoices |
| Payments | Track payment history and process refunds | /payments |
| Agreements | Manage recurring payment instruments | /agreements |
| Payment Sets | Access aggregated payment information | /paymentsets |
| Deliveries | Upload files for batch processing | /deliveries |
Payment Methods Supported
- MobilePay - Mobile payment solution
- Cards - Visa, MasterCard, Dankort
- Betalingsservice - Direct debit for private customers
- Leverandørservice - Direct debit for businesses
Date Formats
- Input dates:
YYYY-MM-DD - Response dates:
YYYY-MM-DDTHH:mm:ssZ
Getting Help
- API Testing: Use our interactive documentation
- Support: Contact us through our website
- Examples: Check our integration examples
Documentation Sections
Learn how to obtain and use your API key, understand request headers, and get started with the API.
Manage customer information, create payment agreements, and handle customer data.
Create payment flows, manage user interactions, and handle payment agreements.
Generate invoices, track payment status, and manage invoice lifecycle.
Configure invoice delivery behavior and payment flow overrides using the Invoice Delivery Extension.
Configure how invoices are sent to customers using different channels and scheduling options.
Process refunds for paid invoices using the refund endpoint.
Process immediate card payments when creating invoices using the schedulePayment=Instant parameter.
View payment history, process refunds, and track payment status.
Manage recurring payment instruments and payment agreements.
Access aggregated payment information for reconciliation and reporting.
Upload files for batch processing and file-based integrations.
Upload bill files for batch processing using the FarPay Bill format, including Overførselsservice (OS) bills.
Access API version information and system metadata.
Complete integration examples and use case scenarios.
Latest updates and changes to the API.