{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"amount_usd_cents",
"amount_quota",
"quota_per_usd",
"state",
"fee_mode",
"credited_quota",
"credited_credits",
"credit_status",
"archived",
"archived_at"
],
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"user_id": {
"type": "string"
},
"currency": {
"type": "string",
"const": "usd"
},
"amount_usd_cents": {
"type": "string",
"description": "Original promised principal, never reduced by settlement fees"
},
"amount_quota": {
"type": "string",
"description": "Original principal in native quota units"
},
"quota_per_usd": {
"type": "string"
},
"state": {
"type": "string",
"enum": [
"creating",
"unknown",
"open",
"credit_pending",
"paid",
"expired",
"failed"
]
},
"fee_mode": {
"type": "string",
"enum": [
"deduct",
"on_top"
]
},
"credited_quota": {
"type": "string",
"pattern": "^[0-9]+$"
},
"credited_credits": {
"type": "string",
"pattern": "^[0-9]+\\.[0-9]{4}$",
"description": "Locally confirmed native credits; display two decimals but keep the full value Native commit with a lost response may temporarily lag the wallet; reconcile unconfirmed receipts before accounting comparisons."
},
"credit_status": {
"type": "string",
"enum": [
"none",
"partial",
"complete"
],
"description": "Actual credits relative to the original principal; independent of payment state"
},
"invoice_id": {
"type": [
"string",
"null"
]
},
"payment_id": {
"type": [
"string",
"null"
],
"description": "First known payment ID; an invoice may have multiple verified incoming payments"
},
"pay_currency": {
"type": "string"
},
"checkout_url": {
"type": [
"string",
"null"
]
},
"latest_payment_status": {
"type": [
"string",
"null"
]
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"expires_at": {
"type": "string",
"format": "date-time"
},
"paid_at": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"payment_window_expired": {
"type": "boolean"
},
"archived": {
"type": "boolean",
"description": "Visibility archive; does not cancel the invoice or prevent late settlement"
},
"archived_at": {
"type": [
"string",
"null"
],
"format": "date-time"
}
}
}
},
"total": {
"type": "string"
},
"page": {
"type": "integer"
},
"size": {
"type": "integer"
}
}
}
}
}
}
}
}