Workarounds for Scheduled Orders in Pax8 API
Currently, the Pax8 API does not support future-dated scheduled orders. However, you can use the following workarounds to handle common use cases such as scheduled orders, cancellations, and subscription quantity updates.
Scheduled Orders
The ability to create future-dated orders is supported via the Pax8 platform interface, but not via the Pax8 API.
Workaround:
To handle this in your system, you can:
- Place the order immediately.
- Alternatively, set up your system to trigger the order once the desired date/time has passed. This may involve running a cron job or background service to check and place the order at the specified time.
Endpoint: Create Order
Future-Dated Cancellations
Cancelling subscriptions at a future date is supported via the Pax8 API.
You can schedule a future cancellation via the following endpoint:
Future-Dated Increases in Subscription Quantities
Increasing subscription quantities for a future date is supported in the Pax8 platform interface, but not through the Pax8 API.
Workaround:
To handle future increases:
- You can place the increase in subscription quantity immediately.
- Or, your system can place the subscription quantity increase once the specified date/time has passed.
Endpoint: Update Subscription - Increase Quantity
Future-Dated Decreases in Subscription Quantities
Subscription quantity decreases have different support depending on the product type:
- For Non-Microsoft NCE licenses: Decreases are possible via the Pax8 platform interface, but not via the API.
- For Microsoft NCE licenses: Decreases are not supported via the Pax8 app or API.
Workaround for Non-Microsoft NCE Licenses:
- You can place the decrease in subscription quantity immediately.
- Or, configure your system to place the subscription decrease after the scheduled date/time.
Workaround for Microsoft NCE Licenses:
For Microsoft NCE licenses, subscription quantity decreases can only be processed after the subscription has renewed.
- Store the subscription’s commitmentTermEndDate in your system.
- Wait 24 hours (or the required time for renewal processing) from the renewal date.
- Pass the API call to decrease subscription quantity after the renewal is complete.
Endpoint: Update Subscription - Decrease Quantity
Notes for API Users:
- Non-NCE Products: Future-dated decreases are possible via the Pax8 platform interface but not the API. Make sure to handle these decreases with a similar time-check mechanism as suggested for orders and increases.
- NCE Products: The decrease will only be accepted post-renewal. Store and manage subscription end dates to track when a quantity decrease can be processed via the Pax8 API.
For further assistance, please contact your Pax8 Account Manager.
Updated about 1 month ago