Invalid Value Passed in customer_name API

Invalid Value Passed in customer_name API

Hello,
I am trying to send data from zoho creator to zoho books, while doing that it throws me an error

{"code":4,"message":"Invalid value passed for Customer Name"}

This is the code:

  1. void BooksIntegration()
  2. {
  3. mapp = Map();
  4. mapp.put("contact_name","Bhavik");
  5. dataa = Map();
  6. dataa.put("data",mapp);
  7. head = Map();
  8. head.put("Authorization","Zoho-oauthtoken 1000.xxxx " );
  9. addRecords = invokeurl
  10. [
  11. url :"https://books.zoho.in/api/v3/contacts?organization_id=60002432254"
  12. type :POST
  13. parameters:dataa.tostring()
  14. headers:head
  15. ];
  16. info addRecords;

  17. }