Collectibles/Cards
Creates a new order for a collectibles campaign. This endpoint is used when you want to award specific collectibles to recipients.
API key for authentication (can also use x-gft-api-key or gft-api-key)
The unique identifier for the collectibles campaign
campaign_456Recipients of the order as email addresses
recipient@example.comOptional title for the order
Winter Collection RewardOptional description for the order
Reward for completing the challengeOrder created successfully
Response from creating an order
Unique identifier for the created order
order_12345Current status of the order
createdPossible values: Bad Request - Missing or invalid parameters
Unauthorized - API key is missing or invalid
Campaign not found
POST /api/v1/gcm/reseller/campaign/{campaignCollectiblesId}/order HTTP/1.1
Host: api.giftoin.org
x-gft_api_key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 258
{
"contacts": [
"recipient@example.com"
],
"thirdPartyUserIds": [
{
"type": "discord",
"id": "123456789012345678"
}
],
"title": "Winter Collection Reward",
"description": "Reward for completing the challenge",
"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