Create billing entity
curl --request POST \
--url https://api.getlago.com/api/v2/billing_entities \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"billing_entity": {
"code": "example_code",
"name": "example",
"default_currency": "example",
"country": "example",
"address_line1": "example",
"address_line2": "example",
"phone": "example",
"city": "example",
"state": "example",
"zipcode": "example",
"einvoicing": false,
"email": "billing@acme.example",
"legal_name": "example",
"legal_number": "example",
"timezone": "example",
"email_settings": [
"invoice.finalized"
],
"document_numbering": "per_customer",
"document_number_prefix": "example",
"tax_identification_number": "example",
"finalize_zero_amount_invoice": false,
"invoice_footer": "Example",
"invoice_grace_period": 1,
"document_locale": "example",
"eu_tax_management": false,
"periodic_invoice_issuing_date_anchor": "current_period_end",
"periodic_invoice_issuing_date_adjustment": "keep_anchor",
"logo": "data:image/png;base64,aGVsbG8=",
"tax_codes": [
"vat"
],
"invoice_custom_section_codes": [
"legal"
]
}
}
'import requests
url = "https://api.getlago.com/api/v2/billing_entities"
payload = { "billing_entity": {
"code": "example_code",
"name": "example",
"default_currency": "example",
"country": "example",
"address_line1": "example",
"address_line2": "example",
"phone": "example",
"city": "example",
"state": "example",
"zipcode": "example",
"einvoicing": False,
"email": "billing@acme.example",
"legal_name": "example",
"legal_number": "example",
"timezone": "example",
"email_settings": ["invoice.finalized"],
"document_numbering": "per_customer",
"document_number_prefix": "example",
"tax_identification_number": "example",
"finalize_zero_amount_invoice": False,
"invoice_footer": "Example",
"invoice_grace_period": 1,
"document_locale": "example",
"eu_tax_management": False,
"periodic_invoice_issuing_date_anchor": "current_period_end",
"periodic_invoice_issuing_date_adjustment": "keep_anchor",
"logo": "data:image/png;base64,aGVsbG8=",
"tax_codes": ["vat"],
"invoice_custom_section_codes": ["legal"]
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
billing_entity: {
code: 'example_code',
name: 'example',
default_currency: 'example',
country: 'example',
address_line1: 'example',
address_line2: 'example',
phone: 'example',
city: 'example',
state: 'example',
zipcode: 'example',
einvoicing: false,
email: 'billing@acme.example',
legal_name: 'example',
legal_number: 'example',
timezone: 'example',
email_settings: ['invoice.finalized'],
document_numbering: 'per_customer',
document_number_prefix: 'example',
tax_identification_number: 'example',
finalize_zero_amount_invoice: false,
invoice_footer: 'Example',
invoice_grace_period: 1,
document_locale: 'example',
eu_tax_management: false,
periodic_invoice_issuing_date_anchor: 'current_period_end',
periodic_invoice_issuing_date_adjustment: 'keep_anchor',
logo: 'data:image/png;base64,aGVsbG8=',
tax_codes: ['vat'],
invoice_custom_section_codes: ['legal']
}
})
};
fetch('https://api.getlago.com/api/v2/billing_entities', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.getlago.com/api/v2/billing_entities",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'billing_entity' => [
'code' => 'example_code',
'name' => 'example',
'default_currency' => 'example',
'country' => 'example',
'address_line1' => 'example',
'address_line2' => 'example',
'phone' => 'example',
'city' => 'example',
'state' => 'example',
'zipcode' => 'example',
'einvoicing' => false,
'email' => 'billing@acme.example',
'legal_name' => 'example',
'legal_number' => 'example',
'timezone' => 'example',
'email_settings' => [
'invoice.finalized'
],
'document_numbering' => 'per_customer',
'document_number_prefix' => 'example',
'tax_identification_number' => 'example',
'finalize_zero_amount_invoice' => false,
'invoice_footer' => 'Example',
'invoice_grace_period' => 1,
'document_locale' => 'example',
'eu_tax_management' => false,
'periodic_invoice_issuing_date_anchor' => 'current_period_end',
'periodic_invoice_issuing_date_adjustment' => 'keep_anchor',
'logo' => 'data:image/png;base64,aGVsbG8=',
'tax_codes' => [
'vat'
],
'invoice_custom_section_codes' => [
'legal'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.getlago.com/api/v2/billing_entities"
payload := strings.NewReader("{\n \"billing_entity\": {\n \"code\": \"example_code\",\n \"name\": \"example\",\n \"default_currency\": \"example\",\n \"country\": \"example\",\n \"address_line1\": \"example\",\n \"address_line2\": \"example\",\n \"phone\": \"example\",\n \"city\": \"example\",\n \"state\": \"example\",\n \"zipcode\": \"example\",\n \"einvoicing\": false,\n \"email\": \"billing@acme.example\",\n \"legal_name\": \"example\",\n \"legal_number\": \"example\",\n \"timezone\": \"example\",\n \"email_settings\": [\n \"invoice.finalized\"\n ],\n \"document_numbering\": \"per_customer\",\n \"document_number_prefix\": \"example\",\n \"tax_identification_number\": \"example\",\n \"finalize_zero_amount_invoice\": false,\n \"invoice_footer\": \"Example\",\n \"invoice_grace_period\": 1,\n \"document_locale\": \"example\",\n \"eu_tax_management\": false,\n \"periodic_invoice_issuing_date_anchor\": \"current_period_end\",\n \"periodic_invoice_issuing_date_adjustment\": \"keep_anchor\",\n \"logo\": \"data:image/png;base64,aGVsbG8=\",\n \"tax_codes\": [\n \"vat\"\n ],\n \"invoice_custom_section_codes\": [\n \"legal\"\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.getlago.com/api/v2/billing_entities")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"billing_entity\": {\n \"code\": \"example_code\",\n \"name\": \"example\",\n \"default_currency\": \"example\",\n \"country\": \"example\",\n \"address_line1\": \"example\",\n \"address_line2\": \"example\",\n \"phone\": \"example\",\n \"city\": \"example\",\n \"state\": \"example\",\n \"zipcode\": \"example\",\n \"einvoicing\": false,\n \"email\": \"billing@acme.example\",\n \"legal_name\": \"example\",\n \"legal_number\": \"example\",\n \"timezone\": \"example\",\n \"email_settings\": [\n \"invoice.finalized\"\n ],\n \"document_numbering\": \"per_customer\",\n \"document_number_prefix\": \"example\",\n \"tax_identification_number\": \"example\",\n \"finalize_zero_amount_invoice\": false,\n \"invoice_footer\": \"Example\",\n \"invoice_grace_period\": 1,\n \"document_locale\": \"example\",\n \"eu_tax_management\": false,\n \"periodic_invoice_issuing_date_anchor\": \"current_period_end\",\n \"periodic_invoice_issuing_date_adjustment\": \"keep_anchor\",\n \"logo\": \"data:image/png;base64,aGVsbG8=\",\n \"tax_codes\": [\n \"vat\"\n ],\n \"invoice_custom_section_codes\": [\n \"legal\"\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getlago.com/api/v2/billing_entities")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"billing_entity\": {\n \"code\": \"example_code\",\n \"name\": \"example\",\n \"default_currency\": \"example\",\n \"country\": \"example\",\n \"address_line1\": \"example\",\n \"address_line2\": \"example\",\n \"phone\": \"example\",\n \"city\": \"example\",\n \"state\": \"example\",\n \"zipcode\": \"example\",\n \"einvoicing\": false,\n \"email\": \"billing@acme.example\",\n \"legal_name\": \"example\",\n \"legal_number\": \"example\",\n \"timezone\": \"example\",\n \"email_settings\": [\n \"invoice.finalized\"\n ],\n \"document_numbering\": \"per_customer\",\n \"document_number_prefix\": \"example\",\n \"tax_identification_number\": \"example\",\n \"finalize_zero_amount_invoice\": false,\n \"invoice_footer\": \"Example\",\n \"invoice_grace_period\": 1,\n \"document_locale\": \"example\",\n \"eu_tax_management\": false,\n \"periodic_invoice_issuing_date_anchor\": \"current_period_end\",\n \"periodic_invoice_issuing_date_adjustment\": \"keep_anchor\",\n \"logo\": \"data:image/png;base64,aGVsbG8=\",\n \"tax_codes\": [\n \"vat\"\n ],\n \"invoice_custom_section_codes\": [\n \"legal\"\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"billing_entity": {
"code": "example",
"name": "example",
"default_currency": "example",
"country": "example",
"address_line1": "example",
"address_line2": "example",
"phone": "example",
"city": "example",
"state": "example",
"zipcode": "example",
"einvoicing": false,
"email": "billing@acme.example",
"legal_name": "example",
"legal_number": "example",
"timezone": "example",
"email_settings": [
"invoice.finalized"
],
"document_numbering": "per_customer",
"document_number_prefix": "example",
"tax_identification_number": "example",
"finalize_zero_amount_invoice": false,
"invoice_footer": "Example",
"invoice_grace_period": 1,
"document_locale": "example",
"eu_tax_management": false,
"periodic_invoice_issuing_date_anchor": "current_period_end",
"periodic_invoice_issuing_date_adjustment": "keep_anchor",
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"is_default": false,
"logo_url": "https://cdn.acme.example/logo.png",
"created_at": "2022-04-29T08:59:51.123456Z",
"updated_at": "2022-04-29T08:59:51.123456Z",
"archived_at": null,
"deleted_at": null,
"taxes": [
{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"name": "VAT",
"code": "standard_vat",
"rate": 20,
"description": "Standard VAT",
"created_at": "2022-04-29T08:59:51.123456Z",
"updated_at": "2022-04-29T09:30:00.123456Z",
"deleted_at": null
}
],
"selected_invoice_custom_sections": [
{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"code": "example",
"name": "example",
"description": "example",
"details": "example",
"display_name": "example",
"created_at": "2022-04-29T08:59:51.123456Z",
"updated_at": "2022-04-29T08:59:51.123456Z",
"deleted_at": null
}
]
}
}{
"code": "invalid_expand",
"details": [
{
"code": "malformed",
"field": "expands",
"meta": {
"allowed_values": []
}
}
]
}{
"code": "unauthorized",
"details": []
}{
"code": "feature_unavailable",
"details": []
}{
"code": "resource_not_found",
"details": [
{
"code": "resource_not_found",
"field": "base",
"meta": {
"resource": "resource_name"
}
}
]
}{
"code": "validation_errors",
"details": [
{
"code": "value_is_mandatory",
"field": "name",
"meta": {}
}
]
}Billing entities
Create billing entity
Creating additional billing entities requires the relevant entitlement.
POST
/
billing_entities
Create billing entity
curl --request POST \
--url https://api.getlago.com/api/v2/billing_entities \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"billing_entity": {
"code": "example_code",
"name": "example",
"default_currency": "example",
"country": "example",
"address_line1": "example",
"address_line2": "example",
"phone": "example",
"city": "example",
"state": "example",
"zipcode": "example",
"einvoicing": false,
"email": "billing@acme.example",
"legal_name": "example",
"legal_number": "example",
"timezone": "example",
"email_settings": [
"invoice.finalized"
],
"document_numbering": "per_customer",
"document_number_prefix": "example",
"tax_identification_number": "example",
"finalize_zero_amount_invoice": false,
"invoice_footer": "Example",
"invoice_grace_period": 1,
"document_locale": "example",
"eu_tax_management": false,
"periodic_invoice_issuing_date_anchor": "current_period_end",
"periodic_invoice_issuing_date_adjustment": "keep_anchor",
"logo": "data:image/png;base64,aGVsbG8=",
"tax_codes": [
"vat"
],
"invoice_custom_section_codes": [
"legal"
]
}
}
'import requests
url = "https://api.getlago.com/api/v2/billing_entities"
payload = { "billing_entity": {
"code": "example_code",
"name": "example",
"default_currency": "example",
"country": "example",
"address_line1": "example",
"address_line2": "example",
"phone": "example",
"city": "example",
"state": "example",
"zipcode": "example",
"einvoicing": False,
"email": "billing@acme.example",
"legal_name": "example",
"legal_number": "example",
"timezone": "example",
"email_settings": ["invoice.finalized"],
"document_numbering": "per_customer",
"document_number_prefix": "example",
"tax_identification_number": "example",
"finalize_zero_amount_invoice": False,
"invoice_footer": "Example",
"invoice_grace_period": 1,
"document_locale": "example",
"eu_tax_management": False,
"periodic_invoice_issuing_date_anchor": "current_period_end",
"periodic_invoice_issuing_date_adjustment": "keep_anchor",
"logo": "data:image/png;base64,aGVsbG8=",
"tax_codes": ["vat"],
"invoice_custom_section_codes": ["legal"]
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
billing_entity: {
code: 'example_code',
name: 'example',
default_currency: 'example',
country: 'example',
address_line1: 'example',
address_line2: 'example',
phone: 'example',
city: 'example',
state: 'example',
zipcode: 'example',
einvoicing: false,
email: 'billing@acme.example',
legal_name: 'example',
legal_number: 'example',
timezone: 'example',
email_settings: ['invoice.finalized'],
document_numbering: 'per_customer',
document_number_prefix: 'example',
tax_identification_number: 'example',
finalize_zero_amount_invoice: false,
invoice_footer: 'Example',
invoice_grace_period: 1,
document_locale: 'example',
eu_tax_management: false,
periodic_invoice_issuing_date_anchor: 'current_period_end',
periodic_invoice_issuing_date_adjustment: 'keep_anchor',
logo: 'data:image/png;base64,aGVsbG8=',
tax_codes: ['vat'],
invoice_custom_section_codes: ['legal']
}
})
};
fetch('https://api.getlago.com/api/v2/billing_entities', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.getlago.com/api/v2/billing_entities",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'billing_entity' => [
'code' => 'example_code',
'name' => 'example',
'default_currency' => 'example',
'country' => 'example',
'address_line1' => 'example',
'address_line2' => 'example',
'phone' => 'example',
'city' => 'example',
'state' => 'example',
'zipcode' => 'example',
'einvoicing' => false,
'email' => 'billing@acme.example',
'legal_name' => 'example',
'legal_number' => 'example',
'timezone' => 'example',
'email_settings' => [
'invoice.finalized'
],
'document_numbering' => 'per_customer',
'document_number_prefix' => 'example',
'tax_identification_number' => 'example',
'finalize_zero_amount_invoice' => false,
'invoice_footer' => 'Example',
'invoice_grace_period' => 1,
'document_locale' => 'example',
'eu_tax_management' => false,
'periodic_invoice_issuing_date_anchor' => 'current_period_end',
'periodic_invoice_issuing_date_adjustment' => 'keep_anchor',
'logo' => 'data:image/png;base64,aGVsbG8=',
'tax_codes' => [
'vat'
],
'invoice_custom_section_codes' => [
'legal'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.getlago.com/api/v2/billing_entities"
payload := strings.NewReader("{\n \"billing_entity\": {\n \"code\": \"example_code\",\n \"name\": \"example\",\n \"default_currency\": \"example\",\n \"country\": \"example\",\n \"address_line1\": \"example\",\n \"address_line2\": \"example\",\n \"phone\": \"example\",\n \"city\": \"example\",\n \"state\": \"example\",\n \"zipcode\": \"example\",\n \"einvoicing\": false,\n \"email\": \"billing@acme.example\",\n \"legal_name\": \"example\",\n \"legal_number\": \"example\",\n \"timezone\": \"example\",\n \"email_settings\": [\n \"invoice.finalized\"\n ],\n \"document_numbering\": \"per_customer\",\n \"document_number_prefix\": \"example\",\n \"tax_identification_number\": \"example\",\n \"finalize_zero_amount_invoice\": false,\n \"invoice_footer\": \"Example\",\n \"invoice_grace_period\": 1,\n \"document_locale\": \"example\",\n \"eu_tax_management\": false,\n \"periodic_invoice_issuing_date_anchor\": \"current_period_end\",\n \"periodic_invoice_issuing_date_adjustment\": \"keep_anchor\",\n \"logo\": \"data:image/png;base64,aGVsbG8=\",\n \"tax_codes\": [\n \"vat\"\n ],\n \"invoice_custom_section_codes\": [\n \"legal\"\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.getlago.com/api/v2/billing_entities")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"billing_entity\": {\n \"code\": \"example_code\",\n \"name\": \"example\",\n \"default_currency\": \"example\",\n \"country\": \"example\",\n \"address_line1\": \"example\",\n \"address_line2\": \"example\",\n \"phone\": \"example\",\n \"city\": \"example\",\n \"state\": \"example\",\n \"zipcode\": \"example\",\n \"einvoicing\": false,\n \"email\": \"billing@acme.example\",\n \"legal_name\": \"example\",\n \"legal_number\": \"example\",\n \"timezone\": \"example\",\n \"email_settings\": [\n \"invoice.finalized\"\n ],\n \"document_numbering\": \"per_customer\",\n \"document_number_prefix\": \"example\",\n \"tax_identification_number\": \"example\",\n \"finalize_zero_amount_invoice\": false,\n \"invoice_footer\": \"Example\",\n \"invoice_grace_period\": 1,\n \"document_locale\": \"example\",\n \"eu_tax_management\": false,\n \"periodic_invoice_issuing_date_anchor\": \"current_period_end\",\n \"periodic_invoice_issuing_date_adjustment\": \"keep_anchor\",\n \"logo\": \"data:image/png;base64,aGVsbG8=\",\n \"tax_codes\": [\n \"vat\"\n ],\n \"invoice_custom_section_codes\": [\n \"legal\"\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getlago.com/api/v2/billing_entities")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"billing_entity\": {\n \"code\": \"example_code\",\n \"name\": \"example\",\n \"default_currency\": \"example\",\n \"country\": \"example\",\n \"address_line1\": \"example\",\n \"address_line2\": \"example\",\n \"phone\": \"example\",\n \"city\": \"example\",\n \"state\": \"example\",\n \"zipcode\": \"example\",\n \"einvoicing\": false,\n \"email\": \"billing@acme.example\",\n \"legal_name\": \"example\",\n \"legal_number\": \"example\",\n \"timezone\": \"example\",\n \"email_settings\": [\n \"invoice.finalized\"\n ],\n \"document_numbering\": \"per_customer\",\n \"document_number_prefix\": \"example\",\n \"tax_identification_number\": \"example\",\n \"finalize_zero_amount_invoice\": false,\n \"invoice_footer\": \"Example\",\n \"invoice_grace_period\": 1,\n \"document_locale\": \"example\",\n \"eu_tax_management\": false,\n \"periodic_invoice_issuing_date_anchor\": \"current_period_end\",\n \"periodic_invoice_issuing_date_adjustment\": \"keep_anchor\",\n \"logo\": \"data:image/png;base64,aGVsbG8=\",\n \"tax_codes\": [\n \"vat\"\n ],\n \"invoice_custom_section_codes\": [\n \"legal\"\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"billing_entity": {
"code": "example",
"name": "example",
"default_currency": "example",
"country": "example",
"address_line1": "example",
"address_line2": "example",
"phone": "example",
"city": "example",
"state": "example",
"zipcode": "example",
"einvoicing": false,
"email": "billing@acme.example",
"legal_name": "example",
"legal_number": "example",
"timezone": "example",
"email_settings": [
"invoice.finalized"
],
"document_numbering": "per_customer",
"document_number_prefix": "example",
"tax_identification_number": "example",
"finalize_zero_amount_invoice": false,
"invoice_footer": "Example",
"invoice_grace_period": 1,
"document_locale": "example",
"eu_tax_management": false,
"periodic_invoice_issuing_date_anchor": "current_period_end",
"periodic_invoice_issuing_date_adjustment": "keep_anchor",
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"is_default": false,
"logo_url": "https://cdn.acme.example/logo.png",
"created_at": "2022-04-29T08:59:51.123456Z",
"updated_at": "2022-04-29T08:59:51.123456Z",
"archived_at": null,
"deleted_at": null,
"taxes": [
{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"name": "VAT",
"code": "standard_vat",
"rate": 20,
"description": "Standard VAT",
"created_at": "2022-04-29T08:59:51.123456Z",
"updated_at": "2022-04-29T09:30:00.123456Z",
"deleted_at": null
}
],
"selected_invoice_custom_sections": [
{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"code": "example",
"name": "example",
"description": "example",
"details": "example",
"display_name": "example",
"created_at": "2022-04-29T08:59:51.123456Z",
"updated_at": "2022-04-29T08:59:51.123456Z",
"deleted_at": null
}
]
}
}{
"code": "invalid_expand",
"details": [
{
"code": "malformed",
"field": "expands",
"meta": {
"allowed_values": []
}
}
]
}{
"code": "unauthorized",
"details": []
}{
"code": "feature_unavailable",
"details": []
}{
"code": "resource_not_found",
"details": [
{
"code": "resource_not_found",
"field": "base",
"meta": {
"resource": "resource_name"
}
}
]
}{
"code": "validation_errors",
"details": [
{
"code": "value_is_mandatory",
"field": "name",
"meta": {}
}
]
}API v2 is in beta. Endpoints return the
X-Lago-Endpoint-Status: beta header.Authorizations
Body
application/json
Request payload