Passa al contenuto
Odoo Menu
  • Accedi
  • Provalo gratis
  • App
    Finanze
    • Contabilità
    • Fatturazione
    • Note spese
    • Fogli di calcolo (BI)
    • Documenti
    • Firma
    Vendite
    • CRM
    • Vendite
    • Punto vendita Negozio
    • Punto vendita Ristorante
    • Abbonamenti
    • Noleggi
    Siti web
    • Configuratore sito web
    • E-commerce
    • Blog
    • Forum
    • Live chat
    • E-learning
    Supply chain
    • Magazzino
    • Produzione
    • PLM
    • Acquisti
    • Manutenzione
    • Qualità
    Risorse umane
    • Dipendenti
    • Assunzioni
    • Ferie
    • Valutazioni
    • Referral dipendenti
    • Parco veicoli
    Marketing
    • Social marketing
    • E-mail marketing
    • SMS marketing
    • Eventi
    • Marketing automation
    • Sondaggi
    Servizi
    • Progetti
    • Fogli ore
    • Assistenza sul campo
    • Helpdesk
    • Pianificazione
    • Appuntamenti
    Produttività
    • Comunicazioni
    • Approvazioni
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    App di terze parti Odoo Studio Piattaforma cloud Odoo
  • Settori
    Retail
    • Libreria
    • Negozio di abbigliamento
    • Negozio di arredamento
    • Alimentari
    • Ferramenta
    • Negozio di giocattoli
    Cibo e ospitalità
    • Bar e pub
    • Ristorante
    • Fast food
    • Pensione
    • Grossista di bevande
    • Hotel
    Agenzia immobiliare
    • Agenzia immobiliare
    • Studio di architettura
    • Edilizia
    • Gestione immobiliare
    • Impresa di giardinaggio
    • Associazione di proprietari immobiliari
    Consulenza
    • Società di contabilità
    • Partner Odoo
    • Agenzia di marketing
    • Studio legale
    • Selezione del personale
    • Audit e certificazione
    Produzione
    • Tessile
    • Metallo
    • Arredamenti
    • Alimentare
    • Birrificio
    • Ditta di regalistica aziendale
    Benessere e sport
    • Club sportivo
    • Negozio di ottica
    • Centro fitness
    • Centro benessere
    • Farmacia
    • Parrucchiere
    Commercio
    • Tuttofare
    • Hardware e assistenza IT
    • Ditta di installazione di pannelli solari
    • Calzolaio
    • Servizi di pulizia
    • Servizi di climatizzazione
    Altro
    • Organizzazione non profit
    • Ente per la tutela ambientale
    • Agenzia di cartellonistica pubblicitaria
    • Studio fotografico
    • Punto noleggio di biciclette
    • Rivenditore di software
    Carica tutti i settori
  • Community
    Apprendimento
    • Tutorial
    • Documentazione
    • Certificazioni 
    • Formazione
    • Blog
    • Podcast
    Potenzia la tua formazione
    • Programma educativo
    • Scale Up! Business Game
    • Visita Odoo
    Ottieni il software
    • Scarica
    • Versioni a confronto
    • Note di versione
    Collabora
    • Github
    • Forum
    • Eventi
    • Traduzioni
    • Diventa nostro partner
    • Servizi per partner
    • Registra la tua società di contabilità
    Ottieni servizi
    • Trova un partner
    • Trova un contabile
    • Incontra un esperto
    • Servizi di implementazione
    • Testimonianze dei clienti
    • Supporto
    • Aggiornamenti
    GitHub Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Richiedi una demo
  • Prezzi
  • Aiuto

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Contabilità
  • Magazzino
  • PoS
  • Progetti
  • MRP
All apps
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
Assistenza

Trying to request a document signature through the JSON API

Iscriviti

Ricevi una notifica quando c'è un'attività per questo post

La domanda è stata contrassegnata
apijsonsignature
2 Risposte
163 Visualizzazioni
Avatar
Seb Peterson
Hello. I'm using the JSON API for my CRM and contacts without any problems. I'm now trying to integrate the API for the Signature app... with some issues. When I try to create a signature request, I get an error, but I can't find the documentation to resolve it. Here is my request (Python):

res_create = requests.post(
f"{self.base_url}/sign.request/create",
headers=self.headers,
json={
"ids": [],
"context": {"lang": "en_US"},
"vals_list": [
{
"template_id": template_id,
"message_partner_ids": [xxx],
}
],
},
timeout=30
)

I get this error:
requests.exceptions.HTTPError: 422 Client Error: UNPROCESSABLE ENTITY for url: https://mydb-dev.odoo.com/json/2/sign.request/create

I think I don't have the correct initial "vals_list" values to create this object. How can I find this information?

Thanks in advance.
0
Avatar
Abbandona
Avatar
Seb Peterson
Autore Risposta migliore

Hi,

thanks for your suggestions. Looking at what happens on the web client network, when requesting a template signature, it looks nothing the CRUD endpoints listed for the JSON API here: https://www.odoo.com/documentation/19.0/developer/reference/external_api.html#api

Web client 1st sends a "web_save" method, model "sign.send.request", 
then a "send_request" method, model "sign.send.request",

Trying to add most of the args in my create endpoint generate  INTERNAL SERVER ERROR.

Very frustrating to not get answers from Odoo support... and not having any documentation for this.

0
Avatar
Abbandona
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Risposta migliore

Hi,

The 422 Unprocessable Entity error indicates that the Signature request is reaching Odoo correctly, but the JSON payload is missing required values or does not match what the Signature app expects. The sign.request/create endpoint requires more data than just template_id and message_partner_ids, and the exact structure of vals_list depends on how the Signature template is configured (roles, signers, and required fields). Since the Signature API is not fully documented, the recommended approach is to enable Developer Mode, create a Signature request manually from the Odoo UI using the same template, and inspect the Network tab in your browser to capture the /sign/request/create payload. That request shows the exact fields and structure required for your template. Most 422 errors occur because a required signer role or assignment is missing or mismatched, so ensuring the template is valid, published, and that all signer roles are properly provided will resolve the issue.


Hope it helps

0
Avatar
Abbandona
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!

Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!

Registrati
Post correlati Risposte Visualizzazioni Attività
How to make pagination in JSON-RPC api call ? Risolto
api json
Avatar
Avatar
2
dic 25
7803
Request Document Template Signature using XML-RPC
api signature XML-RPC
Avatar
0
lug 21
4249
json api
api json java
Avatar
0
mar 15
6778
Return Only JSON body and not RPC from controller v16
api json controllers odoo16
Avatar
1
set 24
2397
How would I use the JSON-RPC API to send Invoices via Email? send them to Peppol?
sales accounting invoice api json
Avatar
Avatar
Avatar
2
dic 25
338
Community
  • Tutorial
  • Documentazione
  • Forum
Open source
  • Scarica
  • Github
  • Runbot
  • Traduzioni
Servizi
  • Hosting Odoo.sh
  • Supporto
  • Aggiornamenti
  • Sviluppi personalizzati
  • Formazione
  • Trova un contabile
  • Trova un partner
  • Diventa nostro partner
Chi siamo
  • La nostra azienda
  • Branding
  • Contattaci
  • Lavora con noi
  • Eventi
  • Podcast
  • Blog
  • Clienti
  • Note legali • Privacy
  • Sicurezza
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo è un gestionale di applicazioni aziendali open source pensato per coprire tutte le esigenze della tua azienda: CRM, Vendite, E-commerce, Magazzino, Produzione, Fatturazione elettronica, Project Management e molto altro.

Il punto di forza di Odoo è quello di offrire un ecosistema unico di app facili da usare, intuitive e completamente integrate tra loro.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now