Skip to navigation

Create an amendment

Draft scaffold — not implemented or available in the API.

Applies exactly the changes previewed with previewToken, effective immediately, and increments the order’s version. Fails if the order changed since the preview or since expectedVersion; preview again and retry. Returns 503, with nothing changed, 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.
previewTokenstringRequired1-255 characters

The previewToken from previewing exactly these changes.

commitslist of objectsOptional
New commits.
expectedVersionintegerOptional
Expected order concurrency version.
prorationenumOptionalDefaults to prorate

Recurring-charge proration.

Allowed values:

Response

201
idstring
The Amendment ID.
objectenum

The type of object. Always amendment.

Allowed values:
createdAtdatetime
When the object was created.
changeslist of objects
Applied changes.
effectiveAtdatetime
When the amendment took effect.
livemodeboolean

true for an object on a live account, false on a test account.

orderstring1-255 characters
A Paid ID, external ID or resource key, as supported by the referenced resource.
sourceobject
How this amendment was initiated.
versionAfterinteger
Order version after applying changes.

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