Giter Site home page Giter Site logo

recharge-to-shopify-subscriptions's Introduction

Recharge to Shopify Subscriptions

This script facilitates the creation of a CSV file required to import subscription contracts into the Shopify Subscriprions app. It streamlines the process of transferring subscription data from Recharge to Shopify, making the migration smoother and more efficient.

Getting Started

Prerequisites

  • Python 3.11 or higher
  • Poetry for dependency management

Installation

  1. Clone the repository to your local machine:
git clone https://github.com/slavamak/recharge-to-shopify-subscriptions.git
  1. Navigate to the project directory:
cd recharge-to-shopify-subscriptions
  1. Install dependencies using Poetry:
poetry install
  1. Copy .env.example to .env and fill in the necessary environment variables:
cp .env.example .env

Edit .env to include your ACCESS_TOKEN and API_URL.

Generating an API Key

Before using this script, you'll need to obtain an API token from Recharge. Follow the instructions provided in the Recharge API documentation to generate your API key. Once obtained, add this key to your .env file as the ACCESS_TOKEN.

Usage

To run the script, execute the following command:

poetry run python main.py

This will generate the CSV file needed for importing subscription contracts into Shopify Subscriptions, located at output/subscription-contracts.csv.

Please note that the current implementation does not support retrieving the shipping type and price for shipping.

Dependencies

  • Python 3.12
  • Requests
  • python-dotenv

Contributing

Contributions are welcome! Please feel free to submit a pull request or open an issue.

Limitations

The script does not currently support fetching shipping type and price. This feature was not implemented because, in the project's initial use case with a specific client, there was no configuration for shipping methods other than free shipping, making it impossible to test and unnecessary to include.

If you encounter a need for these shipping types and have suggestions for implementing this feature, please contribute your ideas by opening a issue.

License

This project is licensed under the MIT License.

recharge-to-shopify-subscriptions's People

Contributors

slavamak avatar dependabot[bot] avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.