Achieve Social Campaign
Mark a social campaign as achieved for a customer and grant the configured reward from your backend.
v4.0 and v4.1.
If your system uses different customer IDs across multiple channels (e.g., online and offline), include the customer’s mobile number or email (based on your merging configuration) to help Gameball identify the correct profile.For more information, see the Omni-Channel Handling Guide.
202 Accepted) means the request was accepted, not that the reward was granted. Gameball schedules the achievement and processes it within a few minutes. The configured reward is applied shortly after, and an activity is recorded on the customer’s profile.When to Use
- A customer performs a social action that you verify on your side (followed a page, shared a link, joined a group, etc.).
- You want Gameball to grant that customer the configured social campaign reward (points, coupon, etc.).
How It Works
- The request is accepted immediately (
202) — the points or reward are not granted synchronously in the same call. - Gameball schedules the achievement and processes it within a few minutes (a short, randomized delay).
- Duplicate protection: the same
customerId+challengeIdcannot be triggered again within a short window — a repeat call is rejected (see Errors). - Repeatability is respected: a customer only earns the campaign as many times as the campaign configuration allows (e.g., a one-time “Facebook Friend” campaign is granted once; subsequent attempts are ignored).
- Eligibility still applies: the customer must exist and be eligible for the campaign (audience, targeting, active dates, etc.). If the campaign is not achievable for that customer, no reward is granted.
- Reward depends on the campaign: the customer receives whatever that social campaign is configured to give. If the campaign has no points configured, the achievement is recorded but no points are added.
Response
On success, the endpoint returns HTTP202 Accepted.
gameballStatus, message, and learnMore block (consistent with other V4 endpoints). These fields are omitted while Gameball is enabled.
Errors
| HTTP | Code | Message (example) | Meaning |
|---|---|---|---|
400 | 3000 | customer id is missing | customerId was not provided. |
400 | 3000 | rewards campaign handle is missing | challengeId was not provided. |
400 | 4000 | can't send this action multiple times | The same customer + campaign was already submitted within the dedup window. |
401 | 1006 | your request is missing the secret key. | Missing or invalid secret key. |
404 | 4004 | customer does not exist | No customer with that customerId was found. |
500 | — | generic error | Unexpected server error. |
Limitations
- Asynchronous: success means “accepted,” not “rewarded.” If a flow needs immediate confirmation of points, this endpoint is not the right fit.
- Idempotency window: the short dedup window prevents accidental double submissions; it is not a permanent idempotency key.
- Reward visibility: the resulting reward and activity appear on the customer’s profile and activity log in the dashboard once processed.
Body
Social challenge achievement payload.
The customer's unique ID in your system. The customer must already exist in Gameball.
100"customer_123"
The ID of the Social Activities campaign to award.
x >= 111664
Customer's email address. Helps identify the customer when channel merging is enabled.
"john.doe@example.com"
Customer's mobile number. Helps identify the customer when channel merging is enabled.
"+1234567890"
Response
Social challenge achievement accepted for processing
The customer ID from the request.
"customer_123"
The social campaign ID from the request.
11664
Present when the Gameball program is disabled. Omitted while Gameball is enabled.
Informational message when the Gameball program is disabled.
Link to learn more when the Gameball program is disabled.