Create

View as Markdown

Creates a one-time discount and attaches it to a specific item, order, or shipping rate for an individual customer.

Authentication

x-api-keystring
API Key authentication via header

Request

This endpoint expects an object.
merchantstringRequired
Merchant ID
customerstringRequired
Customer ID
descriptionstringOptional
Description
expiresdateOptional
Date by which Order Must Place to Apply discount
itemstringOptional

Send Item ID to apply a One Time Incentive to a specific item. This field and order are mutually exclusive, but one is required.

orderstringOptional

Send Order ID to apply a One Time Incentive to a specific order. This field and item are mutually exclusive, but one is required.

stacking_typestringOptionalDefaults to base

Choose ‘base’ or ‘additional’ for a standard discount or an additive one (defaults to ‘base’)

external_codestringOptional
External Code
incentiveobjectOptional
Incentive Object

Response

201
One Time Item Discountobject
OR
One Time Order Total Discountobject
OR
One Time Order Shipping Discountobject
OR
One Time Order Total Discount (With Threshold)object
OR
One Time All Order Items Discountobject

Errors

400
Bad Request Error