pub struct TosAcceptance {
pub accepted_at: DateTime<Utc>,
pub language: String,
pub version_id: TosVersionId,
}Expand description
A single Terms of Service acceptance recorded for a Customer. Submit
one entry per required document listed in
Customer.requirements.tos.tosVersions[] (returned on Get Customer,
Create Customer, and Update Customer). language records the
single translation the Customer actually reviewed.
When new required Terms of Service versions are published, only the
new `versionId`s appear in `Customer.requirements.tos.tosVersions[]`;
submit acceptances for only those new version(s).JSON schema
{
"description": "A single Terms of Service acceptance recorded for a Customer. Submit\none entry per required document listed in\n`Customer.requirements.tos.tosVersions[]` (returned on `Get Customer`,\n`Create Customer`, and `Update Customer`). `language` records the\nsingle translation the Customer actually reviewed.\n\nWhen new required Terms of Service versions are published, only the\nnew `versionId`s appear in `Customer.requirements.tos.tosVersions[]`;\nsubmit acceptances for only those new version(s).\n",
"examples": [
{
"acceptedAt": "2026-04-10T12:00:00Z",
"language": "en",
"versionId": "us_individual_2026-05-29"
}
],
"type": "object",
"required": [
"acceptedAt",
"language",
"versionId"
],
"properties": {
"acceptedAt": {
"description": "Timestamp at which the Customer accepted the Terms of Service,\nin ISO 8601 / RFC 3339 format. The server may validate or reject\nobviously non-credible timestamps; when enforcement tightens,\nthe authoritative acceptance time may be recorded server-side\ninstead of trusting client-supplied values alone.\n",
"examples": [
"2026-04-10T12:00:00Z"
],
"type": "string",
"format": "date-time"
},
"language": {
"description": "BCP 47 language tag of the Terms of Service translation the\nCustomer reviewed. At write time the server rejects values that\nare not listed under `languages` on the matching required\ndocument for this Customer (same `versionId` as listed in\n`Customer.requirements.tos.tosVersions[]`).\n",
"examples": [
"en"
],
"type": "string"
},
"versionId": {
"description": "The `versionId` of the Terms of Service document being accepted,\nas listed in `Customer.requirements.tos.tosVersions[]`.\n",
"allOf": [
{
"$ref": "#/components/schemas/TosVersionId"
}
]
}
},
"additionalProperties": false
}Fields§
§accepted_at: DateTime<Utc>Timestamp at which the Customer accepted the Terms of Service, in ISO 8601 / RFC 3339 format. The server may validate or reject obviously non-credible timestamps; when enforcement tightens, the authoritative acceptance time may be recorded server-side instead of trusting client-supplied values alone.
language: StringBCP 47 language tag of the Terms of Service translation the
Customer reviewed. At write time the server rejects values that
are not listed under languages on the matching required
document for this Customer (same versionId as listed in
Customer.requirements.tos.tosVersions[]).
version_id: TosVersionIdThe versionId of the Terms of Service document being accepted,
as listed in Customer.requirements.tos.tosVersions[].