+1 (855) 920-2583
Login

[HOWTO] Placing renewal order with a promo code via API

Modified on: Fri, 17 Nov 2023 1:14 PM
Original Publishing Date:
2023-09-12

Question

Script for migrating subscriptions from CSP to NCE does not support "promo code" parameter. 

As a result we need to apply promo codes to already migrated subscriptions in bulk.

We tried using CreateManualOrder_API method, however it did not produce the expected results.


Is there another way to do this?

Answer

You may do it via CBC REST API 

Here is an example request for placing a renewal order with a promo code:


{   "type": "RENEWAL",   "subscriptionId": "456808a0-b5a6-4092-ab67-b34533743a07",   "promoCode": "123",   "paymentMethodId": "11",   "period": {      "unit": "MONTHS",      "duration": 1   }}
Null