Zoho Expense API receipt not attached error
Greetings
Using the expense api i'm trying to create a new expense, according to the api docs there is nothing that has to do with receipts here
but when i send my post request i get response code 400, error code 33003, Receipt not attached error. i don't understand what receipts has to do with this, and i can't find any field where i can even attach a receipt or set it as empty..what can i do in this case?
my code looks like this
- void createExpense()
- {
- data = Map();
- data.put("date","2022-12-01");
- data.put("currency_id","16367000000000097");
- data.put("currency_code","USD");
- itemsList=List();
- itemsList.add({ "category_id": "16367000000000400",
- "amount": 207.65,
- "description":"Necessary Purchase"});
- data.put("line_items",itemsList);
-
- response = invokeUrl
- [
- url : "https://expense.zoho.com/api/v1/expenses"
- type : POST
- parameters : data
- connection : "test_expense_connection"
- detailed: true
- ];
- info response;
- }
where can i go to delve deeper into these matters? i'm facing a lot of api specific errors, is there a special docs for such issues?
thanks
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
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.