Hello guys I need your help please.
When I try to "Update Budget", using this Clientify REST API command:
PUT https://api.clientify.net//v1/budgets/:budget_id/
For the field "items", I am sending:
[{"id":334907,"product":{"id":4262676,"name":"Some Product Name","currency":"USD"},"item":null,"quantity":"1.00","unit_price":"100.00","discount_percentage":"10.00","taxes":[21],"description":"<html>\r\n<head>\r\n\t<title><\/title>\r\n<\/head>\r\n<body><\/body>\r\n<\/html>"}]
And I get this error message:
[{"product":["Incorrect type. Expected pk value, received dict."]}]
I have the "Simple Response" Disabled.
What is the correct format to send into the "items" field to get rid of this error message?
When I try to "Update Budget", using this Clientify REST API command:
PUT https://api.clientify.net//v1/budgets/:budget_id/
Clientify
## Welcome to Clientify API! Clientify API uses REST technology for interchanging data between your application and our service and is built to allow you to create a functional application or integration quickly and easily. The data exchange is made by the HTTP protocol. The benefit of this...
developer.clientify.com
For the field "items", I am sending:
[{"id":334907,"product":{"id":4262676,"name":"Some Product Name","currency":"USD"},"item":null,"quantity":"1.00","unit_price":"100.00","discount_percentage":"10.00","taxes":[21],"description":"<html>\r\n<head>\r\n\t<title><\/title>\r\n<\/head>\r\n<body><\/body>\r\n<\/html>"}]
And I get this error message:
[{"product":["Incorrect type. Expected pk value, received dict."]}]
I have the "Simple Response" Disabled.
What is the correct format to send into the "items" field to get rid of this error message?
Attachments
Last edited: