cURL
Get Campaign Details API
Fetch the products/vouchers included in a specific campaign by campaign ID.
Real URL: POST https://stagingstores.xoxoday.com/chef/v1/oauth/api
POST
cURL
| **Property ** | ** Type ** | ** Description** |
|---|---|---|
campaignId | Int | Unique identifier of the campaign to fetch. |
Response Schema
| **Property ** | ** Type ** | ** Description** |
|---|---|---|
| data | object | Root response object. |
| data.campaignDetails | object | Container for campaign details. |
| data.campaignDetails.success | number | API execution status (1 = success). |
| data.campaignDetails.data | array | List containing campaign detail entries. |
| data.campaignDetails.data[].campaignId | number | Unique campaign ID. |
| data.campaignDetails.data[].campaignName | string | Name of the campaign. |
| data.campaignDetails.data[].denomination_value | number | Denomination/value associated with the campaign. |
| data.campaignDetails.data[].currency_code | string | Currency code for denomination. |
| data.campaignDetails.data[].countryName | string | Applicable country for the campaign. |
| data.campaignDetails.data[].vouchers | array | List of vouchers/products associated with this campaign. |
| data.campaignDetails.data[].vouchers[].name | string | Voucher/product name. |
| data.campaignDetails.data[].vouchers[].image | string | Image URL for the voucher/product. |
Authorizations
Authorization: Bearer <access_token>
Body
application/json
Response
Campaign details returned successfully.
