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 
https://docs.cloudblue.com/cbc/sdk/20.5/api/types/platform-types/ordermanagement/ordermanagement-OrderManagementApplication-page/index.html#

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

https://docs.cloudblue.com/cbc/sdk/20.5/api/types/platform-types/ordermanagement/ordermanagement-OrderManagementApplication-page/index.html#place-renewal-orders 

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