Skip to main content

V2

This topic shows information relevant specifically for Subscribe REST API version 20210401 referred to as V2 Discount Tickets are wrappers for campaign codes,which provide a discount as defined in a Campaign. They allow you to offer multiple campaign discounts simultaneously as an array to Subscriptions and to manage the application of these discounts. Use this call to apply a single Discount Ticket to an existing subscription. The Discount Ticket can be applied to all the subscription items or to specific ones. For more details, see Discount Tickets.

HTTP Request

POST https://api.vindicia.com/subscriptions/:subscription/actions/add_discount_ticket

Route (URL) Parameters

Query Parameters

Accepts

A Discount Ticket object.

Returns

JSON - A full Subscription object.

Example Request

In this example, we are adding a discount ticket to any of the subscription’s objects to which its applicable (based on the campaign’s definitions). In the result we show that was applicable to a subscription Item and the billing plan.

Example Response

The above command returns JSON structured like this:
Parent topic:Subscriptions