Storefront growth

Create a storefront promotion

POST
/v1/stores/{storeId}/growth/promotions

Authorization

AuthorizationBearer <token>

API key from Settings → API keys

In: header

Path Parameters

storeId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/stores/string/growth/promotions" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "enabled": true,    "mode": "content",    "presentation": "modal",    "translations": [      {        "locale": "string",        "title": "string",        "body": "string"      }    ],    "audience": {},    "trigger": "delay",    "delaySeconds": 0,    "frequencyHours": 1  }'
{  "name": "string",  "enabled": true,  "mode": "content",  "presentation": "modal",  "translations": [    {      "locale": "string",      "title": "string",      "body": "string",      "actionLabel": "string"    }  ],  "audience": {    "paths": [      "string"    ],    "countries": [      "st"    ],    "devices": [      "desktop"    ]  },  "couponCode": "string",  "rewardVariantId": "ac968c9b-6ec3-424c-9f9e-a36a5da52eb0",  "actionUrl": "string",  "trigger": "delay",  "delaySeconds": 0,  "frequencyHours": 1,  "startsAt": "string",  "endsAt": "string",  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "createdAt": "string",  "updatedAt": "string"}