Authorize or upgrade a Fiest restaurant connection
curl --request POST \
--url https://api.app.lastaccountingcompany.com/portal/fiest-connections/oauth/start \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"company_authority_confirmed": true,
"customer_id": "<string>",
"include_orders": false
}
'import requests
url = "https://api.app.lastaccountingcompany.com/portal/fiest-connections/oauth/start"
payload = {
"company_authority_confirmed": True,
"customer_id": "<string>",
"include_orders": False
}
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({
company_authority_confirmed: true,
customer_id: '<string>',
include_orders: false
})
};
fetch('https://api.app.lastaccountingcompany.com/portal/fiest-connections/oauth/start', 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.app.lastaccountingcompany.com/portal/fiest-connections/oauth/start",
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([
'company_authority_confirmed' => true,
'customer_id' => '<string>',
'include_orders' => false
]),
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.app.lastaccountingcompany.com/portal/fiest-connections/oauth/start"
payload := strings.NewReader("{\n \"company_authority_confirmed\": true,\n \"customer_id\": \"<string>\",\n \"include_orders\": false\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.app.lastaccountingcompany.com/portal/fiest-connections/oauth/start")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"company_authority_confirmed\": true,\n \"customer_id\": \"<string>\",\n \"include_orders\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.app.lastaccountingcompany.com/portal/fiest-connections/oauth/start")
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 \"company_authority_confirmed\": true,\n \"customer_id\": \"<string>\",\n \"include_orders\": false\n}"
response = http.request(request)
puts response.read_body{
"customer_id": "<string>",
"connection_id": "<string>",
"authorization_url": "<string>",
"setup": {
"environment": "<string>",
"authorization_boundary": "restaurant",
"scopes": [
"<string>"
]
}
}{
"error": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"detail": "<string>"
}Connections
Authorize or upgrade a Fiest restaurant connection
Starts restaurant-bound PKCE consent. include_orders requests the additional fiest.orders.read scope approved for the Fiest client. Omitting it preserves accounting-only consent. Reauthorizing the same restaurant updates its existing connection after verifying the legal entity. Refreshing an existing token never widens its granted scopes.
POST
/
fiest-connections
/
oauth
/
start
Authorize or upgrade a Fiest restaurant connection
curl --request POST \
--url https://api.app.lastaccountingcompany.com/portal/fiest-connections/oauth/start \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"company_authority_confirmed": true,
"customer_id": "<string>",
"include_orders": false
}
'import requests
url = "https://api.app.lastaccountingcompany.com/portal/fiest-connections/oauth/start"
payload = {
"company_authority_confirmed": True,
"customer_id": "<string>",
"include_orders": False
}
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({
company_authority_confirmed: true,
customer_id: '<string>',
include_orders: false
})
};
fetch('https://api.app.lastaccountingcompany.com/portal/fiest-connections/oauth/start', 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.app.lastaccountingcompany.com/portal/fiest-connections/oauth/start",
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([
'company_authority_confirmed' => true,
'customer_id' => '<string>',
'include_orders' => false
]),
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.app.lastaccountingcompany.com/portal/fiest-connections/oauth/start"
payload := strings.NewReader("{\n \"company_authority_confirmed\": true,\n \"customer_id\": \"<string>\",\n \"include_orders\": false\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.app.lastaccountingcompany.com/portal/fiest-connections/oauth/start")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"company_authority_confirmed\": true,\n \"customer_id\": \"<string>\",\n \"include_orders\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.app.lastaccountingcompany.com/portal/fiest-connections/oauth/start")
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 \"company_authority_confirmed\": true,\n \"customer_id\": \"<string>\",\n \"include_orders\": false\n}"
response = http.request(request)
puts response.read_body{
"customer_id": "<string>",
"connection_id": "<string>",
"authorization_url": "<string>",
"setup": {
"environment": "<string>",
"authorization_boundary": "restaurant",
"scopes": [
"<string>"
]
}
}{
"error": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"detail": "<string>"
}Authorizations
Portal API key minted in portal Settings → API access. Scope read or write; pinned to one company. Send as Authorization: Bearer lac_sk_....
Body
application/json