Request
Endpoint:
|
/api/ports/purchase
|
Method:
|
POST
|
Headers:
|
Accept: application/vnd.cloudlx.v1+json
|
Authorization: Bearer <access_token>
|
Example Request:
{
"model": "unlimited",
"port_id": 1066,
"name": "My first port",
"term": {
"name": "Month",
"amount": 1
}
}
Request Values - Required
model
|
Description
|
The pricing model to subscribe to. This choice is for all ports in the order. To order a ports on a variety of models, place multiple API requests.
|
Type
|
String
|
Example
|
limited or unlimited
|
port_id
|
Description
|
The ID of the port
|
Type
|
Integer
|
Example
|
1066
|
name
|
Description
|
The name of the port
|
Type
|
String
|
Example
|
My first port
|
term
|
Description
|
The term for the port pricing
|
Type
|
Object
|
Example
|
See example above, referenced from the available ports API
|
Response
Example:
{
"success": true,
"message": "1 port ordered successfully"
}