Jump to content

[API] Retrieve Invoice Currency


sonpython

Recommended Posts

I quoted this guy 2-years old feature request https://requests.whmcs.com/topic/retrieve-invoice-currency

It was put to Under Consideration  status for 2 years
 

Quote

 

Hi there,

When using the API and making the request for an invoice (GetInvoice), the currency is absent.

If you make and api call to get all of the user invoices (GetInvoices), the currency is returned as a symbol and as an ISO code.

Please add the currency to GetInvoice api call.

 

This is very annoying. We build auto addon to check from the bank transactions then add payment to the invoice.

When call the API GetInvoice it does not include the currency information. So we need to call the GetInvoices and then compare one by one to get the currency information or need to call the GetClientsDetails to get the currency information.

Why don't just add currency information to the GetInvoice API?

Link to comment
Share on other sites

Hi Michael,

On 27/10/2019 at 08:34, sonpython said:

Why don't just add currency information to the GetInvoice API?

I suppose the logic is that in WHMCS, the currency is assigned to the client and not to any invoice... if GetInvoice is returning a result, then one option would be to use the userid value from the result in a second API call (using GetClientsDetails) to get the currency ID for that client..  if you then need currency/prefix details for that currency, you may need to refer GetCurrencies to obtain them.

with regards to getting the API changed, perhaps raise it as an issue on the WHMCS GitHub Docs site - I wouldn't hold out much hope via there or a feature request, but it might be worth a go.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated