Cant succed to create a contract from the api ! [Closed]
Hi by following the api guide online here :
I try to create a contrat on fly for my commercial to have a base of work, but i have an empty contrat arry for response with no more information can you help me find what im doing wrong ?
For this test i have already a conterpart created in zoho contract and i have extract an already existing contract of this type to comparison here :
"contracts":
[
{
- "modifiedTime":"Oct 17, 2022 11:37 AM",
- "apiName":"earerr",
- "endInType":0,
- "resourceId":"bfad9af3c1de4930888c6838e144f496",
"contractType":
{
- "templateType":0,
- "apiName":"contrat-idr-care-b2b",
- "name":"Contrat IDR CARE - B2B",
- "signPaper":0
},
- "description":"ezrez",
"amendments":
[
{
- "number":1,
- "modifiedTime":"Oct 17, 2022 11:37 AM",
- "isCurrent":true,
"stage":
{
- "apiName":"draft",
- "name":"Draft"
},
- "systemStatus":6,
- "latestCycleNumber":1,
- "id":"2249000000135009",
- "type":1,
- "startOption":1,
- "endOption":3,
- "docSource":1
}
]
,
- "signPaper":0,
- "source":5,
- "isActive":1,
- "isRenewable":false,
- "resourceUrl":""XXXXXXXXXXXX",
- "requesterName":"ezrezr",
"counterParty":
{
- "organizationApiName":"tester-societe",
- "name":"TESTER SOCIETE"
},
"requesterDepartment":
{
- "apiName":"sales",
- "name":"Sales"
},
"owner":
{
- "displayName":"Maxime Molina",
- "emailId":"XXXXXXXXXXXXXXX",
- "id":"XXXXXXXXXXX"
},
- "endIn":12,
- "intent":0,
- "partyA":0,
"primaryContact":
{
- "displayName":"Mr Tester Test",
- "emailId":"test@gm.com",
- "id":"2249000000130197"
},
- "contractTerm":true,
- "systemStatus":12,
- "partyB":1,
- "contractId":"2249000000135001",
- "name":"earerr"
Here is my deluge code request for creating the contrat :
- contrat_params = "{ inputfields: [{\"metaApiName\":\"contract-term\",\"inputs\":[{\"inputApiName\":\"contract-term\",\"inputValue\":true}]},{\"metaApiName\":\"is-renewable\",\"inputs\":[{\"inputApiName\":\"is-renewable\",\"inputValue\":true}]},{\"metaApiName\":\"contract-type\",\"inputs\":[{\"inputApiName\":\"contract-type\",\"inputValue\":\"contrat-idr-care-b2b\"}]},{\"metaApiName\":\"title\",\"inputs\":[{\"inputApiName\":\"title\",\"inputValue\":\"Contrat Care Ventury - Nivx 4 - 254154874565145\"}]},{\"metaApiName\":\"description\",\"inputs\":[{\"inputApiName\":\"description\",\"inputValue\":\"Contrat IDR CARE standard\"}]},{\"metaApiName\":\"requester-name\",\"inputs\":[{\"inputApiName\":\"requester-name\",\"inputValue\":\"Baptiste Lechat\"}]},{\"metaApiName\":\"requester-department\",\"inputs\":[{\"inputApiName\":\"requester-department\",\"inputValue\":\"Sales\"}]},{\"metaApiName\":\"party-b-name\",\"inputs\":[{\"inputApiName\":\"party-b-name\",\"inputValue\":\"tester-societe\"}]},{\"metaApiName\":\"counterparty-primary-contact\",\"inputs\":[{\"inputApiName\":\"party-b-primary-contact-name\",\"inputValue\":\"test@gm.com\"}]},{\"metaApiName\":\"contract-effective-date\",\"inputs\":[{\"inputApiName\":\"contract-effective-date\",\"inputValue\":1},]},{\"metaApiName\":\"contract-end-date\",\"inputs\":[{\"inputApiName\":\"contract-end-date\",\"inputValue\":3},{\"inputApiName\":\"n-monthsyears-value\",\"inputValue\":12},{\"inputApiName\":\"n-monthsyears-term\",\"inputValue\":0}]}], source: 1 }";
- responsec = invokeurl
- [
- url :"https://contracts.zoho.eu/api/v1/contracts"
- type : POST
- parameters: contrat_params
- connection: "crm_contract"
- ];
- info responsec;
But a the end when i submit no contract is created and i got no error :
The APi simply respond an empty contract :
Fonction exécutée avec succès
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Sticky Posts
11 Common API Errors and How to Prevent Them
Zoho Contracts offers an extensive set of APIs using which you can integrate with your applications and build custom solutions. However, while using them and executing your code, you might face some errors. The reason might be due to any of the following
Organization Parameter in API Calls
Zoho Contracts now supports the multi-org feature where users can be part of multiple organizations. You can now manage contracts across multiple organizations with separate Zoho Contracts accounts for each organization. Users who are part of multiple
Zoho Contracts API Documentation
Greetings! The API documentation of Zoho Contracts is now available. Please access it from the below link. https://www.zoho.com/contracts/api/introduction.html You can post your queries and problems relating to Zoho Contracts API in this developer forum.
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Projects Resources
Zoho Sprints Resources
Zoho Orchestly Resources
Zoho Creator Resources
Zoho WorkDrive Resources
Zoho Campaigns Resources
Zoho CRM Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.