get https://api.chartmogul.com/v1/v1/data_sources//json_imports/
Tracks the import status.
With this endpoint, you can track the status of import requests created via Import Data in Bulk. The import status
goes through queued
, processing
, and completed
states. The status_details
object provides additional import status details specific to each type of imported object.
Import Status does not track the metrics processing status
This endpoint only tracks the import processing state. Once data is imported and the import
status
is set tocompleted
, ChartMogul starts processing and generating metrics. This step is not tracked with the Import Status endpoint.
Examples
curl -X GET "https://api.chartmogul.com/v1/data_sources/ds_1fm3eaac-62d0-31ec-clf4-4bf0mbe81aba/json_imports/ds_import_1" \
-u YOUR_API_KEY: \
-H "Content-Type: application/json"
Result Format
{
"id": "ac8cuuid-14i4-11ee-u0id-d3f5fa07p987",
"data_source_uuid": "1fm3eaac-62d0-31ec-clf4-4bf0mbe81aba",
"status": "completed",
"external_id": "ds_import_1",
"status_details": {
"plans": {
"status": "imported"
},
"scus_0001": {
"status": "imported",
"invoices": {
"status": "imported"
},
"customers": {
"status": "imported"
},
"line_items": {
"status": "imported"
},
"transactions": {
"status": "imported"
},
"subscription_events": {
"status": "imported"
}
}
},
"created_at": "2023-06-27T14:12:38Z",
"updated_at": "2023-06-27T14:12:38Z"
}