Skip to navigation

Preview an amendment

Draft scaffold — not implemented or available in the API.

Calculates the effect of changes on the order without applying anything. Returns the resulting lines, proration credits and charges in moneyEffects, what happens to each commit, any warnings, and a previewToken for creating the amendment. Returns 503 if billing can’t be reached. {order} takes the order’s ord_ ID or your externalId.

Authentication

AuthorizationBearer
API Key authentication using Bearer token

Path parameters

orderstringRequired1-255 characters
A Paid ID, external ID or resource key, as supported by the referenced resource.

Headers

Paid-BetaenumRequired

This endpoint is in the orders=v1 beta. Send this header to use it.

Allowed values:

Request

Body
changeslist of objectsRequired
Requested line or term changes.
commitslist of objectsOptional
New commits.
expectedVersionintegerOptional
Expected order concurrency version.
prorationenumOptionalDefaults to prorate

Recurring-charge proration.

Allowed values:

Response

200
changeslist of objects
The previewed changes.
commitslist of objects
Resulting commitment effects.
lineslist of objects
Resulting lines.
moneyEffectslist of objects
Proration credits and charges.
negotiatedPricinglist of objects
The order's negotiated pricing after these changes.
previewTokenstring1-255 characters
Send it to create the amendment with exactly these changes.
warningslist of strings
Consequences requiring review.
directionenumOptional
Direction of a plan change.
Allowed values:

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error
501
Not Implemented Error
503
Service Unavailable Error