Terms of Service
Accept Terms of Service
Changed onUpdates an existing ToS acceptance record with the agreement acceptance fields and acceptance timestamp. This is the second step in the two-step process: you must first call initiate to get an ID, then call this endpoint with that ID when the user accepts the agreements. This endpoint captures IP address and user agent for audit purposes.
post/v1/tos/{id}/accept
Request
- Base URLhttps://sandbox.api.infinite.dev
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
ToS acceptance ID
Request body
Example request
{
"infiniteAgreementsAccepted": true,
"ereborAgreementsAccepted": true,
"oneMoneyAgreementsAccepted": true,
"dueAgreementsAccepted": true,
"customerId": "cus_abc123"
}Response
ToS accepted successfully
Example response
{
"success": true,
"message": "Terms of Service accepted successfully",
"acceptanceId": "tos_abc123"
}Changes
- info
added the new optional request property
- info