Invoices
Get an invoice
GET /invoices/{uuid}
GET
/invoices/{uuid}Returns one invoice with its number, date, amount, taxes and total in cents, currency and the address of the PDF. The PDF itself can be downloaded only from the Easymailing panel, signed in.
When to use: To read the totals of an invoice you already know.
When not to use: To find invoices use list_invoices.
Permissions: Requires the account role or higher, or the account.billing.read capability.
X-Auth-Token<token>
Value for the X-Auth-Token header parameter.
In: header
Path Parameters
uuid*string
UUID of the invoice. Get it with list_invoices.
Response Body
application/problem+json
application/problem+json
application/problem+json
curl -X GET "https://api.easymailing.com/invoices/f0a7c3d2-5b19-4e68-9d41-7c8e2b6a1035" \ -H "X-Auth-Token: YOUR_API_KEY"{ "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "number": "string", "date": "2019-08-24", "amount": 0, "taxes": 0, "total": 0, "currency": "string", "download_url": "http://example.com", "created_at": "2019-08-24T14:15:22Z"}