Pull customers, leases, invoices, payments and more into your data warehouse, general ledger, BI tools or core banking system. Versioned, read-only, and secured with scoped keys.
The Halycon REST API gives your systems read access to the records your teams create in Halycon. It uses standard HTTPS requests and JSON responses.
Base URLhttps://{your-halycon-domain}/api/public/v1
Formatapplication/json
MethodsGET
AuthBearer hk_…
Your base URL is your Halycon environment's domain. We give it to you during onboarding, when API access is enabled.
Quickstart
Create a key. An administrator creates an API key in Halycon settings and chooses its scopes, such as leases:read. The key is shown once; store it in your secrets manager.
Make a request. Send the key as a bearer token to any resource you have a scope for.
Page through results. Use page and per_page until page reaches total_pages.
Authentication
Every request needs an API key in the Authorization header. Keys start with hk_ followed by 48 hexadecimal characters.
Authorization: Bearer hk_3f9a…
Scoped: each key lists the resources it may read, for example invoices:read.
Stored as a hash: Halycon never stores the key itself, so it can't be recovered, only replaced.
Expiry and revocation: keys can expire on a date and can be revoked instantly.
Origin allow-list: if a key is used from a browser, the request's origin must be on the key's allow-list.
API explorer
Build a request and see the code and an example response. Responses use sample data.
Request
GET
Example response 200 OK
Pagination
List requests return up to 25 records by default. Use per_page (1 to 100) and page (from 1). Every list response includes a pagination object.
Any field a resource returns can be used as an exact-match filter, for example /invoices?status=overdue or /payments?lease_id=…. Sort with order (any returned field, default created_at) and direction (asc or desc, default desc). Unknown parameters are ignored.
Errors
Errors return a JSON body with an error code and a matching HTTP status.
Status
Code
Meaning
401
missing_authorization
No bearer key was sent.
401
invalid_key
The key is malformed or doesn't exist.
401
revoked_key
The key was revoked by an administrator.
401
expired_key
The key passed its expiry date.
403
insufficient_scope
The key lacks the resource's read scope. The response names the scope required.
403
origin_not_allowed
The request came from a browser origin not on the key's allow-list.
403
global_api_access_not_enabled
API access hasn't been enabled for your environment yet.
403
unsupported_entity_scope
The key is scoped to an entity or branch, which isn't supported yet.
404
unknown_resource
The resource name isn't recognised. The response lists available resources.
404
not_found
No record with that ID.
400
invalid_pagination
page or per_page isn't a positive whole number, or per_page is over 100.
Resources
Each resource supports GET /{resource} to list and GET /{resource}/{id} to retrieve one record. Scope: {resource}:read.
/customersLessees and borrowers.
Field
Type
Description
id
uuid
Customer ID
legal_name
string
Registered name
email
string
Primary email
phone
string
Primary phone
country
string
Country code
lifecycle_status
string
Lifecycle stage
created_at
timestamp
Created
/applicationsFinancing applications in origination and credit.
Field
Type
Description
id
uuid
Application ID
customer_id
uuid
Applicant
stage
string
Pipeline stage
requested_amount
number
Amount requested
currency
string
ISO currency
tenor_months
integer
Term in months
created_at
timestamp
Created
/quotesPriced offers issued to customers.
Field
Type
Description
id
uuid
Quote ID
customer_id
uuid
Customer
amount
number
Quoted amount
currency
string
ISO currency
term_months
integer
Term in months
status
string
Quote status
created_at
timestamp
Created
/leasesActive and closed lease agreements.
Field
Type
Description
id
uuid
Lease ID
customer_id
uuid
Lessee
principal
number
Amount financed
currency
string
ISO currency
status
string
Lease status
start_date
date
Start
end_date
date
End
tenor_months
integer
Term in months
created_at
timestamp
Created
/invoicesInstalment and fee invoices.
Field
Type
Description
id
uuid
Invoice ID
customer_id
uuid
Customer
lease_id
uuid
Lease
amount
number
Invoice amount
currency
string
ISO currency
status
string
draft, sent, partial, paid, overdue or void
due_date
date
Due date
created_at
timestamp
Created
/paymentsPayments received and their allocation.
Field
Type
Description
id
uuid
Payment ID
lease_id
uuid
Lease
amount
number
Amount received
currency
string
ISO currency
allocation_status
string
Allocation state
reconciliation_status
string
Reconciliation state
reference
string
Provider or bank reference
received_at
timestamp
When received
created_at
timestamp
Recorded
/assetsFinanced assets and the lease they belong to.
Field
Type
Description
id
uuid
Asset ID
serial_number
string
Serial or chassis number
category
string
Asset category
status
string
Asset status
current_lease_id
uuid
Lease it is on
created_at
timestamp
Created
/suppliersAsset suppliers and dealers.
Field
Type
Description
id
uuid
Supplier ID
name
string
Supplier name
country
string
Country code
contact_email
string
Contact email
created_at
timestamp
Created
Connectors
Beyond the API, Halycon connects to provider accounts you already hold. Credentials are stored on the server and each connection is tested when saved.
Give each integration its own key with only the scopes it needs.
Keep keys server-side. Only use a key in a browser with an origin allow-list.
Set an expiry date and rotate keys on a schedule.
Sync incrementally: sort by created_at and stop when you reach records you already have.
Back off and retry on network errors; requests are read-only and safe to repeat.
Versioning
The API is versioned in the path (/v1). New fields and resources can be added to v1. Changes that would break an existing integration ship in a new version.
Need a resource or field that isn't here?Tell us what you're building and we'll show you how.
This site uses only essential storage to work. With your permission we'll also measure visits anonymously, without advertising cookies, to see which pages help people. Cookie policy