Subscriptions represent the revenue that is occurring over time with payments of varying amounts and payment dates (installment subscription) or over fixed intervals of time with payments of the same amount (recurring subscription).
Returns details of an installment or a recurring subscription.
2
/v1/subscriptions/{id}
id
integer
required
The ID of the subscription
OK
Returns details of an installment or a recurring subscription by the deal ID.
2
/v1/subscriptions/find/{dealId}
dealId
integer
required
The ID of the deal
OK
Returns all payments of an installment or recurring subscription.
20
/v1/subscriptions/{id}/payments
id
integer
required
The ID of the subscription
OK
Adds a new recurring subscription.
10
/v1/subscriptions/recurring
application/json
deal_id
integer
required
The ID of the deal this recurring subscription is associated with
currency
string
required
The currency of the recurring subscription. Accepts a 3-character currency code.
description
string
The description of the recurring subscription
cadence_type
string
required
The interval between payments
Values
weekly
monthly
quarterly
yearly
cycles_count
integer
Shows how many payments the subscription has. Note that one field must be set: cycles_count
or infinite
. If cycles_count
is set, then cycle_amount
and start_date
are also required.
cycle_amount
integer
required
The amount of each payment
start_date
string
required
The start date of the recurring subscription. Format: YYYY-MM-DD
Format
date
infinite
boolean
This indicates that the recurring subscription will last until it's manually canceled or deleted. Note that only one field must be set: cycles_count
or infinite
.
payments
array
Array of additional payments. It requires a minimum structure as follows: [{ amount:SUM, description:DESCRIPTION, due_at:PAYMENT_DATE }]. Replace SUM with a payment amount, DESCRIPTION with an explanation string, PAYMENT_DATE with a date (format YYYY-MM-DD).
update_deal_value
boolean
Indicates that the deal value must be set to recurring subscription's MRR value
OK
Adds a new installment subscription.
10
/v1/subscriptions/installment
application/json
deal_id
integer
required
The ID of the deal this installment subscription is associated with
currency
string
required
The currency of the installment subscription. Accepts a 3-character currency code.
payments
array
required
Array of payments. It requires a minimum structure as follows: [{ amount:SUM, description:DESCRIPTION, due_at:PAYMENT_DATE }]. Replace SUM with a payment amount, DESCRIPTION with an explanation string, PAYMENT_DATE with a date (format YYYY-MM-DD).
update_deal_value
boolean
Indicates that the deal value must be set to the installment subscription's total value
OK
Updates a recurring subscription.
10
/v1/subscriptions/recurring/{id}
id
integer
required
The ID of the subscription
application/json
description
string
The description of the recurring subscription
cycle_amount
integer
The amount of each payment
payments
array
Array of additional payments. It requires a minimum structure as follows: [{ amount:SUM, description:DESCRIPTION, due_at:PAYMENT_DATE }]. Replace SUM with a payment amount, DESCRIPTION with an explanation string, PAYMENT_DATE with a date (format YYYY-MM-DD).
update_deal_value
boolean
Indicates that the deal value must be set to recurring subscription's MRR value
effective_date
string
required
All payments after that date will be affected. Format: YYYY-MM-DD
Format
date
OK
Updates an installment subscription.
10
/v1/subscriptions/installment/{id}
id
integer
required
The ID of the subscription
application/json
payments
array
required
Array of payments. It requires a minimum structure as follows: [{ amount:SUM, description:DESCRIPTION, due_at:PAYMENT_DATE }]. Replace SUM with a payment amount, DESCRIPTION with a explanation string, PAYMENT_DATE with a date (format YYYY-MM-DD).
update_deal_value
boolean
Indicates that the deal value must be set to installment subscription's total value
OK
Cancels a recurring subscription.
10
/v1/subscriptions/recurring/{id}/cancel
id
integer
required
The ID of the subscription
application/json
end_date
string
The subscription termination date. All payments after the specified date will be deleted. The end_date of the subscription will be set to the due date of the payment to follow the specified date. Default value is the current date.
Format
date
OK
Marks an installment or a recurring subscription as deleted.
6
/v1/subscriptions/{id}
id
integer
required
The ID of the subscription
OK