Method creates a new Sale order.
| Address | /v1.0/orders |
|---|---|
| Type | POST |
| Authorization | Required |
Input parameters
Input parameters are submitted as raw JSON:
| Name | Required / Optional | Description | Possible values |
|---|---|---|---|
customerId | Optional | Customer ID | |
orderQuantity | Optional | Number of serial numbers or hardware keys in the order | |
orderActivationLimit | Optional | Maximum number of serial number activations in the order | |
orderDescription | Optional | Order description | |
orderStatus | Optional | Current order status. Default value is 0 (Draft) |
|
orderType | Required | Order type. Must be equal to Sale |
|
orderCanOverwriteContainer | Optional | Flag that determines whether the order can overwrite the license agreement from a previous order |
|
orderIsDemo | Optional | Create an order for demo or regular licenses |
|
customerrequired | Optional | Flag that determines whether the license can be activated without customer info |
|
orderActivationBirthDate | Optional | Allowed license activation period start date in Unix time | |
orderActivationDeathDate | Optional | Allowed license activation period end date in Unix time | |
isHardwareLicense | Optional | License type. Default value is false |
|
orderIsTrial | Optional | Create an order for trial or regular license. Default value is false |
|
orderIsTrialUnlim | Optional | Flag that determines the order's serial number activation limint Default value is false |
|
orderTrialLifetimeDays | Optional | Set when orderIsTrial = true. Determines the lifetime of a trial license (cannot exceed 90 days). Default value is 90 | |
netLicensesLimit | Optional | Upper limit of network connections for licenses in Guardant Control Center | |
| crmId | Optional | ID in vendor's CRM system | |
| refId | Optional | ID in vendor's other systems |
https://station.guardant.com/v1.0/orders
{
"customerId" : 8,
"orderActivationBirthDate":1528911062,
"orderActivationDeathDate":15210911062,
"orderCanOverwriteContainer": false,
"orderIsDemo": false,
"customerRequired": true,
"orderQuantity" : 10,
"orderActivationLimit" : 10,
"orderDescription" : "Created by Postmam",
"orderStatus" : 0,
"orderType" : 0,
"isHardwareLicense": false,
"orderIsTrial": false,
"orderIsTrialUnlim": false,
"orderTrialLifetimeDays": 0,
"netLicensesLimit" : 0,
"crmId": "",
"refId": ""
}