Update License Key Guide
Overview
The Update License Key endpoint updates the license key for an item in an existing purchase.
Implement License Key
Before you start
Make sure to...
Parameters
| Parameter | Type | Required | Example |
|---|---|---|---|
| LicenseKey | |||
| PurchaseId | |||
| PurchaseItemRunningNumber |
curl --request POST \
--url https://rest.cleverbridge.com/purchase/updatelicensekey \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '
{
"LicenseKey": "5A4E91X25T6X8Q19",
"PurchaseId": 28233355,
"PurchaseItemRunningNumber": 1
}
'import requests
url = "https://rest.cleverbridge.com/purchase/updatelicensekey"
payload = {
"LicenseKey": "5A4E91X25T6X8Q19",
"PurchaseId": 28233355,
"PurchaseItemRunningNumber": 1
}
headers = {
"Accept": "application/json",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)import devCleverbridgeBrandedapi from '@api/dev-cleverbridge-brandedapi';
devCleverbridgeBrandedapi.purchase_UpdateLicenseKey({
LicenseKey: '5A4E91X25T6X8Q19',
PurchaseId: 28233355,
PurchaseItemRunningNumber: 1
})
.then(({ data }) => console.log(data))
.catch(err => console.error(err));OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"LicenseKey\":\"5A4E91X25T6X8Q19\",\"PurchaseId\":28233355,\"PurchaseItemRunningNumber\":1}");
Request request = new Request.Builder()
.url("https://rest.cleverbridge.com/purchase/updatelicensekey")
.post(body)
.addHeader("Accept", "application/json")
.addHeader("Content-Type", "application/json")
.build();
Response response = client.newCall(request).execute();Example response
Updated about 4 hours ago
Did this page help you?