Xenodia Docs
API ReferenceGenerated Reference

List past requests awaiting settlement

Owner or Agent access token required. Filters verified pending charges and usage_unknown holds before cursor pagination. Agents can only read their own requests, without other payers' balances or authorization rights. Unknown usage is not zero cost and cannot be authorized; retain the request ID for support review. Includes historical charges this owner actually funded even after the Agent is unlinked. Returns original payer accounts and the remaining funding shortfall; combined account balances are not proof that those original payers can settle. Reading never changes billing or budgets.

GET
/v1/credits/settlements

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Query Parameters

limit?integer
Default50
Range1 <= value <= 100
before_id?integer

Use next_cursor from the previous response to load older pending charges.

Default0
Range0 <= value

Response Body

application/json

application/json

curl -X GET "https://api.xenodia.xyz/v1/credits/settlements"
{
  "data": [
    {
      "billing_state": "string",
      "request_id": "string",
      "actor_account_id": 0,
      "reserve_amount_micro": 0,
      "actual_amount_micro": 0,
      "status": "reserved",
      "authorized": true,
      "payment_review_required": true,
      "historical_owner": true,
      "can_authorize": true,
      "shortfall_micro": 0,
      "funding_accounts": [
        {
          "account_id": 0,
          "reserved_amount_micro": 0,
          "available_amount_micro": 0,
          "supplemental_allowed": true
        }
      ]
    }
  ],
  "next_cursor": 0
}
Empty
{
  "error": "bad_request",
  "message": "string",
  "type": "string",
  "code": "string"
}