Order operations
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 · enumRequiredExample:
Код операции
- 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)
channels-reset
Possible values: channelsinteger[]OptionalExample:
Optional list of channel ids for operations channels-* If not specified, all channels in the order are assumed.
[1401,1402]
location_idintegerOptionalExample:
Optional id of the desired location for "channels-relocate" Only for the "Mobile proxies plus" service with the multiport option
8
operator_idintegerOptionalExample:
Optional operator id for "channels-relocate" Only for orders with the multiport option
8
intervalintegerOptionalExample:
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
60
Responses
200
OK
application/json
401
Unauthorized
404
Order not found
422
Validation error
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
}
}