Skip to content

Instantly share code, notes, and snippets.

@dubeyji10
Created May 18, 2022 10:58
Show Gist options
  • Select an option

  • Save dubeyji10/fd08fc93fb570680b5e6bd03ecc5239e to your computer and use it in GitHub Desktop.

Select an option

Save dubeyji10/fd08fc93fb570680b5e6bd03ecc5239e to your computer and use it in GitHub Desktop.
to insert invoice items using api
import requests
import json
url = "https://www.zohoapis.in/crm/v2/invoice_items"
payload = json.dumps({
"data": [
{
"Name": "00000000000000000003",
"Total_Months": 2,
"$currency_symbol": "₹",
"Query": "python request a sample query",
"Data_Type": "sent from python request just a sample data type",
"Mode_Of_Delivery": "post"
}
],
"trigger": [
"approval",
"workflow",
"blueprint"
]
})
headers = {
'Authorization': 'your-access-token',
'Content-Type': 'application/json',
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment