A customer represents a person or business you bill through Borga. UseDocumentation Index
Fetch the complete documentation index at: https://docs.borga.is/llms.txt
Use this file to discover all available pages before exploring further.
POST /v1/customers to create a record, attach billing address and tax details, and then reference the customer id when creating subscriptions or payments.
Create a customer
POST /v1/customers
Creates a new customer object.
Request parameters
Email address of the customer. Must be a valid email format.
Full name of the customer.
Phone number of the customer.
Icelandic national ID (kennitala). Ten-digit identifier used for individuals and legal entities in Iceland.
Your own identifier for this customer — an ID from your database or CRM. Stored as-is and returned in all responses.
VAT registration number for the customer. Included on invoices when present.
Set of key-value pairs you can attach to the customer. Values must be strings.
Primary billing address line.
Secondary billing address line (apartment, suite, etc.).
City for the billing address.
Postal code for the billing address.
Two-letter ISO 3166-1 alpha-2 country code (e.g.
IS, GB, DE).Response fields
Unique identifier for the customer (e.g.
cus_xxx).Customer email address.
Customer full name.
Customer phone number.
Icelandic national ID.
Your reference identifier for this customer.
VAT registration number.
Key-value pairs attached to the customer.
Structured billing address.
ISO 8601 timestamp of when the customer was created.
List customers
GET /v1/customers
Returns a paginated list of customers, ordered by creation date descending.
Query parameters
Cursor for pagination. Pass the
id of the last customer from the previous page to retrieve the next page.Maximum number of customers to return per page.
Response fields
Array of customer objects.
Whether more customers exist beyond this page.
Retrieve a customer
GET /v1/customers/{id}
Retrieves the details of an existing customer.
Path parameters
The ID of the customer to retrieve.
Response fields
Unique customer identifier.
Customer email address.
Customer full name.
Customer phone number.
Icelandic national ID.
Your reference identifier for this customer.
VAT registration number.
Key-value pairs attached to the customer.
Structured billing address.
ISO 8601 timestamp of when the customer was created.
Update a customer
PATCH /v1/customers/{id}
Updates an existing customer. Only the fields you provide are changed — all other fields remain unchanged.
Path parameters
The ID of the customer to update.
Request parameters
Updated email address.
Updated full name.
Updated phone number.
Updated Icelandic national ID.
Updated external reference identifier.
Updated VAT registration number.
Updated metadata. Replaces the existing metadata object entirely.
Updated primary billing address line.
Updated secondary billing address line.
Updated billing city.
Updated billing postal code.
Updated two-letter ISO country code.