List Data Sources

Lists all data_source objects in your ChartMogul account.

Examples
curl -X GET "https://api.chartmogul.com/v1/data_sources" \
     -u YOUR_API_KEY:
ChartMogul::DataSource.all
ChartMogul.DataSource.all(config);
<?php

ChartMogul\DataSource::all();
?>
api.ListDataSources()
chartmogul.DataSource.all(config)
Result Format
{
  "data_sources": [
    {
      "uuid": "ds_fef05d54-47b4-431b-aed2-eb6b9e545430",
      "name": "In-house billing",
      "system": "Custom",
      "created_at": "2023-01-10T15:34:05.437Z",
      "status": "idle"
    },
    {
      "uuid": "ds_ade45e52-47a4-231a-1ed2-eb6b9e541213",
      "name": "Enterprise billing connection",
      "system": "Custom",
      "created_at": "2023-01-09T10:14:15.223Z",
      "status": "idle"
    }
  ]
}
#<ChartMogul::DataSources:0x00000003ed9d58
 @data_sources=[
  #<ChartMogul::DataSource:0x007ff9f237ba88
  @name="In-house billing", 
  @uuid="ds_fef05d54-47b4-431b-aed2-eb6b9e545430",
  @system="Custom",
  @status="idle", 
  @created_at=2023-01-10 15:34:05 UTC,
  >, 
  #<ChartMogul::DataSource:0x007ff9f2379b20 
  @name="Enterprise billing connection", 
  @uuid="ds_ade45e52-47a4-231a-1ed2-eb6b9e541213", 
  @system="Custom",
  @status="idle", 
  @created_at=2023-01-09 10:14:15 UTC
  >
]>
{
  "data_sources": [
    {
      "uuid": "ds_fef05d54-47b4-431b-aed2-eb6b9e545430",
      "name": "In-house billing",
      "system": "Custom",
      "created_at": "2023-01-10T15:34:05.437Z",
      "status": "idle"
    },
    {
      "uuid": "ds_ade45e52-47a4-231a-1ed2-eb6b9e541213",
      "name": "Enterprise billing connection",
      "system": "Custom",
      "created_at": "2023-01-09T10:14:15.223Z",
      "status": "idle"
    }
  ]
}
<?php

Doctrine\Common\Collections\ArrayCollection::__set_state(array(
   "elements" => 
  array (
    0 => 
    ChartMogul\DataSource::__set_state(array(
       "uuid" => "ds_fef05d54-47b4-431b-aed2-eb6b9e545430",
       "status" => "idle",
       "system" => "Custom",
       "created_at" => "2023-01-10T15:34:05.437Z",
       "name" => "In-house billing",
    )),
    1 => 
    ChartMogul\DataSource::__set_state(array(
       "uuid" => "ds_ade45e52-47a4-231a-1ed2-eb6b9e541213",
       "status" => "idle",
       "system" => "Custom",
       "created_at" => "2023-01-09T10:14:15.223Z",
       "name" => "Enterprise billing connection",
    ))
)));
?>
(*chartmogul.DataSources)(0xc0420c8ba0)({
 DataSources: ([]*chartmogul.DataSource) (len=2) {
  (*chartmogul.DataSource)(0xc042008440)({
   UUID: (string) (len=39) "ds_dc5e3618-edfa-11e6-9e29-f709b6341791",
   Name: (string) (len=16) "In-house billing",
   CreatedAt: (string) (len=24) "2023-01-10T15:34:05.437Z",
   Status: (string) (len=4) "idle",
   System: (string) (len=10) "Custom"
  }),
  (*chartmogul.DataSource)(0xc00002dce0)({
   UUID: (string) (len=39) "ds_ade45e52-47a4-231a-1ed2-eb6b9e541213",
   Name: (string) (len=27) "Enterprise billing connection",
   CreatedAt: (string) (len=24) "2023-01-09T10:14:15.223Z",
   Status: (string) (len=4) "idle",
   System: (string) (len=10) "Custom"
  })
 }
})
DataSources(data_sources=[
    <DataSource{created_at=datetime.datetime(2023, 1, 10, 15, 34, 57),
                name='In-house billing',
                status='idle',
                uuid='ds_dc5e3618-edfa-11e6-9e29-f709b6341791',
                system='Custom'}>,
    <DataSource{created_at=datetime.datetime(2023, 1, 9, 10, 14, 15),
                name='Enterprise billing connection',
                status='idle',
                uuid='ds_ade45e52-47a4-231a-1ed2-eb6b9e541213',
                system='Custom'}>
  	])

In the response, data_sources contains an array of data_source objects that you've created, with the following data:

  • uuid - The UUID of the data_source object generated by ChartMogul.
  • name - The name of the data source as specified by you.
  • system - The type of system from which customer billing data is imported using this data source. For example, Stripe, Recurly, GoCardless, Chargify, Custom, and so on.
  • created_at - The time when this data source was created in the ChartMogul system.
  • status - The current status of the data import into ChartMogul. For data sources based on integrations maintained by ChartMogul (ie. Stripe, Braintree, etc.), if there is no data then status will be never_imported. If there is data that is being processed then status will be importing. If all data has been processed then status will be import_complete. For data sources based on our Custom data source, if data is currently being processed then status will be working and if there's no data being processed then status will be idle.
Language
Authorization
Basic
base64
: