JSON
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://suporte.inspire4u.com.br/schemas/eksp/v1/customer.schema.json",
"title": "Cliente (conta)",
"type": "object",
"required": [
"external_id",
"name",
"updated_at"
],
"properties": {
"external_id": {
"type": "string",
"minLength": 1,
"maxLength": 120
},
"name": {
"type": "string",
"minLength": 1
},
"domain": {
"type": [
"string",
"null"
]
},
"plan": {
"type": [
"string",
"null"
]
},
"mrr_cents": {
"type": [
"integer",
"null"
],
"minimum": 0
},
"status": {
"type": "string",
"enum": [
"active",
"trialing",
"past_due",
"paused",
"canceled",
"churned"
]
},
"customer_since": {
"type": [
"string",
"null"
]
},
"renewal_date": {
"type": [
"string",
"null"
]
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"custom": {
"type": "object"
},
"contacts": {
"type": "array",
"items": {
"$ref": "#/$defs/contact"
}
}
},
"$defs": {
"contact": {
"type": "object",
"required": [
"external_id"
],
"properties": {
"external_id": {
"type": "string"
},
"name": {
"type": "string"
},
"email": {
"type": [
"string",
"null"
]
},
"phone": {
"type": [
"string",
"null"
]
},
"title": {
"type": [
"string",
"null"
]
},
"role": {
"type": "string",
"enum": [
"champion",
"decision_maker",
"user",
"billing",
"other"
]
},
"last_seen_at": {
"type": [
"string",
"null"
]
}
}
}
}
}
Encontrou algo para melhorar? Escreva para master@inspire4u.com.br.