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