Created
May 18, 2022 10:58
-
-
Save dubeyji10/fd08fc93fb570680b5e6bd03ecc5239e to your computer and use it in GitHub Desktop.
to insert invoice items using api
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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