readme

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

  1. Get your API key from the FarPay web application
  2. Test the API using our interactive documentation
  3. 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

ResourceDescriptionEndpoint
CustomersManage customer information and payment agreements/customers
OrdersCreate payment flows and agreements/orders
InvoicesGenerate and manage invoices/invoices
PaymentsTrack payment history and process refunds/payments
AgreementsManage recurring payment instruments/agreements
Payment SetsAccess aggregated payment information/paymentsets
DeliveriesUpload 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


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.