Support Center

Integrating invoicing systems with Jumpseller

To have a better sales process for your online store, you should implement automatic invoicing, it reduces the time wasted creating manually these documents and decreases the number of human errors, making order management easier.

With Jumpseller, it is very easy to integrate an external invoicing system, let us take you through the process of developing the integration with an invoice software.


Requirements

If you want to integrate an Invoicing system with your store, here is what you need:

  • A Jumpseller store;
  • An invoice software with an API and the credentials for the API (normally the communication is via XML or JSON);
  • Technical knowledge in programming software to integrate both systems;
  • The integration code, typically running on an external server, managing the communication between the store and the invoicing system.

Workflow

The typical flow between the two systems is:

  • A new order is created in the Jumpseller store;
  • The Jumpseller’s store informs the invoicing system of this new sale, passing a JSON with the order’s information via a webhook;
  • The external invoicing system creates the invoice;
  • Either the invoicing system or the integration notify the customer of the invoice generation, normally by attaching the invoice in PDF to an email;
  • (optionally) if the invoicing system also controls the stock, the stock should be updated according this event;
  • (optionally) when the Jumpseller’s order changes status - Pending Payment, Paid or Canceled - the invoicing system can also be informed - important when “Paid” orders are “Canceled” and a “Credit Note” needs to be created.

To view the full list of available options please see the invoicing section on Jumpseller Apps Chile and Jumpseller Apps Portugal.


Integration

The integration code can be written in any given language capable of processing JSON data. This integration code must be hosted on your own web server and will handle the communication between the store and the invoicing system.

We recommend you to start by:

  • Create a test store, free up to 14 days - contact us if you need more trial days;
  • Add a webhook, which will fire data as a POST request on every “Order Update” to your Integration - use RequestBin to inspect them;
  • At your Integration code, read the body message and headers of the POST request (i.e the Webhook from the previous step);
  • With this data, process it and push it to the invoicing system, thus creating the invoice;
  • Add a new “Order Document Entry” to the Jumpseller store’s order with the document type, ID, and URL. Use the POST /orders/{id}/documents.json endpoint provided by the API;
  • Send an email to the Customer, with the Merchant’s email address in BCC, informing him of the newly created invoice;
  • “Tax Id” field can be set on a store as “Optional” or “Mandatory” on the Admin Panel. Prepare your integration accordingly.
  • (optionally) create “Checkout Custom Fields” to collect other specific invoicing information. Use the API too.
  • Fields like business_activity, company_name, and taxpayer_type, used for billing in some countries, are part of billing_information and included as optional fields in all orders, so custom fields aren’t needed.
  • (optionally) add JavaScript code to the store’s front end to validate fields. Use the JavaScript Apps for this purpose.
  • (optionally) every hour or every day, use the API to list all orders from a store and save them (fields: order_id, order_status, invoice_id). Issue invoices for all those orders without an invoice_id. Use the REST API for this purpose.

When this is done we recommended you to publish your integration, as an App, to all Jumpseller merchants. This will increase your work visibility and will be easier for new merchants to install and start using your integration.

Invoicing with Gift Cards

  • Ordered Products with type = 'gift_card' should be invoiced with VAT Tax zero (0);
  • (optionally) after redeeming a Gift Card - order.gift_cards_amount is positive - consider including a note or observation about the used Gift Card on the invoice document.

Resources

Getting Help

If you have questions or feedback about this guide, please contact our support team. We’re here to help.


Frequently asked questions

1. In case of roundings, how are they done?
Roundings are done item by item basis (and not on the order.total). There is extensive literature and legislation about it.

2. What is the Time/Dates format?
All Jumpseller dates are represented as strings in Coordinated Universal Time (UTC), like: “2023-02-10 13:56:35 UTC”. You should transform this date-time to the most appropriate timezone.

Start your journey with us!

Free trial for 14 days. No credit card required.