curl --request POST \
--url https://stagingstores.xoxoday.com/chef/v1/oauth/api/generateLink \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "xoxo_link.mutation.generateLink",
"tag": "xoxo_link",
"variables": {
"data": {
"campaignId": 123,
"links_quantity": 1,
"link_expiry": "19-03-1999"
}
}
}
'{
"data": {
"generateLink": {
"success": 1,
"message": "Links generated successfully",
"links": [
"https://plum.xoxoday.com/claim/abc123",
"https://plum.xoxoday.com/claim/def456"
],
"batchId": "batch_20260415_001",
"campaignName": "Summer Rewards",
"campaignId": "123",
"denomination_value": 10,
"countryName": "USA",
"currencyCode": "USD"
}
}
}Generate reward links in bulk without needing recipient email addresses. Ideal for reward automation where links are distributed via your own channels.
curl --request POST \
--url https://stagingstores.xoxoday.com/chef/v1/oauth/api/generateLink \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "xoxo_link.mutation.generateLink",
"tag": "xoxo_link",
"variables": {
"data": {
"campaignId": 123,
"links_quantity": 1,
"link_expiry": "19-03-1999"
}
}
}
'{
"data": {
"generateLink": {
"success": 1,
"message": "Links generated successfully",
"links": [
"https://plum.xoxoday.com/claim/abc123",
"https://plum.xoxoday.com/claim/def456"
],
"batchId": "batch_20260415_001",
"campaignName": "Summer Rewards",
"campaignId": "123",
"denomination_value": 10,
"countryName": "USA",
"currencyCode": "USD"
}
}
}Documentation Index
Fetch the complete documentation index at: https://help-plum.xoxoday.com/llms.txt
Use this file to discover all available pages before exploring further.
| Property | Type | Description |
|---|---|---|
campaignId | String | Unique identifier of the campaign for which the link(s) should be generated. |
links_quantity | Int | Number of links to generate. |
link_expiry | String | Expiry date for the link(s) (format: DD-MM-YYYY). |
| Path | Type | Description |
|---|---|---|
| data | object | Root response object. |
| data.generateLink | object | Container for link generation result. |
| data.generateLink.success | number | API execution status (1 = success). |
| data.generateLink.message | string | Message returned by the API. |
| data.generateLink.links | array | List of generated reward/claim links. |
| data.generateLink.links[] | string | Individual generated link URL. |
| data.generateLink.batchId | string | Unique batch identifier for the generated link set. |
| data.generateLink.campaignName | string | Name of the campaign for which links were generated. |
| data.generateLink.campaignId | string | Campaign ID (string returned by API). |
| data.generateLink.denomination_value | number | Denomination/value associated with the generated links. |
| data.generateLink.countryName | string | Country for which the link campaign applies. |
| data.generateLink.currencyCode | string | Currency code for the denomination. |
Authorization: Bearer <access_token>
Links generated successfully.
Show child attributes