A member's revenue credit
const url = 'https://digize.com/api/v1/analytics/team/members/example?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/members/example?days=30' \ --header 'x-api-key: <x-api-key>'One member’s credit in the period: their part by area, day by day, every sale, refund and deal they had a part in with what earned it, and the changes they made that can earn credit. Use it to explain why someone is where they are on analytics.team.report.
Needs the analytics:read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The member’s user id: memberId from analytics.team.report, or userId from members.list.
Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”Done
object
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.
Their credit by day (by week beyond 31 days), oldest first.
object
In the minor unit of the currency.
The sales, refunds and deals they had a part in, newest first, up to 100.
object
The order, payment, invoice, opportunity or refund.
The whole amount.
Their part of it, 0 to 1.
In the minor unit of the currency.
Their changes in the period that can earn credit, newest first, up to 100.
object
They made the thing, so it counts while it earns.
Example
{ "member": { "role": "owner" }, "events": [ { "kind": "sale", "source": "order", "reasons": [ { "area": "ads" } ] } ], "contributions": [ { "area": "ads" } ]}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" }}