Get Campaign Options
curl --request GET \
--url https://omnicommerce.sg/api/v1/campaigns/options \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://omnicommerce.sg/api/v1/campaigns/options', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.sg/api/v1/campaigns/options"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"members": [
{
"id": "<string>",
"name": "<string>",
"email": "<string>"
}
],
"stores": [
{
"marketplace": "shopify",
"country": "<string>",
"storeId": "<string>",
"storeName": "<string>",
"isDefaultPublish": true,
"dbsHazmatApproved": true
}
],
"promotionStores": [
{
"marketplace": "lazada",
"country": "<string>",
"storeId": "<string>",
"storeName": "<string>",
"currency": "<string>"
}
]
}Campaigns
Get Campaign Options
List the organization members and connected stores a campaign plan can name. Use a member id for ownerId and approverId. Requires promotions:write.
GET
/
api
/
v1
/
campaigns
/
options
Get Campaign Options
curl --request GET \
--url https://omnicommerce.sg/api/v1/campaigns/options \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://omnicommerce.sg/api/v1/campaigns/options', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.sg/api/v1/campaigns/options"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"members": [
{
"id": "<string>",
"name": "<string>",
"email": "<string>"
}
],
"stores": [
{
"marketplace": "shopify",
"country": "<string>",
"storeId": "<string>",
"storeName": "<string>",
"isDefaultPublish": true,
"dbsHazmatApproved": true
}
],
"promotionStores": [
{
"marketplace": "lazada",
"country": "<string>",
"storeId": "<string>",
"storeName": "<string>",
"currency": "<string>"
}
]
}Authorizations
Bearer API key for server-to-server access. Session auth is also supported in first-party UI flows.
Query Parameters
Optional organization scope for session-authenticated calls. OAuth client credentials resolve the organization from the token.
Maximum string length:
120Response
Members and connected stores.