Send Rewards from Server
Send Rewards (Server)
Send Rewards from Server
Use your API key to send rewards securely from your backend using the Earn API (v2).
POST
Send Rewards from Server
Send rewards securely from your backend using the ZBD Earn API (v2). This method ensures all rewards are issued from a trusted environment, preventing client-side abuse and maintaining full control over reward distribution.Documentation Index
Fetch the complete documentation index at: https://zbd-restructure-docs-earn-focus.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Configuration
Header Parameters
API key used for authentication. Obtain this from the Create an API Key step.
Body Parameters
The recipient’s ZBD Rewards User ID
Reward amount in configured unitsExample:
10 (units defined by your ZBD Customer Success Manager)Response Status Codes
| Code | Description |
|---|---|
201 | Reward sent successfully |
400 | Bad request – invalid parameters |
401 | Unauthorized – invalid or missing API key |
404 | Rewards user not found |
500 | Internal server error |
Response Fields
| Field | Type | Description |
|---|---|---|
success | boolean | Whether the request was successful |
message | string | Response message |
data | array | Array containing transaction details |
transactionId | string | Unique transaction identifier |
Security Reminder, Never expose your API key in client-side code. Always send rewards from your backend server where your API key is securely stored.