Read the partner’s own earnings
/api/partner/v1/earningsReturns eligible hours and the partner’s fee in USD cents for one Phoenix calendar month. An unknown amount is null. The default partner grouping returns a summary. The company and recorder groupings add a page of contributions and unallocated_cents for the full filtered month. Recorder contributions allocate the partner fee across evidenced minutes. Locked months use the recordings included in the settlement batch, including late acceptances. Available to the authorized partner owner.
Authentication Send your OAuth access token as a Bearer token with the partner.lifecycle scope.
Parameters
monthquery · stringDefaults to the current month in Phoenix.
group_byquery · partner | company | recorderSelect the summary, company contributions or recorder allocations. Defaults to partner.
company_idquery · stringA company registration ID or its operating company ID. Returned company_id values are operating company IDs.
cursorquery · stringReturn the next page using the previous next_cursor with the same filters. A null next_cursor ends the list.
limitquery · integer · min 1, max 100Maximum rows per page. Defaults to 50.
Responses
200 · Earnings summary or grouped contributions.
application/json
Format 1
monthstring · requiredcurrencyUSD · requiredstatuscounting | accruing | locked | held | sending | sent | paid · requireddue_onstring or null · date · requiredpaid_onstring or null · date · requiredeligible_hoursnumber · requiredamount_centsinteger or null · required
Format 2
monthstring · requiredcurrencyUSD · requiredstatuscounting | accruing | locked | held | sending | sent | paid · requireddue_onstring or null · date · requiredpaid_onstring or null · date · requiredeligible_hoursnumber · requiredamount_centsinteger or null · requireditemsarray of object · requiredFields for items
company_idstring · requiredeligible_hoursnumber · requiredamount_centsinteger or null · requiredheldboolean · required
next_cursorstring or null · requiredunallocated_centsinteger or null · required
Format 3
monthstring · requiredcurrencyUSD · requiredstatuscounting | accruing | locked | held | sending | sent | paid · requireddue_onstring or null · date · requiredpaid_onstring or null · date · requiredeligible_hoursnumber · requiredamount_centsinteger or null · requiredallocationpartner_fee_by_confirmed_recorder_minutes · requireditemsarray of object · requiredFields for items
idstring · requiredcompany_idstring · requiredrecorder_idstring · requiredeligible_minutesnumber · requiredamount_centsinteger · required
next_cursorstring or null · requiredunallocated_centsinteger or null · required
Example
{
"month": "2031-04",
"currency": "USD",
"status": "counting",
"due_on": "2031-05-15",
"paid_on": null,
"eligible_hours": 0,
"amount_cents": 0
}400 · Invalid input. On writes, check the JSON object and Idempotency-Key.
application/json
errorstring · requireddetailstringmessagestringrequest_idstringidstring
Example
{
"error": "invalid_input"
}401 · Use a valid access token for this resource and the partner.lifecycle scope.
application/json
errorstring · requireddetailstringmessagestringrequest_idstringidstring
Example
{
"error": "unauthorized"
}403 · The partner owner needs an active grant.
application/json
errorstring · requireddetailstringmessagestringrequest_idstringidstring
Example
{
"error": "no_access"
}404 · The requested resource, company or month could not be found within the caller’s scope.
application/json
errorstring · requireddetailstringmessagestringrequest_idstringidstring
Example
{
"error": "not_found"
}409 · Resource state or idempotency conflict.
application/json
errorstring · requireddetailstringrequest_idstring
429 · The grant has reached its request limit.
application/json
errorstring · requireddetailstringmessagestringrequest_idstringidstring
Example
{
"error": "too_many_requests"
}503 · Service temporarily unavailable. For writes, retain the original key and inspect the receipt before retrying.
application/json
errorstring · requireddetailstringmessagestringrequest_idstringidstring
Example
{
"error": "temporarily_unavailable"
}