Question

Copper lead conversion programmatic API

  • 4 November 2022
  • 0 replies
  • 12 views

Userlevel 3
Badge +4

I’m calling /v1/leads/{id}/convert, w/ payload of
{'details': {'person': {}, 'company': {}, 'opportunity': {}}, 'person': {'name': 'THEIRNAME'}, 'company': {}}

But instead of a well-formed error code, I get a 500 w/ the text set as below, noteably an undefined method of to_i\’. What can i do to work around this?

Its not clear to me why i need to set a field in the person{} record, should that not come from the Lead?

 

```
'{"success":false,"status":500,"message":"undefined method `to_i\' for \\u003cActionController::Parameters {} permitted: true\\u003e:ActionController::Parameters"}'
```

 


0 replies

Be the first to reply!

Reply