The Smart Gift API provides a robust and scalable interface for integrating voucher sales and redemptions into your online shop, EPOS system, or mobile/web applications.
hold endpoint to temporarily reserve a voucher for redemption, ensuring the value remains available during multi-step processes.All requests must be authenticated using an API Key provided in the Smart-Auth header.
https://api.devsmartgift.co.ukhttps://api.smart-gift.co.ukAll requests must be made over HTTPS and include the following headers:
Smart-Auth: Your secret API key.Content-Type: application/jsonAccept: application/json| Method | Endpoint | Description |
|---|---|---|
GET |
/vouchers |
List all available vouchers (monetary and experience). |
POST |
/pos-sale |
Create a new voucher order/sale. |
GET |
/payment-methods |
Retrieve available payment methods for orders. |
POST |
/redeem |
Redeem a voucher (monetary value or experience sum). |
POST |
/redeem/hold |
Reserve a voucher for 5 minutes and receive a hold_token. |
The API uses standard HTTP status codes. Most client-side errors return a 422 Unprocessable Entity status with a detailed JSON body explaining the validation failure.
The API is limited to 60 requests per minute. You can monitor your usage via the following response headers:
X-RateLimit-Limit: The total allowed requests per window.X-RateLimit-Remaining: The number of requests remaining in the current window.X-RateLimit-Reset: The Unix timestamp when the limit resets.