Zoho Expense API receipt not attached error

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

  1. void createExpense()
  2. {
  3. data = Map();
  4. data.put("date","2022-12-01");
  5. data.put("currency_id","16367000000000097");
  6. data.put("currency_code","USD");
  7. itemsList=List();
  8. itemsList.add({ "category_id": "16367000000000400",
  9.             "amount": 207.65,
  10. "description":"Necessary Purchase"});
  11. data.put("line_items",itemsList);
  12.   response = invokeUrl
  13.  [
  14. url : "https://expense.zoho.com/api/v1/expenses"
  15.   type : POST
  16.   parameters : data
  17.   connection : "test_expense_connection"
  18. detailed: true
  19.  ];
  20.  info response;
  21. }

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


                            • Digest


                            • Functions


                            • Meetups


                            • Kbase


                            • Resources


                            • Glossary


                            • Desk Marketplace


                            • MVP Corner


                            • Word of the Day



                                Zoho Marketing Automation


                                        Manage your brands on social media



                                                Zoho TeamInbox Resources

                                                  Zoho DataPrep Resources



                                                    Zoho CRM Plus Resources

                                                      Zoho Books Resources


                                                        Zoho Subscriptions Resources

                                                          Zoho Projects Resources


                                                            Zoho Sprints Resources


                                                              Qntrl Resources


                                                                Zoho Creator Resources


                                                                  Zoho WorkDrive Resources



                                                                    Zoho Campaigns Resources

                                                                      Zoho CRM Resources

                                                                      • CRM Community Learning Series

                                                                        CRM Community Learning Series


                                                                      • Tips

                                                                        Tips

                                                                      • Functions

                                                                        Functions

                                                                      • Meetups

                                                                        Meetups

                                                                      • Kbase

                                                                        Kbase

                                                                      • Resources

                                                                        Resources

                                                                      • Digest

                                                                        Digest

                                                                      • CRM Marketplace

                                                                        CRM Marketplace

                                                                      • MVP Corner

                                                                        MVP Corner




                                                                            Design. Discuss. Deliver.

                                                                            Create visually engaging stories with Zoho Show.

                                                                            Get Started Now