Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The topics explained on this page are:

Table of Contents
minLevel1
maxLevel3

...

Invoices are charges for some service provided by GPC to a client for which it has to be paid for. It’s a simple interface where you can provide card data, cardholder’s and cardholder information and upload images with proper agreements about the payment.

...

Invoices inside our system

Once the user has submitted a new invoice, the following will happen inside our system:1 -

  1. First, you’ll need to upload the images at:
    POST https://sales-pci.tryemanagecrm.com/api/invoices/images

    Image Modified

...

  1. You’ll get the “imageGroupId” and pass it to the invoice creation itself at:
    POST https://sales-pci.tryemanagecrm.com/api/invoices

    Image Modified

...

  1. The system will return the ID for the new invoice and a status message about the operation.

Sample payload to submit a new invoice

...

Invoices do not share the common tables and workflows as a regular order orders inside our system do. Instead, they have a particular set of tables:

  • InvoiceLogs: store the whole request/response for the invoice creation

  • Invoices: store the basic information about the invoice

  • InvoiceReceipts: store all the

...

  • information regarding the payment performed by the Payments API for that invoice

  • InvoiceImages: store the images associated with the invoice.