API reference
Discounts operations
Discount codes, tags, placements and targets. Operations, access levels and variables. Part of the MISSIN public API: call it with an API key, or from an AI…
| Operation | Access | Summary |
|---|---|---|
| AddDiscountPlacements | Write | Place discount codes on a store or email connection; the codes are pushed to the provider. |
| BulkRemoveTagFromWorkspaceDiscounts | Write | Remove a tag from every discount code in the workspace. Irreversible. |
| BulkRenameTagAcrossWorkspaceDiscounts | Write | Rename a tag on every discount code in the workspace. |
| BulkSyncDiscountCodes | Write | Re-push the selected discount codes to their providers. |
| BulkUpdateDiscountCodeStatus | Write | Set the status of many discount codes at once; each code is clamped to what it allows. |
| CreateDiscountCode | Write | Create a discount code and, with connectionId, place it on that store. |
| DeleteDiscountCode | Write | Delete a discount code here and at its providers. Irreversible. |
| DiscountCampaigns | Read | List the campaigns a discount code is linked to. |
| DiscountChanges | Read | Page through a discount code's change history and provider sync state. |
| DiscountCodeAliasExists | Read | Check whether codes are already used as a code or alias in this workspace. |
| DiscountCodeFormResponses | Read | Form responses that used one discount code. |
| DiscountCodeOrders | Read | Page through orders that used one discount code, with revenue totals. |
| DiscountCodeOrderSeries | Read | Daily order count and revenue series for one discount code. |
| DiscountCodePartners | Read | The partner one discount code belongs to. |
| DiscountCodeResponseSeries | Read | Daily form-response series for one discount code, total and attributed. |
| DiscountCodesAggregatesFiltered | Read | Totals across the discount codes matching a filter: count, usage and value. |
| DiscountCodesList | Read | List discount codes with filter, sort and offset paging: code, value, status, usage and tags. |
| DiscountCodeTagFacets | Read | List discount tags with their colour and usage count. |
| DiscountDetail | Read | Get one discount code by id with orders, revenue, partner, placements and incentive rules. |
| DiscountPlacementsByCode | Read | List where one discount code is placed (store, email platform) and each placement's sync state. |
| DiscountPlacementTargets | Read | List the products and collections a discount code's placements target. |
| RemoveDiscountPlacement | Write | Remove a discount placement and delete it at the provider. Irreversible. |
| ResyncDiscountPlacement | Write | Re-queue a discount placement's push to its provider. |
| SearchPlacementTargets | Read | Search a store connection's products or collections to target with a discount. |
| SetDiscountTagColor | Write | Set a discount tag's colour. |
| SetPlacementTargets | Write | Replace the products and collections a discount placement targets. |
| SyncAllDiscountCodes | Write | Re-push every discount code to its providers. |
| UpdateDiscountCode | Write | Update a discount code and push the change to its placements. |
| UpdateDiscountPlacementChild | Write | Edit the provider-specific fields of one discount placement. |
| WithdrawDiscountPlacement | Write | Withdraw a discount placement without deleting the code. |