curl --request POST \
--url http://app.localhost:3000/api/public/v1/offers/create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"offerTitle": "<string>",
"enabled": true,
"triggers": [
{
"productId": "<string>"
}
],
"offers": [
{
"productId": "<string>",
"variantId": "<string>",
"priceId": "<string>",
"title": "<string>",
"titleTrans": {}
}
],
"orderBumpOffers": [
{
"productId": "<string>",
"variantId": "<string>",
"priceId": "<string>",
"precheck": true,
"overrideImageUrl": "<string>",
"id": "<string>",
"quantity": 1,
"titleTrans": {},
"descriptionTrans": {},
"displayPrice": true,
"displayCompareAtPrice": false,
"compareAtPriceDiscount": 20,
"rules": []
}
],
"storeId": "<string>"
}
'