AddSubscription
| Field | Type | Required | Description |
|---|---|---|---|
code |
string |
Subscription code. This needs to be unique within every user | |
subscriptionType |
string |
yes | Type of subscription one of: productInventoryRestocked |
entityType |
string |
yes | The entity for which the subscription should be created one of: product |
entityId |
string |
yes | Id of the referenced entity, depending on entity type |
status |
string |
one of: active, inactive, triggered |
|
params |
object |
Additional subscription properties |
Example
Section titled “Example”{ "code": "default", "subscriptionType": "productInventoryRestocked", "entityType": "product", "entityId": "p1", "status": "active", "params": {}}
