Skip to content

Implement Printify and Xero #61

@munozr1

Description

@munozr1

Allow members to purchase T-Shirts through Mobi website.

This is dual purpose:

  1. Allows us to hold less T-Shirt Inventory
  2. Keeps track of inventory we do have and in what sizes (having inventory is always a good idea for those who want to purchase now
  3. Tax purposes, automated tracking of each sale through Xero api

Caveat : we are not yet a 501c so we can't launch this officially until probably next semster. This is not that bad though since I would like to give this project to junior developers and it will most likely take a semester to complete given they have to study and do homework.

I can take lead on this since I have experiance building ERP's from scratch.
2 people working on Printify (May go with a custom solution if Diego can get the Shirts cheaper ordering in bulk)
If we go the custome solution route this changes to implementing Stripe instead
2 people working on Xero
2 people working to revamp the design of the mobi website
2 people working on an admin dashboard (optional)

Printify API

  • Sign Up and Obtain API Key:

    • Create Printify account.
    • Generate API key in the Printify Developer Dashboard.
  • Include Printify API Script:

    • Add <script> tag for Printify API in HTML.
  • Initialize Printify API:

    • Create Printify instance with your API key.
  • Fetch Product Catalog:

    • Use API to get the product catalog.
    • Handle catalog data and errors.
  • Display Products on Your Website:

    • Render product catalog on website.
  • Handle Product Selection:

    • Enable user selection and customization.
  • Fetch Product Prices:

    • Use API to get prices for selected product/options.
    • Handle prices and errors.
  • Add to Cart:

    • Implement functionality to add selected product to cart.
    • Handle success and errors.
  • Handle Checkout:

    • Allow users to proceed to checkout.
  • Handle Order Placement:

    • Implement order placement functionality.
    • Handle successful placement and errors.
  • Handle Webhooks (Optional):

    • Set up and manage Printify webhooks for event updates.
  • Testing:

    • Thoroughly test the entire workflow. ESPECIALLY AUTHENTICATION

Xero API

  • Initialize Xero API:

    • Initialize the Xero API using your credentials.
  • Authentication:

    • Implement the authentication flow to obtain an access token.
  • Handle Authentication Callback:

    • Handle the callback after user grants consent and obtain the access token.
  • Transform Data:

    • Transform Printify sales data into a format suitable for Xero.
  • Push Sales Data to Xero:

    • Use Xero API to create invoices or sales records.
  • Handle Errors:

    • Implement error handling for API calls and data transformation.
  • Automate Sync (Optional):

    • Consider setting up a periodic job to automate the sync between Printify and Xero.
  • Testing:

    • Thoroughly test the integration to ensure accurate data transfer.
  • Documentation Review:

    • Refer to Xero API documentation for any additional features or options.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions