Resource Migration is used for finding the status of customer migration between Chargebee sites.
Sample resource migration [ JSON ]
{
"from_site": "yourapp",
"entity_type": "customer",
"entity_id": "test123",
"status": "failed",
"created_at": 1528093653,
"updated_at": 1528093653,
"object": "resource_migration"
}
API Index URL GET
https://{site}.chargebee.com/api/v2/resource_migrations
string, min chars=4, max chars=50 Domain name to which the item is moved.
enumerated string Type of the entity this record is stored for
string, max chars=100 Handle of the customer in the current site.
enumerated string, default=failed Status of the copy customer process.
optional, string, max chars=65k Filled only if the copy operation gets failed
timestamp(UTC) in seconds Time the log is created
timestamp(UTC) in seconds Time the log is updated
string, min chars=4, max chars=50
Domain name to which the item is moved.
enumerated string
Type of the entity this record is stored for
string, max chars=100
Handle of the customer in the current site.
enumerated string, default=failed
Status of the copy customer process.
optional, string, max chars=65k
Filled only if the copy operation gets failed
timestamp(UTC) in seconds
Time the log is created
timestamp(UTC) in seconds
Time the log is updated
Gets the last migration details.
This API is not enabled for live sites by default. Please contact
support to get this enabled.
Sample Request
curl https://{site}.chargebee.com/api/v2/resource_migrations/retrieve_latest \
-u {site_api_key}:\
-d from_site="merchant-test" \
-d entity_type="CUSTOMER" \
-d entity_handle="test123"
Sample Response [ JSON ]
Show more...
{
"resource_migration": {
"from_site": "yourapp",
"entity_type": "customer",
"entity_id": "test123",
"status": "failed",
"created_at": 1539327043,
"updated_at": 1539327043,
"object": "resource_migration"
}
}
URL Format
GET
https://{site}.chargebee.com/api/v2/resource_migrations/retrieve_latest
required, string, min chars=4, max chars=50 Domain name to which the item is moved.
required, enumerated string Type of the entity this record is stored for.
required, string, max chars=100 Handle of the customer in the current site.
always returned required
Resource object representing resource_migration
Sample admin console URL
https://{site}.chargebee.com/admin-console/resource_migrations/123x