Retrieve open invoices
GET
https://api.zenoti.com/{base_url}/v1/centers/{center_id}/invoices
This API searches invoices by invoice number or guest user ID, or retrieves all open invoices for a given date.
Before you begin
Permission: Manage API Keys (on the Administrator security object) — Required to access Zenoti APIs.
Endpoint
GET /{base_url}/v1/centers/{center_id}/invoices
Base URL: https://api.zenoti.com
Request
Path parameters
Query parameters
Response
Success (200 OK)
{
"todays_invoices": {},
"invoices": [
{
"...": "..."
}
]
}
Response fields
Example
curl --request GET \
--url 'https://api.zenoti.com/{base_url}/v1/centers/{center_id}/invoices' \
--header 'Authorization: bearer {{access_token}}'
const response = await fetch('https://api.zenoti.com/{base_url}/v1/centers/{center_id}/invoices', {
method: 'GET',
headers: {
'Authorization': 'bearer {{access_token}}'
},
});
const data = await response.json();
import requests
response = requests.get(
'https://api.zenoti.com/{base_url}/v1/centers/{center_id}/invoices',
headers={
'Authorization': 'bearer {{access_token}}',
},
)
data = response.json()
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "bearer {{access_token}}");
var response = await client.GetAsync(
"https://api.zenoti.com/{base_url}/v1/centers/{center_id}/invoices");
var data = await response.Content.ReadAsStringAsync();
require 'net/http'
require 'json'
uri = URI('https://api.zenoti.com/{base_url}/v1/centers/{center_id}/invoices')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Get.new(uri)
request['Authorization'] = 'bearer {{access_token}}'
response = http.request(request)
data = JSON.parse(response.body)
Error codes