Branded SP Integration Flows
Overview
Branded SP tokens (partner-specific points) are designed to be fully interoperable with the universal SP token. All Branded SP are backed 1:1 by SP, which in turn is backed 1:1 by a basket of stablecoins. This unlocks native interoperability and ecosystem functionality for all reward points.
Flow 1: SP → Branded SP (Minting)
When users want to convert SP into Branded SP (partner points):
Source Platform Spree API Partner Platform
│ │ │
│─── Check whitelist ─────────▶│ │
│ GET .../whitelist/mint/...│ │
│ │ │
│─── Add to whitelist ────────▶│ (if needed) │
│ PUT .../whitelist/mint/...│ │
│ │ │
│─── Send webhook ────────────────────────────────────────▶│
│ { user_id, wallet, amount, txn_id } │
│ │ │
│◀──────────────────── Confirmation ──────────────────────│Sequence:
User initiates conversion on source platform
Source backend verifies user's SP balance
Source backend locks/burns SP from user's wallet
Source backend calls Spree API to check whitelist status
If not whitelisted, source backend adds EOA to mint whitelist
Source backend sends webhook to partner system
Partner system credits user's Branded SP balance
Partner confirms completion via callback webhook
Processing Time: < 30 seconds
Flow 2: Branded SP → SP (Redemption)
When users want to convert Branded SP back to SP:
Sequence:
User initiates redemption on partner platform
Partner verifies user's Branded SP balance
Partner debits Branded SP from user's balance
Partner calls Spree API:
POST .../redeem/createSpree creates pending redemption request (enters delay period)
After delay period, executor calls:
POST .../redeem/finalizeSP tokens minted/transferred to user's wallet
Confirmation webhook sent to partner
Processing Mode Comparison
Processing
Near-instant (< 30s)
Async with delay
Delay Period
None
Configurable, but needs to be redeemed by EXECUTOR authority
Confirmation
Webhook callback
Webhook callback
Cancellable
No
During delay period only
Last updated