Skip to main content

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 to work with partners and subscription requests that depend on the cooperator SomConnexio modules.

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 admin user.

Usage

This module 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-cooperator-api-somconnexio 16.0.1.1.3

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-cooperator-api-somconnexio 16.0.1.1.3
File Size Uploaded
odoo_addon_cooperator_api_somconnexio-16.0.1.1.3.tar.gz 17.2 kB Details

Release files / odoo_addon_cooperator_api_somconnexio-16.0.1.1.3.tar.gz

Download URL odoo_addon_cooperator_api_somconnexio-16.0.1.1.3.tar.gz
Size 17.2 kB
Tags Source
SHA-256 checksum
How to use checksums
6dca67c6dee82ad75b11435bd60c8bd421554fc71ee488f16b7ea13c019f783b
BLAKE2b-256 checksum
How to use checksums
9df85ca1d070fb88a16788cc0a9d7b3b9644b1db1614d4eebb982731b98d8f0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release history Release notifications | RSS feed

This release

16.0.1.1.3 This release

1 release file

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