The topics explained on this page are:
Table of Contents | ||||
---|---|---|---|---|
|
...
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 -
First, you’ll need to upload the images at:
POST https://sales-pci.tryemanagecrm.com/api/invoices/images
...
You’ll get the “imageGroupId” and pass it to the invoice creation itself at:
POST https://sales-pci.tryemanagecrm.com/api/invoices
...
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.