Integration - Technical Requirements
Credentials:
- Need App UI Accesses (can be limited) - which can help on understanding the invoice structure.
Integration flow:
Event:
Agent Introduces Invoice Data in APP:
From: App (Relive)
To: Odoo (Tecbased)
Payload should contain:
Invoice data + invoice lines data.
Property data
Agent data
TODO:
- Tecbased - Decide Data model, after some Data examples from Relive on how this data is structured on the APP.
- Tecbased - creates the endpoint/endpoints accepting this information (POST request)
- Relive - decides on the APP when the endpoint should be triggered.
Event:
Commission Calculation / Revenue Share from Odoo
From: Odoo (Tecbased)
To: APP (Relive)
TODO:
- Relive - creates the endpoint that Tecbased calls
- Relive/Tecbased - Decide data model be sent
Something like this works?
TODO: ON HOLD "COMISSION" OR "COMMISSION"
{
"comission_calculation": 100,
"revenue_share": 10,
"invoice_name": "unique-invoice-name-identifier"
}- Tecbased - sends the data after the commission is calculated.
Event:
Invoice is sent on Odoo (on move in date)
From: Odoo (Tecbased)
To: APP (Relive)
TODO:
- Relive - creates the endpoint that Tecbased calls
​Something like POST {relive-url}/{invoicename}/invoice_sent
​Or PUT request with
{
"invoice_status": sent
}- Tecbased - makes the API call, after the invoice was sent.
Event:
Invoice is