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
Domain name to which the item is moved.
string, min chars=4, max chars=50
Type of the entity this record is stored for.
enumerated stringPossible values are
customerEntity that represents a customer.
Handle of the customer in the current site.
string, max chars=100
Status of the copy customer process.
enumerated string, default=failedPossible values are
scheduledScheduled.failedFailed.succeededSucceeded.
Filled only if the copy operation gets failed.
optional, string, max chars=65k
Time the log is created.
timestamp(UTC) in seconds
Time the log is updated.
timestamp(UTC) in seconds
Gets the last migration details.
Sample Request
curl https://{site}.chargebee.com/api/v2/resource_migrations/retrieve_latest \
-G \
-u {site_api_key}:\
-d from_site="merchant-test" \
-d entity_type="customer" \
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
Domain name to which the item is moved.
required, string, min chars=4, max chars=50
Type of the entity this record is stored for.
required, enumerated stringPossible values are
customerEntity that represents a customer.
Handle of the customer in the current site.
required, string, max chars=100
Resource object representing resource_migration.
always returned