Site Migration details is used for finding the records that are moved in and moved out from one Chargebee site to another.
Sample site migration detail [ JSON ]
{
"entity_id": "__test__KyVnHhSBWT9AW8j",
"entity_id_at_other_site": "__test__KyVnHhSBWT9AW8j",
"entity_type": "customer",
"migrated_at": 1600704658,
"object": "site_migration_detail",
"other_site_name": "mannar",
"status": "moved_in"
}
API Index URL GET
https://{site}.chargebee.com/api/v2/site_migration_details
Id of the entity in this site.
string, max chars=100
Site name to which the record is moved in/out.
string, min chars=4, max chars=50
Entity Id of the record in the other site.
string, max chars=100
Date in which the record is copied.
timestamp(UTC) in seconds
Entity Type of the record.
enumerated stringPossible values are
customerEntity that represents a customer.subscriptionEntity that represents a subscription of a customer.invoiceEntity that represents an invoice.credit_noteEntity that represents a credit note.transactionEntity that represents a transaction.
Status of the migration.
enumerated stringPossible values are
moved_inMoved in from another cb site.moved_outMoved out from one cb site to another.moving_outMoving out from one cb site to another.
Sample Request
curl https://{site}.chargebee.com/api/v2/site_migration_details \
-G \
-u {site_api_key}:\
--data-urlencode limit=3
copy
curl https://{site}.chargebee.com/api/v2/site_migration_details \
-G \
-u {site_api_key}:\
--data-urlencode limit=3
Sample Response [ JSON ]
Show more...
{"list": [
{"site_migration_detail": {
"entity_id": "__test__KyVnHhSBWT9AW8j",
"entity_id_at_other_site": "__test__KyVnHhSBWT9AW8j",
"entity_type": "customer",
"migrated_at": 1600704658,
"object": "site_migration_detail",
"other_site_name": "mannar",
"status": "moved_in"
}},
{..}
]}
URL Format GET
https://{site}.chargebee.com/api/v2/site_migration_details
The number of resources to be returned.
optional, integer, default=10, min=1, max=100
Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set offset
to the value of next_offset
obtained in the previous iteration of the API call.
optional, string, max chars=1000
entity_id_at_other_site[<operator>]
Entity Id of the record in the other site.
Supported operators : is, is_not, starts_with
Example → entity_id_at_other_site[is] = "null"
optional, string filter
other_site_name[<operator>]
Site name to which the record is moved in/out.
Supported operators : is, is_not, starts_with
Example → other_site_name[is] = "acme-test"
optional, string filter
Id of the entity in this site.
Supported operators : is, is_not, starts_with
Example → entity_id[is] = "8axqwer7as"
optional, string filter
Entity Type of the record. Possible values are : customer, subscription, invoice, credit_note, transaction.
Supported operators : is, is_not, in, not_in
Example → entity_type[is] = "customer"
optional, enumerated string filter
Status of the migration. Possible values are : moved_in, moved_out, moving_out.
Supported operators : is, is_not, in, not_in
Example → status[is_not] = "MOVED_OUT"
optional, enumerated string filter
Resource object representing site_migration_detail.
always returned
next_offset
This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter “offset”.
optional, string, max chars=1000