Overslaan naar inhoud
Odoo Menu
  • Aanmelden
  • Probeer het gratis
  • Apps
    Financiën
    • Boekhouding
    • Facturatie
    • Onkosten
    • Spreadsheet (BI)
    • Documenten
    • Ondertekenen
    Verkoop
    • CRM
    • Verkoop
    • Kassasysteem winkel
    • Kassasysteem Restaurant
    • Abonnementen
    • Verhuur
    Websites
    • Websitebouwer
    • E-commerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Bevoorradingsketen
    • Voorraad
    • Productie
    • PLM
    • Inkoop
    • Onderhoud
    • Kwaliteit
    Personeelsbeheer
    • Werknemers
    • Werving & Selectie
    • Verlof
    • Evaluaties
    • Aanbevelingen
    • Wagenpark
    Marketing
    • Sociale media-marketing
    • E-mailmarketing
    • Sms-marketing
    • Evenementen
    • Marketingautomatisering
    • Enquêtes
    Diensten
    • Project
    • Urenstaten
    • Buitendienst
    • Helpdesk
    • Planning
    • Afspraken
    Productiviteit
    • Chat
    • Goedkeuringen
    • IoT
    • VoIP
    • Kennis
    • WhatsApp
    Apps van derden Odoo Studio Odoo Cloud Platform
  • Bedrijfstakken
    Detailhandel
    • Boekhandel
    • kledingwinkel
    • Meubelzaak
    • Supermarkt
    • Bouwmarkt
    • Speelgoedwinkel
    Food & Hospitality
    • Bar en Pub
    • Restaurant
    • Fastfood
    • Gastenverblijf
    • Drankenhandelaar
    • Hotel
    Vastgoed
    • Makelaarskantoor
    • Architectenbureau
    • Bouw
    • Vastgoedbeheer
    • Tuinieren
    • Vereniging van eigenaren
    Consulting
    • Accountantskantoor
    • Odoo Partner
    • Marketingbureau
    • Advocatenkantoor
    • Talentenwerving
    • Audit & Certificering
    Productie
    • Textiel
    • Metaal
    • Meubels
    • Eten
    • Brewery
    • Relatiegeschenken
    Gezondheid & Fitness
    • Sportclub
    • Opticien
    • Fitnesscentrum
    • Wellness-medewerkers
    • Apotheek
    • Kapper
    Trades
    • Klusjesman
    • IT-hardware & support
    • Zonne-energiesystemen
    • Schoenmaker
    • Schoonmaakdiensten
    • HVAC-diensten
    Andere
    • Non-profitorganisatie
    • Milieuagentschap
    • Verhuur van Billboards
    • Fotograaf
    • Fietsleasing
    • Softwareverkoper
    Browse all Industries
  • Community
    Leren
    • Tutorials
    • Documentatie
    • Certificeringen
    • Training
    • Blog
    • Podcast
    Versterk het onderwijs
    • Onderwijs- programma
    • Scale Up! Business Game
    • Bezoek Odoo
    Download de Software
    • Downloaden
    • Vergelijk edities
    • Releases
    Werk samen
    • Github
    • Forum
    • Evenementen
    • Vertalingen
    • Word een Partner
    • Services for Partners
    • Registreer je accountantskantoor
    Diensten
    • Vind een partner
    • Vind een boekhouder
    • Een adviseur ontmoeten
    • Implementatiediensten
    • Klantreferenties
    • Ondersteuning
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Vraag een demo aan
  • Prijzen
  • Help

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

  • CRM
  • e-Commerce
  • Boekhouding
  • Voorraad
  • PoS
  • Project
  • MRP
All apps
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Help

Trying to request a document signature through the JSON API

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
apijsonsignature
2 Antwoorden
170 Weergaven
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
Annuleer
Avatar
Seb Peterson
Auteur Beste antwoord

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
Annuleer
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Beste antwoord

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
Annuleer
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!

Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!

Aanmelden
Gerelateerde posts Antwoorden Weergaven Activiteit
How to make pagination in JSON-RPC api call ? Opgelost
api json
Avatar
Avatar
2
dec. 25
7807
Request Document Template Signature using XML-RPC
api signature XML-RPC
Avatar
0
jul. 21
4250
json api
api json java
Avatar
0
mrt. 15
6783
Return Only JSON body and not RPC from controller v16
api json controllers odoo16
Avatar
1
sep. 24
2402
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
dec. 25
340
Community
  • Tutorials
  • Documentatie
  • Forum
Open Source
  • Downloaden
  • Github
  • Runbot
  • Vertalingen
Diensten
  • Odoo.sh Hosting
  • Ondersteuning
  • Upgrade
  • Gepersonaliseerde ontwikkelingen
  • Onderwijs
  • Vind een boekhouder
  • Vind een partner
  • Word een Partner
Over ons
  • Ons bedrijf
  • Merkelementen
  • Neem contact met ons op
  • Vacatures
  • Evenementen
  • Podcast
  • Blog
  • Klanten
  • Juridisch • Privacy
  • Beveiliging
الْعَرَبيّة 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 is een suite van open source zakelijke apps die aan al je bedrijfsbehoeften voldoet: CRM, E-commerce, boekhouding, inventaris, kassasysteem, projectbeheer, enz.

Odoo's unieke waardepropositie is om tegelijkertijd zeer gebruiksvriendelijk en volledig geïntegreerd te zijn.

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