Schedule a plan change with proration

Schedules a plan upgrade or downgrade for an order with automatic proration calculation. Credits are applied for the unused portion of the current billing period.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

orderIdstringRequired

The order ID (can be internal ID or display ID)

Request

This endpoint expects an object.
orderVersionintegerRequired>=1

The current version of the order (for optimistic locking)

effectiveDatedatetimeRequired

The date when the plan change should take effect (ISO 8601 format)

updatedOrderLineAttributeslist of objectsRequired
The list of order line attributes to update

Response

Plan change scheduled successfully
orderIdstringformat: "uuid"
The ID of the order
amendmentIdstringformat: "uuid"
The ID of the amendment record
versioninteger
The new version of the order after the amendment
effectiveDatedatetime
The effective date of the plan change
endedLineIdslist of strings
IDs of order lines that were ended
createdLineIdslist of strings
IDs of new order lines that were created
creditLineIdslist of strings
IDs of credit lines that were created
prorationDetailslist of objects
Detailed proration calculations for each updated attribute

Errors