Skip to content

migrate.php

Migration management module for handling customer and hosting data transfers between billing locations.

API Methods

Method Action Description
get_hostings_list get hostings list Returns a list of hostings available for migration in the specified location.
get_order_to_move get order to move Retrieves detailed information about an order and its line items for migration.

migrate/get_hostings_list

Returns a list of hostings available for migration in the specified location.

HTTP method: POST

Parameters:

Parameter Required Type Description
action ✅ string Method identifier: get_hostings_list
token ✅ string Authentication token.
id ❌ integer The ID of the user or entity performing the action.
location ❌ string The location identifier for filtering hostings.

Request example

curl -s "https://invapi.hostkey.com/migrate.php" -X POST \
--data "action=get_hostings_list" \
--data "token=HOSTKEY_TOKEN"
Success response example
{
"result": -2,
"error": "Invalid hash",
"code": "INVALID_HASH"
}
Error examples
{
"code": -1,
"message": "Permission denied"
}

migrate/get_order_to_move

Retrieves detailed information about an order and its line items for migration.

HTTP method: POST

Parameters:

Parameter Required Type Description
action ✅ string Method identifier: get_order_to_move
token ✅ string Authentication token.
id ✅ integer The ID of the order to be migrated.
location ❌ string The location identifier for migration context.

Request example

curl -s "https://invapi.hostkey.com/migrate.php" -X POST \
--data "action=get_order_to_move" \
--data "token=HOSTKEY_TOKEN" \
--data "id=VALUE"
Success response example
{
"result": "OK",
"action": "get_order_to_move",
"order": {
"id": 500,
"items": [
{
"id": 1,
"name": "Service Item",
"price": {
"EUR": 29.99,
"USD": 32.5
}
}
]
},
"top": 12345
}
Error examples
{
"code": -2,
"message": "Invalid hash"
}
question_mark
Is there anything I can help you with?
question_mark
AI Assistant ×