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
order
A Paid ID, external ID or resource key, as supported by the referenced resource.
Headers
Paid-Beta
This endpoint is in the orders=v1 beta. Send this header to use it.
Allowed values:
Request
Body
changes
Requested line or term changes.
commits
New commits.
expectedVersion
Expected order concurrency version.
proration
Recurring-charge proration.
Allowed values:
Response
200
changes
The previewed changes.
commits
Resulting commitment effects.
lines
Resulting lines.
moneyEffects
Proration credits and charges.
negotiatedPricing
The order's negotiated pricing after these changes.
previewToken
Send it to create the amendment with exactly these changes.
warnings
Consequences requiring review.
direction
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