Purchase a port

Purchase a new port in Infiny.

Request

Endpoint: /api/ports/purchase
Method: POST
Headers: Accept: application/vnd.cloudlx.v1+json
Authorization: Bearer <access_token>

Example Request:

                                
    {
        "port_id": 1066,
        "name": "My first port",
        "term": {
            "name": "Month",
            "amount": 1
        }
    }
                                
                            

Request Values - Required

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"
    }
                                
                            

Back to top