This is a Singer tap that produces JSON-formatted data following the Singer spec.
This tap:
- Pulls raw data from the Chargify API
- Extracts the following resources:
- Outputs the schema for each resource
- Incrementally pulls data based on the input state
- Endpoint: https://reference.chargify.com/v1/components/list-components-for-a-product-family
- Primary key field: id
- Replication strategy: FULL_TABLE
- Endpoint: https://reference.chargify.com/v1/coupons-editing/list-product-family-coupons
- Primary key field: id
- Replication strategy: FULL_TABLE
- Endpoint: https://reference.chargify.com/v1/customers/list-customers-for-a-site
- Primary key field: id
- Replication strategy: FULL_TABLE
- Endpoint: https://reference.chargify.com/v1/events/list-events-for-a-site
- Primary key field: id
- Replication strategy: FULL_TABLE
- Endpoint: https://reference.chargify.com/v1/invoices-legacy/list-all-invoices-by-subscription
- Primary key field: id
- Replication strategy: INCREMENTAL
- Bookmark: due_date
- Endpoint: https://reference.chargify.com/v1/products-price-points/read-product-price-points
- Primary key field: id
- Replication strategy: FULL_TABLE
- Endpoint: https://reference.chargify.com/v1/product-families/list-product-family-via-site
- Primary key field: id
- Replication strategy: FULL_TABLE
- Endpoint: https://reference.chargify.com/v1/products/list-products
- Primary key field: id
- Replication strategy: FULL_TABLE
- Endpoint: https://reference.chargify.com/v1/statements/list-statements-for-a-site
- Primary key field: id
- Replication strategy: FULL_TABLE
- Endpoint: https://reference.chargify.com/v1/subscriptions/list-subscriptions
- Primary key field: id
- Replication strategy: FULL_TABLE
- Endpoint: https://reference.chargify.com/v1/transactions/list-transactions-for-the-site
- Primary key field: id
- Replication strategy: INCREMENTAL
- Bookmark: created_at
-
Install the tap using the following command:
> pip install tap-chargify
-
Create the config file, which is a JSON file named
config.json
. This file should contain the following properties:api_key
- A Chargify API key. Refer to the Chargify documentation for instructions on creating an API key.start_date
- The date from which the tap should begin replicating data. This value must be an ISO 8601-compliant date.subdomain
The subdomain of your Chargify site. For example: If the full URL werehttps://test.my-chargify-site.com
, this value would betest
.
{ "api_key": "xx", "start_date": "2018-02-22T02:06:58.147Z", "subdomain": "test" }
-
Run the tap in Discovery Mode using the following command:
> tap-chargify -c config.json -d
See the Singer docs on discovery mode here.
-
Run the tap in Sync Mode using the following command:
> tap-chargify -c config.json --catalog catalog-file.json
-
Clone this repository.
-
In the directory, run the following command:
> python -m venv tap-chargify > make dev
Copyright © 2019 Stitch