The partner balance
The partner's ACCOUNT credits for the current monthly window: the same credits its own requests use.
Requires scope: partner
The partner's ACCOUNT credits for the current monthly window: the same credits its own requests use. funded
is the monthly allowance plus the extra credits available, spent is what the month has drawn (its own requests,
its users' draws and the credits it gave), and balance and available are what is left. credit_line is always
0. resets_at is when the window ends. unlimited is true for a partner with no ceiling; its figures then read 0.
The *_credits fields are the same values in whole credits.
Authorization
bearerAuth Authorization: Bearer <key>. Read the key from the SPICRAWL_API_KEY environment
variable; never hard-code or log it. spicrawl_test_… keys can never spend live
credits. Scopes: scrape, batch, sessions (granted by default), browser
and read (granted deliberately), and partner (only on a partner account's key).
A missing scope is 403 ERR::AUTH::INSUFFICIENT_SCOPE naming the scope.
In: header
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
curl -X GET "https://example.com/v1/partner/wallet"{ "funded_micro": 0, "credit_line_micro": 0, "spent_micro": 0, "balance_micro": 0, "available_micro": 0, "funded_credits": 0, "credit_line_credits": 0, "spent_credits": 0, "balance_credits": 0, "available_credits": 0, "resets_at": "2019-08-24T14:15:22Z", "unlimited": true}