Coder Social home page Coder Social logo

jcperez2405 / sliced-invoices-api-connector Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 34 KB

Extends the features of Sliced Invoice plugin to be reachable by external apps via WP native REST API.

License: GNU General Public License v3.0

PHP 100.00%
wordpress-plugin wp-rest-api sliced-invoices woocommerce-api

sliced-invoices-api-connector's Introduction

Name: Sliced Invoices API Connector

Version: 1.0.0

Description: Extends the features of Sliced Invoice plugin to be reachable by external apps via WP native REST API.

License: GNU GPLv3

Details:

  • Quotes CRUD
  • Invoices CRUD

Endpoints:

  • Quotes
    • /wc-connector/v1/quotes
      • Method: GET
      • Description: List all quotes
    • /wc-connector/v1/quotes
      • Method: POST
      • Description: Store a new quote
      • Params:
        • customer_email
          • Required
          • Valid email address
        • items
          • Required
          • Array of items, each item with a valid titleqty and amount
        • action
          • Required.
          • Valid options are Draft and Sent
        • discount
          • Optional
          • Integer
    • /wc-connector/v1/quotes/{quote_id}
      • Method: PUT | PATCH
      • Description: Update an existing quote
      • Params:
        • customer_email
          • Required
          • Valid email address
        • items
          • Required
          • Array of items, each item with a valid titleqty and amount
        • action
          • Required.
          • Valid options are Draft and Sent
        • discount
          • Optional
          • Integer
    • /wc-connector/v1/quotes/{quote_id}
      • Method: DELETE
      • Description: Delete an existing quote
  • Invoices
    • /wc-connector/v1/invoices
      • Method: GET
      • Description: List all invoices
    • /wc-connector/v1/invoices
      • Method: POST
      • Description: Store a new invoice
      • Params:
        • customer_email
          • Required
          • Valid email address
        • items
          • Required
          • Array of items, each item with a valid titleqty and amount
        • action
          • Required.
          • Valid options are Draft and Sent
        • discount
          • Optional
          • Integer
    • /wc-connector/v1/invoices/{invoice_id}
      • Method: PUT | PATCH
      • Description: Update an existing invoice
      • Params:
        • customer_email
          • Required
          • Valid email address
        • items
          • Required
          • Array of items, each item with a valid titleqty and amount
        • action
          • Required.
          • Valid options are Draft and Sent
        • discount
          • Optional
          • Integer
    • /wc-connector/v1/invoices/{invoice_id}
      • Method: DELETE
      • Description: Delete an existing invoice

Installation:

  1. Upload the entire sliced-invoices-api-connector folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.

Notes:

  1. Both, WooCommerce and Sliced Invoices must be activated.
  2. The plugin uses WC Authentication methods.
  3. Site with SSL is recommended.
  4. Internally the plugin will resolve the customer_email parameter to an existing user, if no user exists with that email, it will be created.

sliced-invoices-api-connector's People

Contributors

jcperez2405 avatar

Stargazers

 avatar

Watchers

 avatar  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.