Embedded Tax API

Partners

Server-to-server partner endpoints under https://api.awaken.tax/api.

POST

/crunch

Create a card-program user and accounts

FieldTypeRequiredNotes
userIdstringYes
emailstringNoemail
walletsarrayNo
Request body
{
"userId": "card-user-42",
"email": "user@example.com",
"wallets": [
{
"address": "0xabc…",
"provider": "ethereum",
"name": "Card rewards"
}
]
}
StatusMeaning
201User and supported accounts created
400Validation failed
curl
curl -X POST "https://api.awaken.tax/api/crunch" \
-H "x-client-id: $AWAKEN_CLIENT_ID" \
-H "x-api-secret: $AWAKEN_API_SECRET" \
-H "content-type: application/json" \
--data '{ "userId": "card-user-42", "email": "user@example.com", "wallets": [ { "address": "0xabc…", "provider": "ethereum", "name": "Card rewards" } ] }'
POST

/discount-codes

Create or retrieve a user's discount code

FieldTypeRequiredNotes
referenceIdstringYes
yearintegerNomin 2009, max 2100
Request body
{
"referenceId": "user-42",
"year": 2025
}
StatusMeaning
200Existing code
201Code created
403Secret-key authentication required
curl
curl -X POST "https://api.awaken.tax/api/discount-codes" \
-H "x-client-id: $AWAKEN_CLIENT_ID" \
-H "x-api-secret: $AWAKEN_API_SECRET" \
-H "content-type: application/json" \
--data '{ "referenceId": "user-42", "year": 2025 }'