HomeGuidesAPIsReleasesDownloadsDeveloperEvents
Log In
APIs
These docs are for v2023.11. Click to read the latest docs for v2025.03.01.

Change a contract.

Change a customers contract to the supplied contract code.
Response Code | Fault Code | Fault | Suggested User Message
------------- | ---------- | ----- | ----------------------
400 | 90029 | InvalidStateForCrossgradeFault | Contract cannot be crossgraded
404 | 90041 | NoContractFoundFault | Contract ID does not exist
400 | 90018 | InvalidCrossgradePathFault | Contract cannot be crossgraded to this item
400 | 90077 | VCNCurrencyMismatchFault | Viewing Card is not set for provided currency
400 | 90063 | UnableToCrossgradeFault | Crossgrade cannot be completed
400 | 90079 | VCNRequiredFault | A Viewing Card is required for this purchase
400 | 90045 | PaymentAuthorisationFault | Payment attempt failed
500 | 90050 | PaymentSystemFault | Payment collection cannot be attempted at this time
400 | 90031 | InvalidVCNFault | Viewing Card provided is Invalid
500 | 90061 | SystemFailureFault | System Failure, Please try again later
400 | 90078 | VCNInUseFault | This viewing card is already in use on another record
404 | 90022 | InvalidDiscountCodeFault | Discount does not exist

Path Params
uuid
required

The customer ID to locate the contract.

int64
required

The contract ID to change.

Body Params
string
required

The sales item code for the item to be changed to.

string
length ≤ 50

Identifer for any referrer to be associated with the new service. No validation is done on this.

discountCode
object

Details of a discount code.
Can be applied during a crossgrade which may trigger a discount.
Shown as part of the details of a contract if it has an active discount.

boolean

Flag indicating whether a downgrade request should be performed immediately, or left until the next contract charge.

Headers
string

The tenant ID for which the operation is being carried out. This will be automatically generated during the authentication process.

string

The ID of a user who is performing the operation. This will be automatically generated during the authentication process.

string

The source of whether records are updated by HMAC or a USER. This will be automatically generated during the authentication process. For customers accessing the service the source will be set to CUSTOMER.

Responses

Language
URL
Choose an example:
application/json