curl --request GET \
--url 'https://api.widgetic.com/v1/partners/123e4567-e89b-12d3-a456-426614174000/billing-overview' \
--header "Authorization: Bearer $WIDGETIC_API_KEY"
{
"success": true,
"data": {
"partner": {},
"operationalCredits": {},
"partnerCustomization": null,
"billingIntegration": {}
},
"meta": {
"page": 1,
"size": 20,
"total": 135,
"limit": 20,
"offset": 0,
"hasNextPage": true,
"hasPreviousPage": false,
"nextCursor": "<string>",
"warnings": [
"<string>"
]
}
}Credits and billing
Get the billing overview
Retrieves the partner’s credits (operationalCredits), the partner’s contract terms (partnerCustomization, the same fields as getPartnerContract) and billing integration status. Internal negotiation notes are not part of it.
operationalCredits is the credits of the partner’s workspace, held in the one account a partner has for its credits: the account of the person who administers it. It holds balance (the same balance getPartnerCreditBalance reads), reservedBalance, availableBalance (what a new operation can use) and recentTransactions (the ten newest entries of the ledger getPartnerCreditTransactions lists). A partner with no administrator has no account, and reads 0 and an empty list.
GET
/
partners
/
{partnerId}
/
billing-overview
curl --request GET \
--url 'https://api.widgetic.com/v1/partners/123e4567-e89b-12d3-a456-426614174000/billing-overview' \
--header "Authorization: Bearer $WIDGETIC_API_KEY"
{
"success": true,
"data": {
"partner": {},
"operationalCredits": {},
"partnerCustomization": null,
"billingIntegration": {}
},
"meta": {
"page": 1,
"size": 20,
"total": 135,
"limit": 20,
"offset": 0,
"hasNextPage": true,
"hasPreviousPage": false,
"nextCursor": "<string>",
"warnings": [
"<string>"
]
}
}Authorizations
Response
200 - application/json
Partner billing overview retrieved successfully