Tags
Tags can be created and attached to customers, orders, club memberships or reservations.
Tag object
{
"id": "b5a2503f-396b-4f90-85e9-44d39d6c8319",
"title": "state",
"objectType": "Customer",
"type": "Dynamic",
"appliesToCondition": "One or more conditions",
"createdAt": "2019-08-15T19:17:50.699Z",
"updatedAt": "2020-03-01T23:12:41.617Z",
"conditions": [{
"id": "c31718c2-7bc7-4bc9-a9de-b68037d5d744",
"appliesTo": "State",
"condition": "is equal to",
"value": "BC"
}],
"backPopulate": {
"currentPage": 5,
"totalPages": 5,
"cursor": "fa5c3a28-4058-4506-bdfe-31a22ed8e1e4",
"status": "Completed",
"processDate": "2020-03-01T23:12:41.617Z"
}
}ENUMs
| Field | Value |
|---|---|
type |
|
objectType |
|
appliesToCondition |
|
condition |
|
Tag conditions
Conditions are used for Dynamic Tags to automatically apply them based on a set of properties. Supported conditions vary based on the type of tag.
| Type | Conditions | Value |
|---|---|---|
order | is equal to |
|
order | is greater thanis less than |
|
customer | is equal to |
|
customer | is greater thanis less than |
|
Create tag
POST /tag/{:objectType(customer|club-membership|order|reservation)}
Request
{
"title": "My First Tag",
"type": "Manual"
}Response
tag object
Retrieve tag
GET: /tag/{:objectType(customer|club-membership|order|reservation)}/{:id}
Response
tag object
Update tag
PUT /tag/{:objectType(customer|club-membership|order|reservation)}/{:id}
Request
{
"title": "My First Tag Update",
"type": "Manual"
}Response
tag object
Delete tag
DELETE /tag/{:objectType(customer|club-membership|order|reservation)}/{:id}
Response
Blank object and 204 status
List tags
GET /tag/{:objectType(customer|club-membership|order|reservation)}
Response
An array of tag objects and total count
{
"tags": [{
"id": "ba333a08-f72c-47f3-bee7-800ae3fe6453",
"title": "Customer Manual Tag",
"objectType": "Customer",
"type": "Manual",
"appliesToCondition": null,
"createdAt": "2020-03-23T20:59:32.525Z",
"updatedAt": "2020-03-23T20:59:32.525Z",
"conditions": []
},
{
"id": "703d758d-111f-4ecc-a48d-4887758574ee",
"title": "My First Tag Update",
"objectType": "Customer",
"type": "Manual",
"appliesToCondition": null,
"createdAt": "2020-03-23T20:59:43.204Z",
"updatedAt": "2020-03-23T21:22:29.702Z",
"conditions": []
},
{
"id": "b5a2503f-396b-4f90-85e9-44d39d6c8319",
"title": "state",
"objectType": "Customer",
"type": "Dynamic",
"appliesToCondition": "One or more conditions",
"createdAt": "2019-08-15T19:17:50.699Z",
"updatedAt": "2020-03-01T23:12:41.617Z",
"conditions": [{
"id": "c31718c2-7bc7-4bc9-a9de-b68037d5d744",
"appliesTo": "State",
"condition": "is equal to",
"value": "BC"
}],
"backPopulate": {
"currentPage": 5,
"totalPages": 5,
"cursor": "fa5c3a28-4058-4506-bdfe-31a22ed8e1e4",
"status": "Completed",
"processDate": "2020-03-01T23:12:41.617Z"
}
}
],
"total": 3
}Updated 2 days ago
