Skip to main content
POST
/
upgrade-to-shakesco
Upgrade to Shakesco
curl --request POST \
  --url https://tokens.shakesco.com/upgrade-to-shakesco \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "customer_ref": "<string>",
  "amount": 123
}
'
{ "tx_hash": "0xdef456..." }

Documentation Index

Fetch the complete documentation index at: https://docs.shakesco.com/llms.txt

Use this file to discover all available pages before exploring further.

For the complete documentation index, see llms.txt. One-time migration endpoint. Use this to seed a customer’s Shakesco managed balance with the points they accumulated in your previous loyalty system. Each customer can only be upgraded once: subsequent calls return 409 Event already claimed. See the full Migration Guide for a step-by-step walkthrough including the cutover process.
Treat this as a transaction. If you don’t get a response, verify with /balance before retrying.

Request Body

customer_ref
string
required
Your unique identifier for this customer
amount
number
required
The customer’s legacy points balance to credit. Decimals allowed.

Response

tx_hash
string
Reference identifier for the migration
await fetch("https://tokens.shakesco.com/upgrade-to-shakesco", {
  method: "POST",
  headers: { Authorization: `Bearer ${API_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({ customer_ref: "customer-123", amount: 250 }),
});
{ "tx_hash": "0xdef456..." }