Skip to main content

CRM Lead API - SomConnexio

Beta License: AGPL-3 coopdevs/som-connexio/odoo-somconnexio

This module is a part of SomConnexió original module.

We are working to separate the monolitic original module in small modules splited by functionalities.

This module provides a REST API for creating CRMLeads (service requests) with all the necessary data to activate the services offered by SomConnexió.

Table of contents

Configuration

To configure this addon in your Odoo project, follow these steps:

  1. Install the package.

  2. Go to Settings > Technical > Auth Api Key.

  3. Create an API Key related with an user allowed to create CRMLeads.

Usage

Here’s an example of how to use the REST API to create a CRMLead:

import requests

url = "https://your-odoo-server/api/crmlead"
payload = {
    "partner_id": "1234",
    "iban": "ES62 3025 0011 7814 0009 1223",
    "lead_line_ids": [
        {
            "product_code": "SE_SC_REC_MOBILE_PACK_UNL_20480",
            "mobile_isp_info": {
                "icc_donor": "123",
                "phone_number": "654121234",
                "type": "new",
                "delivery_address": {
                    "street": "Carrer Oliva 4b",
                    "street2": "",
                    "zip_code": "08640",
                    "city": "Banyoles",
                    "country": "ES",
                    "state": "B",
                },
                "invoice_address": {
                    "street": "Carrer Oliva 4b",
                    "street2": "",
                    "zip_code": "08640",
                    "city": "Banyoles",
                    "country": "ES",
                    "state": "B",
                },
            },
            "broadband_isp_info": {},
        },
        # Add here other CRMLeadLine if is required.
        # One CRMLeadLine per service.
    ],
}

response = requests.post(url, json=payload)
print(response.json())

Contributors

Metadata

Release files for odoo-addon-crm-lead-api-somconnexio 16.0.1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for odoo-addon-crm-lead-api-somconnexio 16.0.1.1.1
File Size Uploaded Provenance Actions
odoo_addon_crm_lead_api_somconnexio-16.0.1.1.1.tar.gz 13.3 kB Without provenance Details for odoo_addon_crm_lead_api_somconnexio-16.0.1.1.1.tar.gz

Release files / odoo_addon_crm_lead_api_somconnexio-16.0.1.1.1.tar.gz

Download URL odoo_addon_crm_lead_api_somconnexio-16.0.1.1.1.tar.gz
Size 13.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b0711f44cb847ab7d20ada4338ed85a79f6e7c5a0ff7a973e83f807aeb4f7bc4
BLAKE2b-256 checksum
How to use checksums
6ce2febeec009929d3e132a26e8faf6417bdad9162c40c6dc790d21d647562c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.12

Security for odoo-addon-crm-lead-api-somconnexio 16.0.1.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page