Customer
Create TOS Link
AuthorizationBearer <token>
JWT Bearer token authentication
In: header
Path Parameters
customer_idstring
The customer's unique ID generated by SpherePay upon customer creation.
Match
^customer_[a-z0-9]+$
Response Body
curl -X POST "https://api.sandbox.spherepay.co/v2/customer/customer_1ab2c3d4/tos-link"
{
"link": "https://staging.spherepay.co/tos?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJjdXN0b21lcl82OGYxYzA4OTcwMzk0NWU3YmJmZjZmMDRiZjFjNTA0MSIsImFwcGxpY2F0aW9uSWQiOiJhcHBsaWNhdGlvbl84MmE4N2JkYmVjZTk0MDdmYjg2MTM1Nzc1NGU4NWFjMCIsImlhdCI6MTc0NTE3NzI0MSwiZXhwIjoxNzQ1MTgwODQxfQ.3BgzpT6wSY0bge7gZLXwwE5dX7u0Y-qUCfPBcc5XXsw"
}
{
"ts": "2025-04-20T19:27:50.587Z",
"error": {
"general": "Customer customer_68f1c089703945e7bbff6f04bf1c5041a DNE for user. Please check that you are correctly specifying both the id and mock query param if in use."
}
}