Open alexsherstinsky opened 10 years ago
Right now it's not possible to get information out of the custom fields on the invoice. The base class requires that we be explicit about the fields that are getting returned. My use case at the time didn't include custom fields but I'd be happy to accept a pull request that had that functionality.
Hi, Rimas:
Thank you for replying to me!
The API documentation is currently not updated with the documentation for custom fields. Sorry for the confusion, we will update the documentation soon. However, the procedure to retrieve the values for invoice custom fields is simple. Take a look at the explanation below:
The API URL to get the custom fields for the invoices is :
1. https://invoice.zoho.com/api/v3/settings/customfields/invoice?authtoken=
Dear Rimas:
I created a pull request. Please consider it. It was a lot of fun learning and working with your gem, while upgrading it to Zoho V3 API.
Thank you.
Sincerely, --Alex
On Tue, Mar 4, 2014 at 2:53 PM, Alex Sherstinsky < alex.sherstinsky@mustexist.com> wrote:
Hi, Rimas:
Thank you for replying to me!
Here is the information that the Zoho team gave me:
The API documentation is currently not updated with the documentation for custom fields. Sorry for the confusion, we will update the documentation soon. However, the procedure to retrieve the values for invoice custom fields is simple. Take a look at the explanation below:
The API URL to get the custom fields for the invoices is :
1. https://invoice.zoho.com/api/v3/settings/customfields/invoice?authtoken=
&organization_id= Sample response: 1. { 2. "code": 0, 3. "message": "success", 4. "customfields": [ 5. { 6. "index": 1, 7. "show_in_all_pdf": false, 8. "label": "custom_label_1" 9. }, 10. { 11. "index": 2, 12. "show_in_all_pdf": false, 13. "label": "custom_label_2" 14. }, 15. { 16. "index": 3, 17. "show_in_all_pdf": true, 18. "label": "custom_label_3" 19. } 20. ] 21. } For every GET URL, you will be required to pass parameters like # _authtoken_ and _organization_id_. I would be happy to try to add this to your gem and then issue a pull request. Could you please help me by telling me which classes I should be looking at in order to accomplish this? Thanks again. Sincerely, --Alex On Tue, Mar 4, 2014 at 2:00 PM, Rimas Silkaitis notifications@github.comwrote: > Right now it's not possible to get information out of the custom fields > on the invoice. The base class requires that we be explicit about the > fields that are getting returned. My use case at the time didn't include > custom fields but I'd be happy to accept a pull request that had that > functionality. > > ## > > Reply to this email directly or view it on GitHubhttps://github.com/neovintage/zoho_invoice/issues/9#issuecomment-36683884 > .
@alexsherstinsky do you have your adjusted v3 code available as a fork as well? I'm looking everywhere (in the current gem) how to retrieve a single invoice by just using the id, according to the API it should be very easy, like doing a get on /invoices/562674000000045111 but I can't see how that's implemented in the gem and there is no documentation.
@alexsherstinsky Thanks for doing that. I'll look through the pull requests and make comments there.
Thank you! Looking forward to learning if it was done well enough to be integrated in your code, or if you would do it differently. Sincerely, --Alex
On Tue, Nov 11, 2014 at 6:37 AM, Rimas Silkaitis notifications@github.com wrote:
@alexsherstinsky https://github.com/alexsherstinsky Thanks for doing that. I'll look through the pull requests and make comments there.
— Reply to this email directly or view it on GitHub https://github.com/neovintage/zoho_invoice/issues/9#issuecomment-62555010 .
Alex Sherstinsky MustExist, Inc. (http://www.mustexist.com/) alex.sherstinsky@mustexist.com Skype: AlexSherstinsky http://twitter.com/AlexSherstinsky 650.260.3913 http://www.linkedin.com/in/alexsherstinsky
Dear Author of the Zoho_Invoice Gem:
I am a very happy user of this gem -- thanks so much for making it available!
I hope you can help me with this question. Our Invoice records utilize Custom Fields, and I was trying to retrieve the values of these Custom Fields via the zoho_invoice gem utilities; however, I have not been able to figure out how to do that. Is there a way to do so? If yes, could you please share it with me? Or is this the limitation of the underlying Zoho Invoice XML API itself? I have sent an inquiry to their support, but have not heard back yet.
Thank you for your help.
Sincerely, --Alex Sherstinsky