Team revenue credit
const url = 'https://digize.com/api/v1/analytics/team?days=30';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
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://digize.com/api/v1/analytics/team?days=30' \ --header 'x-api-key: <x-api-key>'Which members’ work made the money: each member’s part of the period’s sales less refunds (and of won deals) by area — ads, sites, sales, store, automations — against the period before, how much revenue no one’s work led to, and the rules it was split by. Everyone in the workspace is listed, at zero if nothing they did earned credit.
Needs the analytics:read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”Done
object
Sales less refunds in the period, credited or not.
In the minor unit of the currency.
The members’ parts of it.
In the minor unit of the currency.
What no member’s work led to.
Won deals’ value in the period: pipeline, not cash.
Credit by area: ads (the campaign or short link), sites (the site), sales (CRM work, owners, invoices, payment links), store (products, discounts), automations (workflows that ran).
object
In the minor unit of the currency.
In the minor unit of the currency.
In the minor unit of the currency.
In the minor unit of the currency.
In the minor unit of the currency.
object
Their part of the period’s sales less refunds.
The same for the period before.
The whole amount of every sale and refund they had a part in.
Sales they had a part in.
Their part of the deals won in the pipeline.
Credit by area: ads (the campaign or short link), sites (the site), sales (CRM work, owners, invoices, payment links), store (products, discounts), automations (workflows that ran).
object
In the minor unit of the currency.
In the minor unit of the currency.
In the minor unit of the currency.
In the minor unit of the currency.
In the minor unit of the currency.
Changes they made in the period that can earn credit.
Of those, how many the agent made for them.
object
Changes made this many days before a sale count toward it.
Each area’s weight against the others, 0 (doesn’t count) to 3; 1 each splits evenly.
object
The customer’s owner and the deal’s owner count in sales.
Example
{ "members": [ { "role": "owner" } ]}What was sent isn’t valid (invalid).
object
object
object
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
object
object
object
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
object
object
object
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
object
object
object
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
object
object
object
Example
{ "error": { "code": "invalid" }}