Collectibles/Random Cards
Creates a new order for a random collectibles campaign. This endpoint is used when you want to award random collectibles to recipients.
Authorizations
Path parameters
campaignRandomIdstringRequiredExample:
The unique identifier for the random collectibles campaign
campaign_456
Body
contactsstring · email[]RequiredExample:
Recipients of the order as email addresses
[email protected]
titlestringOptionalExample:
Optional title for the order
Mystery Card Reward
descriptionstringOptionalExample:
Optional description for the order
Random card from our new collection
Responses
201
Order created successfully
application/json
400
Bad Request - Missing or invalid parameters
application/json
401
Unauthorized - API key is missing or invalid
application/json
404
Campaign not found
application/json
post
POST /api/v1/gcm/reseller/campaign/{campaignRandomId}/order HTTP/1.1
Host: api.giftoin.org
x-gft_api_key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 186
{
"contacts": [
"[email protected]"
],
"title": "Mystery Card Reward",
"description": "Random card from our new collection",
"metadata": {
"source": "winter_promotion",
"department": "marketing"
}
}
{
"orderId": "order_12345",
"status": "created"
}
API Reference Notice
We are currently experiencing a technical issue with the API reference display in GitBook. For the most accurate and complete API documentation, please refer to our official API reference on Postman.
We apologize for any inconvenience and are working to resolve this issue. Thank you for your understanding.
Last updated
Was this helpful?