CustomerCharge
Type: object
Required means required within its containing object, when that object is present. Union/conditional constraints remain defined by the JSON Schema below.
| Field | Type | Presence | Description / constraints |
|---|---|---|---|
agent | anyOf: string; null | Optional | — |
amount_micros | string | Optional | Integer USD micros as a decimal string; $1 = 1000000 micros. pattern: ^[0-9]+$ |
funding | wallet, card | Optional | — |
hash | anyOf: string; null | Optional | — |
id | string | Optional | Public chg_… reference (not a UUID). pattern: ^chg_[0-7][0-9A-HJKMNP-TV-Z]{25}$ |
kind | call, sms, number_rental, media, other | Optional | — |
line | anyOf: string; null | Optional | — |
measure | object | Optional | Additional properties allowed |
object | Exactly customer_charge | Optional | — |
occurred_at | string (date-time) | Optional | — |
price_book_version | string | Optional | — |
product | string | Optional | — |
resource | anyOf: string; null | Optional | — |
route_id | anyOf: string; null | Optional | — |
seq | anyOf: integer; null | Optional | — |
JSON Schema
json
{
"additionalProperties": true,
"properties": {
"agent": {
"anyOf": [
{
"description": "Public agent_… reference (not a UUID)",
"pattern": "^agent_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
"type": "string"
},
{
"type": "null"
}
]
},
"amount_micros": {
"description": "Integer USD micros as a decimal string; $1 = 1000000 micros",
"pattern": "^[0-9]+$",
"type": "string"
},
"funding": {
"enum": [
"wallet",
"card"
],
"type": "string"
},
"hash": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"id": {
"description": "Public chg_… reference (not a UUID)",
"pattern": "^chg_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
"type": "string"
},
"kind": {
"enum": [
"call",
"sms",
"number_rental",
"media",
"other"
],
"type": "string"
},
"line": {
"anyOf": [
{
"description": "Public line_… reference (not a UUID)",
"pattern": "^line_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
"type": "string"
},
{
"type": "null"
}
]
},
"measure": {
"additionalProperties": true,
"properties": {},
"type": "object"
},
"object": {
"const": "customer_charge"
},
"occurred_at": {
"format": "date-time",
"type": "string"
},
"price_book_version": {
"type": "string"
},
"product": {
"type": "string"
},
"resource": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"route_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"seq": {
"anyOf": [
{
"minimum": 0,
"type": "integer"
},
{
"type": "null"
}
]
}
},
"type": "object"
}