Create subscription
POST /api/subscriptions/v1/subscriptions
Create subscription
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ”User access token.
Request Body
Section titled “Request Body ”object
Controls whether the subscription should automatically renew after the due date.
Example
trueThe URL where asynchronous subscription updates will be sent.
Example
https://subscription-callback-updates.urlobject
User ID in external system
Based on your choice in type field, one of the fields becomes required too.
object
object
object
object
object
object
object
object
Color theme of checkout for the hosted payment mode
Locale of checkout for the hosted payment mode
object
Project API key to delegate recurrent payments to.
Example
5c226db4-c088-43f5-8d7a-809ac3718d66Description for the subscription.
Example
My subscription descriptionIdentifier to link the subscription within partner system. Currently used by Rozetka only.
Example
9i8h7g6f5e4dIdentifier to link the subscription within partner system. Currently used by Rozetka only.
Example
1a2b3c4d5eThe corresponding plan identifier.
Example
d38bdf4e-cbd8-46f5-87fa-538dd7618731Subscription price in main currency units. For example, value of 30 equals 30 UAH subscription price. In case the price is not specified or has value of 0, plan price will be used instead.
Example
3000The recurrent id for the subscription payments.
Example
593292035525113984The URL where user will be redirected after successful payment.
Example
https://redirect-after-successful-payment.urlThe start date of the subscription. Date-time should be specified in RFC3339 format, UTC timezone.
Example
2025-07-14T10:12:04ZThe amount of trial periods assigned to the subscription.
Example
2Specifies, whether to apply periodic payments for trial subscription instead of single initial payment in case trial_periods value is more than one.
Example
trueIdentifier to link the subscription within partner system. Currently used by Rozetka only.
Example
5e4d3c2b1aControls whether the subscription should use the plan price instead the of the price provided in subscription data when the automatic subscription renew is performed.
Example
trueCallbacks
Section titled “ Callbacks ”SubscriptionCallback
Section titled “SubscriptionCallback”HTTP call with subscription and payment data is performed when subscription is updated. When an event isn’t related to a payment, the payment field may be omitted.
Request Body
Section titled “Request Body ”object
Callback events:
payment.processed- the initial or renew payment for the subscription has been successfully processed, subscription has switched to the active state. For the initial payment the subscription.start_date param is on the same date with the payment.processed_at. For the renew payment the subscription.start_date param is on the prior date relative to payment.processed_at. The subscription callback field holds the subscription state prior to the successful payment.payment.failed- the initial or renew payment has failed. The rules of determining the initial or renew payment is the same as for thepayment.processedevent type. Initial subscription payment failure is final, it permanently switches the corresponding subscription to the inactive state. Instead, the renew payments do a retry attempt once a day for 3 days after next_payment_date. During the renew payment retries subscription.is_retrying param is set to true. After 3 failed renew payment attempts the subscription is deactivated.subscription.deactivated- the subscription has been deactivated. The reason for deactivation can be either the disabled auto_renew param at the time of next_payment_date or when the all 3 renew payment attempts have failed.subscription.renewed- a subscription started a new billing cycle after the successfull renew payment. The subscription callback field holds the subscription state after the successful payment.subscription.cancelled- a subscription was cancelled manually by support.subscription.refunded- the last payment for a subscription was refunded after subscription was cancelled. The event is sent only when the subscription was previously cancelled with the refund option enabled.
object
Controls whether the subscription should automatically renew after the due date.
Example
trueThe next date-time when the subscription auto_renew param can be changed. The value is calculated based on duration_periods param of the corresponding subscription plan. Date-time is returned in RFC3339 format. Time is specified in UTC timezone.
Example
2026-02-14T12:00:03ZThe URL where asynchronous subscription updates will be sent.
Subscription creation date-time in RFC3339 format. Time is returned in UTC timezone. Immutable.
Example
2025-07-14T12:00:03ZCurrency in ISO 4217 format.
Example
UAHCustomer identifier. May hold RID value.
Example
0ee67270-297d-4ed4-993c-5b4ba95c4dafProject API key where recurrent payments are delegated.
Example
5c226db4-c088-43f5-8d7a-809ac3718d66Description for the subscription.
Example
My subscription descriptionThe date until which subscription will stay active if not cancelled. Date is returned in RFC3339 format, time is omitted.
Example
2025-09-14T00:00:00ZIdentifier to link the subscription within partner system. Currently used by Rozetka only.
Example
9i8h7g6f5e4dIdentifier to link the subscription within partner system. Currently used by Rozetka only.
Example
1a2b3c4d5eSubscription identifier.
Example
9aed5896-a829-400f-bd3b-5b6f8508de6bShows whether the subscription in currently retrying its renew payment.
The date of next notification for the customer. Date is returned in RFC3339 format. Currently not supported.
Example
2025-09-13T00:00:00ZThe date of next payment for the subscription. Date-time is returned in RFC3339 format, time is omitted.
Example
2025-09-14T00:00:00ZThe corresponding plan identifier.
Example
d38bdf4e-cbd8-46f5-87fa-538dd7618731Subscription price in main currency units. For example, value of 30 equals 30 UAH subscription price.
Example
3000Source project for the current subscription.
Example
d38bdf4e-cbd8-46f5-87fa-538dd7618731The recurrent id for the subscription payments. Optional.
Example
573299035525213784The URL where user will be redirected after successful payment.
The start date of the subscription. Date-time is returned in RFC3339 format, time is omitted.
Example
2025-07-14T00:00:00ZCurrent subscription state.
The time of day component for the params that have date specified only. Date-time is returned in RFC3339 format.
Example
0001-01-01T12:00:03ZThe amount of trial periods assigned to the subscription.
Example
2Specifies, whether to apply periodic payments for trial subscription instead of single initial payment in case trial_periods value is more than one.
Example
trueThe end date-time of the subscription trial. Date-time is returned in RFC3339 format. Time is specified in UTC timezone.
Example
2025-09-14T12:00:03ZIdentifier to link the subscription within partner system. Currently used by Rozetka only.
Example
5e4d3c2b1aThe last date-time of the subscription update. Date-time is returned in RFC3339 format.
Example
2025-07-14T12:01:12ZControls whether the subscription should use the plan price instead the of the price provided in subscription data when the automatic subscription renew is performed.
Example
trueobject
object
Payment amount in main currency units. For example, value of 30 equals 30 UAH payment amount.
Example
3000Payment creation date-time in RFC3339 format. Time is returned in UTC timezone. Immutable.
Example
2025-07-12T12:00:03ZCurrency in ISO 4217 format.
Example
UAHDescription for the plan.
Example
My payment descriptionDate-time of next payment processing attempt in RFC3339 format. Time is returned in UTC timezone.
Example
2025-07-12T12:00:03ZDate-time of payment processing completion in RFC3339 format. Time is returned in UTC timezone.
Example
2025-07-12T12:00:03ZThe count of payment retries performed after failed first attempt.
Example
2Description of status_code value.
Example
Transaction successful.Last date-time of payment data update in RFC3339 format. Time is returned in UTC timezone.
Example
2025-07-14T12:00:03ZPayment identifier.
Example
a62a18e6-d44f-4a50-bc10-34853e109fe3Subscription identifier.
Example
9aed5896-a829-400f-bd3b-5b6f8508de6bObject which contains information about required post-request action. Will be null if action not required.
object
Action value. Usually it’s a checkout url or 3ds verification url.
Responses
Section titled “ Responses ”Shows that callback was accepted. No further callback after this response.
Responses
Section titled “ Responses ”object
object
object
Payment amount in main currency units. For example, value of 30 equals 30 UAH payment amount.
Example
3000Payment creation date-time in RFC3339 format. Time is returned in UTC timezone. Immutable.
Example
2025-07-12T12:00:03ZCurrency in ISO 4217 format.
Example
UAHDescription for the plan.
Example
My payment descriptionDate-time of next payment processing attempt in RFC3339 format. Time is returned in UTC timezone.
Example
2025-07-12T12:00:03ZDate-time of payment processing completion in RFC3339 format. Time is returned in UTC timezone.
Example
2025-07-12T12:00:03ZThe count of payment retries performed after failed first attempt.
Example
2Description of status_code value.
Example
Transaction successful.Last date-time of payment data update in RFC3339 format. Time is returned in UTC timezone.
Example
2025-07-14T12:00:03ZPayment identifier.
Example
a62a18e6-d44f-4a50-bc10-34853e109fe3Subscription identifier.
Example
9aed5896-a829-400f-bd3b-5b6f8508de6bObject which contains information about required post-request action. Will be null if action not required.
object
Action value. Usually it’s a checkout url or 3ds verification url.
object
Controls whether the subscription should automatically renew after the due date.
Example
trueThe next date-time when the subscription auto_renew param can be changed. The value is calculated based on duration_periods param of the corresponding subscription plan. Date-time is returned in RFC3339 format. Time is specified in UTC timezone.
Example
2026-02-14T12:00:03ZThe URL where asynchronous subscription updates will be sent.
Subscription creation date-time in RFC3339 format. Time is returned in UTC timezone. Immutable.
Example
2025-07-14T12:00:03ZCurrency in ISO 4217 format.
Example
UAHCustomer identifier. May hold RID value.
Example
0ee67270-297d-4ed4-993c-5b4ba95c4dafProject API key where recurrent payments are delegated.
Example
5c226db4-c088-43f5-8d7a-809ac3718d66Description for the subscription.
Example
My subscription descriptionThe date until which subscription will stay active if not cancelled. Date is returned in RFC3339 format, time is omitted.
Example
2025-09-14T00:00:00ZIdentifier to link the subscription within partner system. Currently used by Rozetka only.
Example
9i8h7g6f5e4dIdentifier to link the subscription within partner system. Currently used by Rozetka only.
Example
1a2b3c4d5eSubscription identifier.
Example
9aed5896-a829-400f-bd3b-5b6f8508de6bShows whether the subscription in currently retrying its renew payment.
The date of next notification for the customer. Date is returned in RFC3339 format. Currently not supported.
Example
2025-09-13T00:00:00ZThe date of next payment for the subscription. Date-time is returned in RFC3339 format, time is omitted.
Example
2025-09-14T00:00:00ZThe corresponding plan identifier.
Example
d38bdf4e-cbd8-46f5-87fa-538dd7618731Subscription price in main currency units. For example, value of 30 equals 30 UAH subscription price.
Example
3000Source project for the current subscription.
Example
d38bdf4e-cbd8-46f5-87fa-538dd7618731The recurrent id for the subscription payments. Optional.
Example
573299035525213784The URL where user will be redirected after successful payment.
The start date of the subscription. Date-time is returned in RFC3339 format, time is omitted.
Example
2025-07-14T00:00:00ZCurrent subscription state.
The time of day component for the params that have date specified only. Date-time is returned in RFC3339 format.
Example
0001-01-01T12:00:03ZThe amount of trial periods assigned to the subscription.
Example
2Specifies, whether to apply periodic payments for trial subscription instead of single initial payment in case trial_periods value is more than one.
Example
trueThe end date-time of the subscription trial. Date-time is returned in RFC3339 format. Time is specified in UTC timezone.
Example
2025-09-14T12:00:03ZIdentifier to link the subscription within partner system. Currently used by Rozetka only.
Example
5e4d3c2b1aThe last date-time of the subscription update. Date-time is returned in RFC3339 format.
Example
2025-07-14T12:01:12ZControls whether the subscription should use the plan price instead the of the price provided in subscription data when the automatic subscription renew is performed.
Example
true