Order operations

Order operations

post

The method allows you to perform any operation with the order. Available operations are returned in the order in the field allowed_operations.

Path parameters
order_idintegerRequiredExample: 10000
Body
operationstring · enumRequired

Код операции

  • channels-change-ip Changing dynamic IP address (for mobile proxies)
  • channels-reset Reboot the modem (for mobile proxies)
  • channels-set-autoreset Setting the automatic reboot interval for the mobile modem (for mobile proxies)
  • channels-relocate Change of equipment: the channel “moves” to another modem within the selected location (for mobile proxies)
Example: channels-resetPossible values:
channelsinteger[]Optional

Optional list of channel ids for operations channels-* If not specified, all channels in the order are assumed.

Example: [1401,1402]
location_idintegerOptional

Optional id of the desired location for "channels-relocate" Only for the "Mobile proxies plus" service with the multiport option

Example: 8
operator_idintegerOptional

Optional operator id for "channels-relocate" Only for orders with the multiport option

Example: 8
intervalintegerOptional

Optional automatic reboot interval for"channels-set-autoreset" The interval is specified in seconds, but cannot be less 60. If the interval is not specified or equal to 0, then autoreset will be disabled

Example: 60
Responses
200
OK
application/json
post
POST /api/user/orders/{order_id}/perform HTTP/1.1
Host: v3.proxy-solutions.net
Content-Type: application/json
Accept: */*
Content-Length: 99

{
  "operation": "channels-reset",
  "channels": [
    1401,
    1402
  ],
  "location_id": 8,
  "operator_id": 8,
  "interval": 60
}
{
  "operation_status": "complete",
  "order": {
    "id": 10000,
    "status": "active",
    "service": {
      "id": 4,
      "provider": "server-proxies",
      "name": "City proxies"
    },
    "location": {
      "id": 24,
      "type": "city",
      "name": "New York",
      "country_name": "USA"
    },
    "operator": {
      "id": 37,
      "name": "Orange"
    },
    "period": 30,
    "quantity": 1,
    "minimal_payment": 1.81,
    "amount": 1.81,
    "converted_amount": 100,
    "auto_continuation": false,
    "allowed_operations": [],
    "resources_allocated": true
  }
}