The code below is a complete working example of an API call to Fullbay to query invoices.
Notes:
It requires an SHA1 hash, we use the Kellerman suite to do that.