List payments
GET/api/v1/billing/payments
Everything charged to the organization, newest first: credit bundles
bought (bundle), monthly usage bills that raised money (usage),
and early-termination charges for a commitment (commitment_clawback).
A month covered entirely by the free allowance is not a payment and
is not listed.
Requires the billing:payment:read scope.
Authorization
Responses
200
The payments.
dataobjectpaymentsarray of PaymentShow Payment properties
kindstringatstring (date-time)usdnumberehunumberEHU bought, for a bundle. Left out otherwise.periodstringThe month a usage bill covers,YYYY-MM. Left out otherwise.statusstringpaidfor a bundle,invoicedfor an early-termination charge, the statement'scharge_statusfor a usage bill.invoice_urlstring (uri)receipt_urlstring (uri)
401
No API key was sent, or it is unknown, revoked or expired (UNAUTHORIZED).
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
403
The key lacks the scope this endpoint needs (FORBIDDEN).
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
429
Too many requests (RATE_LIMITED). Wait for Retry-After seconds.
Retry-AfterintegerSeconds to wait before retrying.
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
500
Payments could not be loaded (PAYMENTS_UNAVAILABLE). Retry later.
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
Example request
curl -X GET 'https://evohub.io/api/v1/billing/payments' \
-H 'Authorization: Bearer <TOKEN>'
