Legacy /api paths
The API reference describes the /v2 paths, for example https://api.spendstream.io/v2/getBrands. Some integrations built before /v2 still call the older /api/ paths, for example https://api.spendstream.io/api/getBrands. These keep working, and this page lists where they answer differently from /v2.
New integrations should use /v2. If you’re on /api/, you don’t have to move, and we’ll give you plenty of notice before anything changes. When you’re ready, moving is mostly a change of base address.
Same as /v2
For these, only the base address differs. The request and the response are the same as in the API reference:
getToken,getUsersList,updateUser/UpdateUser,addUserLogs/AdduserLogs,submitRemindgetCategories,getPromotionsList/getPromotions-list,checkPBalancegiftCardRequestApi/GiftCardRequestApi,paymentLink/PaymentLink,cancelPaymentLink,getOrderStatusgetBanksList,getPayByBankLink,getTopUpLink,getTopUpStatusgetCashback/Getcashback,voucherCodes/voucher_codes,cashbackClaim,cashbackClaims
addNewUser on /api/ takes the same fields and gives the same answer as on /v2.
Different from /v2
getBrands
/api/getBrands sends the brand text under older names, and a few extra fields:
|
|
|---|---|
|
|
|
|
| not sent; use |
| not sent; use |
Everything else is the same, including client-commission.
GiftCardBalanceCheck
/api/GiftCardBalanceCheck (and /api/giftCardBalanceCheck) returns the balance as available_blanace, the misspelt name. A live check also sends available_balance, but an answer from the five-minute cache sends only available_blanace. So on /api/, read available_blanace. On /v2, read available_balance.
getTransactionsList
/api/getTransactionsList sends the same fields as /v2, plus two older ones: amount-spend (same value as total-spendAmount) and, on gift card rows, total-comission (a misspelling of total-commission). Read total-spendAmount and total-commission, which work on both.
/api/getTransactionsList and /api/markAsPaid are served by an older copy of the code. New additions are built and tested on /v2 first, so if a field in the API reference is missing on /api/, use /v2.
Only on /api
Path | Use instead |
|---|---|
|
|
|
|
On /v2, both answer 410 with the path to use.
Moving to /v2
- Change the base address from
.../api/to.../v2/. Your token, signing and request bodies don’t change. - On
getBrands, readhow-it-worksandimportant-infoinstead ofbenefitsandimprtant-info. - On
giftCardBalanceCheck, readavailable_balance. - Test on staging (
https://staging-api.spendstream.io/v2) before you switch production.
Tell your Spendstream contact when you’ve moved, so we can check our logs with you.
On this page
- Legacy /api paths