Tokens/Points
Creates a new order for a points campaign. This endpoint is used when you want to award specific points to recipients.
Authorizations
x-gft_api_keystringRequired
API key for authentication (can also use x-gft-api-key or gft-api-key)
Path parameters
campaignPointsIdstringRequiredExample:
The unique identifier for the points campaign
campaign_456Body
contactsstring · email[]RequiredExample:
Recipients of the order as email addresses
recipient@example.comtitlestringOptionalExample:
Optional title for the order
Gold Points RewarddescriptionstringOptionalExample:
Optional description for the order
Reward for completing the surveyResponses
201
Order created successfully
application/json
Response from creating an order
orderIdstringOptionalExample:
Unique identifier for the created order
order_12345statusstring · enumOptionalExample:
Current status of the order
createdPossible values: 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/gcm/reseller/campaign/{campaignPointsId}/order
POST /api/v1/gcm/reseller/campaign/{campaignPointsId}/order HTTP/1.1
Host: api.giftoin.org
x-gft_api_key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 304
{
"contacts": [
"recipient@example.com"
],
"thirdPartyUserIds": [
{
"type": "discord",
"id": "123456789012345678"
}
],
"title": "Gold Points Reward",
"description": "Reward for completing the survey",
"items": {
"points": [
{
"id": "point_789",
"quantity": 100
}
]
},
"metadata": {
"source": "winter_promotion",
"department": "marketing"
}
}{
"orderId": "order_12345",
"status": "created"
}Last updated