SerenAI

Pay Per Call Agentic Commerce

WalletTransactionResponse

Response for a single transaction

Properties

PropertyTypeRequiredDescription
amount_atomic integer Yes
amount_usd string Yes
balance_after_atomic integer,null No Wallet balance immediately after this debit (debit entries only)
balance_after_usd string,null No Wallet balance immediately after this debit in USD (debit entries only)
bonus_amount_usd string,null No Bonus amount included in this grant (only for tier_bonus source)
created_at string Yes
description string,null No
direction WalletTransactionDirection Yes
expires_at string,null No
id string Yes
paid_amount_usd string,null No Original Stripe payment amount (only for fiat_purchase source)
prompt string,null No Prompt/query text associated with this transaction (when available)
publisher_id string,null No Publisher context for this transaction (when available)
publisher_name string,null No Publisher name (when available)
remaining_atomic integer,null No Remaining amount on the grant (credit entries only)
remaining_usd string,null No Remaining amount on the grant in USD (credit entries only)
source string Yes
View JSON Schema
{
  "type": "object",
  "description": "Response for a single transaction",
  "required": [
    "id",
    "direction",
    "source",
    "amount_atomic",
    "amount_usd",
    "created_at"
  ],
  "properties": {
    "amount_atomic": {
      "type": "integer",
      "format": "int64"
    },
    "amount_usd": {
      "type": "string"
    },
    "balance_after_atomic": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64",
      "description": "Wallet balance immediately after this debit (debit entries only)"
    },
    "balance_after_usd": {
      "type": [
        "string",
        "null"
      ],
      "description": "Wallet balance immediately after this debit in USD (debit entries only)"
    },
    "bonus_amount_usd": {
      "type": [
        "string",
        "null"
      ],
      "description": "Bonus amount included in this grant (only for tier_bonus source)"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "direction": {
      "$ref": "#/components/schemas/WalletTransactionDirection"
    },
    "expires_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "paid_amount_usd": {
      "type": [
        "string",
        "null"
      ],
      "description": "Original Stripe payment amount (only for fiat_purchase source)"
    },
    "prompt": {
      "type": [
        "string",
        "null"
      ],
      "description": "Prompt/query text associated with this transaction (when available)"
    },
    "publisher_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "Publisher context for this transaction (when available)"
    },
    "publisher_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "Publisher name (when available)"
    },
    "remaining_atomic": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64",
      "description": "Remaining amount on the grant (credit entries only)"
    },
    "remaining_usd": {
      "type": [
        "string",
        "null"
      ],
      "description": "Remaining amount on the grant in USD (credit entries only)"
    },
    "source": {
      "type": "string"
    }
  }
}