Skip to main content

Migrating from the SOAP API


Migrating from the SOAP API

When the Orders Harmonization feature is enabled, you can continue to use Subscribe and Amend SOAP APIs to create and manage your subscriptions. If you want to migrate your SOAP integrations to use the Orders REST API, you can still do it.

To assist with the migration, this article provides the SOAP equivalent of the "Create order" request body shown in Replace a Product in a Subscription.

SOAP Example

Replacing a product in a subscription requires two SOAP calls. The first SOAP call removes a product from the subscription. The second SOAP call adds a different product to the subscription.

Remove a Product

The following SOAP amend() example is valid for WSDL version 29.0 and later.

         <obj:Description>Removing a product</obj:Description>
         <obj:Name>Removing a product</obj:Name>

Add a Product

The following SOAP amend() example is valid for WSDL version 29.0 and later.

         <ns2:Name>Add a product</ns2:Name>

Migration Notes

  • You only need to make one call using the REST API.
  • Specify account numbers instead of account IDs.
  • Specify subscription numbers instead of subscription IDs.
  • The effective date specified in the SOAP EffectiveDate field corresponds to the contract effective date of the order actions in the REST API.
  • You do not need to specify the status of the amendment in the REST API. Because the amendment will be in the Complete status if the call succeeds. You cannot create draft amendments in Orders.
  • To generate invoices and collect payments, specify the runBilling and collectPayment fields instead of the GenerateInvoice and ProcessPayments SOAP fields.
  • Currently, we do not support specifying the name and description of order actions (the corresponding Name and Description SOAP fields).