{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/toolrouter-com/json-schema/toolrouter-com-machine-top-up-result-schema.json",
  "title": "MachineTopUpResult",
  "description": "Returned once the payment settles and the credits are added.",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/toolrouter-com-api-openapi.json#/components/schemas/MachineTopUpResult",
  "type": "object",
  "properties": {
    "credited_usd": {
      "type": "number",
      "description": "Credit value added to the account."
    },
    "charged_usd": {
      "type": "number",
      "description": "Amount actually paid, including the purchase fee."
    },
    "balance_usd": {
      "type": "number",
      "description": "Credit balance after the top-up."
    },
    "payment_ref": {
      "type": "string",
      "description": "Settled payment reference the grant is keyed on."
    },
    "api_key": {
      "type": "string",
      "description": "Only when paid without an API key: the new account's API key. Shown once."
    },
    "account_id": {
      "type": "string",
      "description": "Only when paid without an API key: the new account id."
    },
    "claim_url": {
      "type": "string",
      "description": "Only when paid without an API key: link for the user to claim and manage the account."
    },
    "message": {
      "type": "string",
      "description": "Only when paid without an API key: how to use the new key."
    }
  },
  "required": [
    "credited_usd",
    "charged_usd",
    "balance_usd",
    "payment_ref"
  ]
}