Create a store
POST /stores
/storesConnects an online store to an audience. From then on its customers, products and orders can be sent to Easymailing to track revenue and trigger automations.
When to use: When a shop is set up for the first time, before sending its customers, products or orders. Customers of the store are subscribed to the audience.
When not to use: To change a store that already exists use update_store.
Permissions: Requires the manager role or higher, or the marketing.audiences.write capability.
Value for the X-Auth-Token header parameter.
In: header
The new Store resource
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://api.easymailing.com/stores" \ -H "X-Auth-Token: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "resource_id": "string", "name": "string", "domain": "http://example.com", "platform": "string", "locale": "string", "timezone": "string", "audience": "string", "group": "/entity/1" }'{ "resource_id": "string", "name": "string", "domain": "http://example.com", "platform": "string", "locale": "string", "timezone": "string", "audience": "string", "group": "/entity/1", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}