Weble / ZohoBooksApi

40 stars 39 forks source link

Fetching payment against Invoice #11

Closed NETSOLUAE closed 5 years ago

NETSOLUAE commented 5 years ago

Could you kindly assist on how to fetch one or multiple payments against each invoice in a loop or for single invoice?

thanks a lot in advance.

Skullbock commented 5 years ago

Sure, it should be something on the lines of:

$payments = $zohoBooks->invoices->getPayments('idoftheinvoice');

// Payments is now a Collection instance, so you can loop through and have all the details needed
foreach ($payments as $payment) {
   var_dump($payment);
}

Info on the data returned is here: https://www.zoho.com/books/api/v3/#Invoices_List_invoice_payments

NETSOLUAE commented 5 years ago

Skullbock! Thanks a lot for prompt response and clarification.

Skullbock commented 5 years ago

You’re welcome :-)

Il giorno gio 27 giu 2019 alle 19:24 NETSOL INTERNATIONAL - DUBAI < notifications@github.com> ha scritto:

Skullbock! Thanks a lot for prompt response and clarification.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/Weble/ZohoBooksApi/issues/11?email_source=notifications&email_token=AAINRU457OXDNFNDXTICNCTP4TZUTA5CNFSM4H3L4IKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYXZ5NA#issuecomment-506437300, or mute the thread https://github.com/notifications/unsubscribe-auth/AAINRU3ENCELPP3DSDJ66N3P4TZUTANCNFSM4H3L4IKA .

-- [image: Logo Weble] Daniele Rosario

CTO Weble Srl Via Enrico Fermi, 265 36100 Vicenza ufficio: +39 0444 1454934 <003904441454934> mobile: +39 3283017134 <00393283017134> weble.it https://www.weble.it/ https://www.facebook.com/pages/Weble/110077192371908?fref=ts https://twitter.com/Webleit?lang=it https://www.linkedin.com/company/2470613?trk=tyah&trkInfo=clickedVertical%3Acompany%2Cidx%3A2-2-7%2CtarId%3A1432717146425%2Ctas%3Aweble https://www.instagram.com/weble.it/