Get brand-wide revenue summary
GET
/v1/brands/{brandId}/revenue-settings
const url = 'https://kynectlocal-production.up.railway.app/v1/v1/brands/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/revenue-settings';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://kynectlocal-production.up.railway.app/v1/v1/brands/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/revenue-settings \ --header 'Authorization: Bearer <token>'Authorizations
Section titled βAuthorizations βParameters
Section titled β Parameters βPath Parameters
Section titled βPath Parameters β brandId
required
string format: uuid
Brand identifier
Responses
Section titled β Responses βSuccess
Media type application/json
object
data
required
object
totals
required
object
formLeadsMtd
required
integer
estimatedRevenueCents
required
integer
locationCount
required
integer
configuredCount
required
integer
locations
required
Array<object>
object
locationId
required
string format: uuid
formLeadsMtd
required
integer
estimatedRevenueCents
required
integer
avgTicketCents
required
integer | null
closeRatePct
required
string | null
configured
required
boolean
Example generated
{ "data": { "totals": { "formLeadsMtd": 1, "estimatedRevenueCents": 1, "locationCount": 1, "configuredCount": 1 }, "locations": [ { "locationId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "formLeadsMtd": 1, "estimatedRevenueCents": 1, "avgTicketCents": 1, "closeRatePct": "example", "configured": true } ] }}Validation error
Media type application/json
object
error
required
Error envelope
object
code
required
Machine-readable error code
string
message
required
Human-readable error description
string
details
Additional context, e.g. validation field errors
Example generated
{ "error": { "code": "example", "message": "example", "details": "example" }}Unauthenticated
Media type application/json
object
error
required
Error envelope
object
code
required
Machine-readable error code
string
message
required
Human-readable error description
string
details
Additional context, e.g. validation field errors
Example generated
{ "error": { "code": "example", "message": "example", "details": "example" }}Forbidden
Media type application/json
object
error
required
Error envelope
object
code
required
Machine-readable error code
string
message
required
Human-readable error description
string
details
Additional context, e.g. validation field errors
Example generated
{ "error": { "code": "example", "message": "example", "details": "example" }}Not found
Media type application/json
object
error
required
Error envelope
object
code
required
Machine-readable error code
string
message
required
Human-readable error description
string
details
Additional context, e.g. validation field errors
Example generated
{ "error": { "code": "example", "message": "example", "details": "example" }}Unprocessable
Media type application/json
object
error
required
Error envelope
object
code
required
Machine-readable error code
string
message
required
Human-readable error description
string
details
Additional context, e.g. validation field errors
Example generated
{ "error": { "code": "example", "message": "example", "details": "example" }}