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 ]
{
"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"
}
}
API Index URL GET
https://{site}.chargebee.com/api/v2/site_migration_details
string, max chars=100 Id of the entity in this site.
string, min chars=4, max chars=50 Site name to which the record is moved in/out.
string, max chars=100 Entity Id of the record in the other site.
timestamp(UTC) in seconds Date in which the record is copied
enumerated string Entity Type of the record Possible values are
customerEntity that represents a customersubscriptionEntity that represents a subscription of a customerinvoiceInvoice descriptioncredit_noteCredit note description
Show all values[+]
enumerated string Status of the migration Possible values are
moved_inMoved in from another cb sitemoved_outMoved out from one cb site to anothermoving_outMoving out from one cb site to another
Show all values[+]
This is a list of the event types we currently support. We will continue
to add more events moving forward. All events follow a uniform pattern -
<resource>_<event_name>. The resources that will be
present in the event content are provided beneath each event type's
description.
Note: If consolidated invoicing is enabled, the
attributes invoice.subscription_id and
credit_note.subscription_id should not be used
(as it will not be present if the invoice / credit note has lines from
multiple subscriptions). Instead to know the related subscriptions,
their line_items' subscription_id attribute should be referred.
string, max chars=100 Id of the entity in this site.
string, min chars=4, max chars=50 Site name to which the record is moved in/out.
string, max chars=100 Entity Id of the record in the other site.
timestamp(UTC) in seconds Date in which the record is copied
enumerated string Entity Type of the record Possible values are
customerEntity that represents a customersubscriptionEntity that represents a subscription of a customerinvoiceInvoice descriptioncredit_noteCredit note description
Show all values[+]
enumerated string Status of the migration Possible values are
moved_inMoved in from another cb sitemoved_outMoved out from one cb site to anothermoving_outMoving out from one cb site to another
Show all values[+] This endpoint lists the site migration details.
This API is not enabled for live sites by default. Please contact
support to get this enabled.
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
optional, integer, default=10, min=1, max=100 The number of resources to be returned.
optional, string, max chars=1000 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.
entity_id_at_other_site[<operator>] entity_id_at_other_site[<operator>] optional, string filter
Entity Id of the record in the other site. Possible values are :
Supported operators : is, is_not, starts_with
Example → entity_id_at_other_site[is] = "null"
+
entity_id_at_other_site
Entity Id of the record in the other site.
pass parameters as entity_id_at_other_site[<param name>][<operator>]
entity_id_at_other_site[is][operator] entity_id_at_other_site[is][operator] optional, string, min chars=1 filter
Possible values are :
Supported operators :
Example →
entity_id_at_other_site[is_not][operator] entity_id_at_other_site[is_not][operator] optional, string, min chars=1 filter
Possible values are :
Supported operators :
Example →
entity_id_at_other_site[starts_with][operator] entity_id_at_other_site[starts_with][operator] optional, string, min chars=1 filter
Possible values are :
Supported operators :
Example →
other_site_name[<operator>] other_site_name[<operator>] optional, string filter
Site name to which the record is moved in/out. Possible values are :
Supported operators : is, is_not, starts_with
Example → other_site_name[is] = "acme-test"
Site name to which the record is moved in/out.
pass parameters as other_site_name[<param name>][<operator>]
other_site_name[is][operator] other_site_name[is][operator] optional, string, min chars=1 filter
Possible values are :
Supported operators :
Example →
other_site_name[is_not][operator] other_site_name[is_not][operator] optional, string, min chars=1 filter
Possible values are :
Supported operators :
Example →
other_site_name[starts_with][operator] other_site_name[starts_with][operator] optional, string, min chars=1 filter
Possible values are :
Supported operators :
Example →
optional, string filter
Id of the entity in this site. Possible values are :
Supported operators : is, is_not, starts_with
Example → entity_id[is] = "8axqwer7as"
Id of the entity in this site.
pass parameters as entity_id[<param name>][<operator>]
optional, string, min chars=1 filter
Possible values are :
Supported operators :
Example →
entity_id[is_not][operator] entity_id[is_not][operator] optional, string, min chars=1 filter
Possible values are :
Supported operators :
Example →
entity_id[starts_with][operator] entity_id[starts_with][operator] optional, string, min chars=1 filter
Possible values are :
Supported operators :
Example →
optional, enumerated string filter
Entity Type of the record. Possible values are : customer, subscription, invoice, credit_note, transaction, order
Supported operators : is, is_not, in, not_in
Example → entity_type[is] = "customer"
Entity Type of the record.
pass parameters as entity_type[<param name>][<operator>]
entity_type[is][operator] entity_type[is][operator] optional, enumerated string filter
Possible values are : customer, subscription, invoice, credit_note, transaction, order
Supported operators :
Example →
entity_type[is_not][operator] entity_type[is_not][operator] optional, enumerated string filter
Possible values are : customer, subscription, invoice, credit_note, transaction, order
Supported operators :
Example →
entity_type[in][operator] entity_type[in][operator] optional, string filter
Possible values are :
Supported operators :
Example →
entity_type[not_in][operator] entity_type[not_in][operator] optional, string filter
Possible values are :
Supported operators :
Example →
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] = "MOVED_OUT"
Status of the migration.
pass parameters as status[<param name>][<operator>]
optional, enumerated string filter
Possible values are : moved_in, moved_out, moving_out
Supported operators :
Example →
optional, enumerated string filter
Possible values are : moved_in, moved_out, moving_out
Supported operators :
Example →
optional, string filter
Possible values are :
Supported operators :
Example →
optional, string filter
Possible values are :
Supported operators :
Example →
always returned required
Resource object representing site_migration_detail
always returned optional, string, max chars=1000
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`.
Sample admin console URL
https://{site}.chargebee.com/admin-console/site_migration_details/123x