POST
InvoiceSettings.Get
Return one invoice settings / company row by id from invoices_settings (account-owned, is_deleted=0). Does not return auth tokens.
Permissions
- User must be logged in with a valid bearer token.
- Returned or changed records are limited by the user permissions, team access, folder access, and account settings.
Action
- Returns InvoiceSettings information as JSON for the UI.
Push Service
No push is sent because this function only reads data or returns helper information.
Automation
No automation is run for this function.
Special Instructions
- Send the bearer token on protected calls with Authorization: Bearer YOUR TOKEN.
- Send parameters as POST body fields exactly as documented.
Required Parameters
| Name | Type | Sample | Explanation |
|---|---|---|---|
invoice_setting_idpost | int | 19 | Invoice settings id. Aliases: invoice_settings_id, invoices_settings_id, id, data_id. |
Optional Parameters
No optional body parameters are defined for this function.
Authentication
Send the bearer token returned by Login in the request header.
Authorization: Bearer YOUR TOKEN
Sample Request
{
"url": "\/app\/InvoiceSettings.Get",
"method": "POST",
"headers": {
"Authorization": "Bearer YOUR TOKEN"
},
"body": {
"invoice_setting_id": "19"
},
"url_user": "https:\/\/{user}.bull36.com\/app\/InvoiceSettings.Get",
"url_domain": "https:\/\/{domain}\/app\/InvoiceSettings.Get"
}Endpoint
POST /app/InvoiceSettings.Get
POST https://{user}.bull36.com/app/InvoiceSettings.Get
POST https://{domain}/app/InvoiceSettings.GetSample Output
{
"success": 1,
"data": {
"id": 19,
"invoice_setting_id": 19,
"company_name": "kan*udo",
"email": "[email protected]",
"company_tax_id": "032451296",
"company_type": "Company",
"default_settings": 1,
"is_default": true
}
}JavaScript Example
const token = 'YOUR TOKEN';
const body = new URLSearchParams({ invoice_setting_id: '19' });
const res = await fetch('/app/InvoiceSettings.Get', {
method: 'POST',
headers: { Authorization: 'Bearer ' + token },
body
});
console.log(await res.json());Error Example
{
"success": 0,
"message": "Invoice setting was not found."
}