Get invoice¶
GET
https://api.mollie.com/v2/invoices/*id*
Retrieve details of an invoice, using the invoice’s identifier.
If you want to retrieve the details of an invoice by its invoice number, use the
list endpoint with the reference
parameter.
Parameters¶
Replace id
in the endpoint URL by the invoice ID, for example inv_FrvewDA3Pr
.
Response¶
200
application/json
resource
stringinvoice
for this endpoint.id
stringinv_FrvewDA3Pr
.reference
string2018.10000
.vatNumber
stringstatus
stringStatus of the invoice.
Possible values:
open
The invoice is not paid yet.paid
The invoice is paid.overdue
Payment of the invoice is overdue.
issuedAt
stringYYYY-MM-DD
format.paidAt
stringYYYY-MM-DD
format. Only for paid invoices.dueAt
stringYYYY-MM-DD
format. Only for due invoices.netAmount
amount objectTotal amount of the invoice excluding VAT, e.g. {"currency":"EUR", "value":"100.00"}
.
currency
stringvalue
stringvatAmount
amount objectVAT amount of the invoice. Only for merchants registered in the Netherlands. For EU merchants, VAT will be shifted to recipient (see article 44 and 196 EU VAT Directive 2006/112). For merchants outside the EU, no VAT will be charged.
currency
stringvalue
stringgrossAmount
amount objectTotal amount of the invoice including VAT.
currency
stringvalue
stringlines
arrayThe collection of products which make up the invoice.
period
stringYYYY-MM
on which the line should be booked.description
stringcount
integervatPercentage
decimalamount
amount objectAmount excluding VAT.
currency
stringvalue
string_links
objectUseful URLs to related resources.
self
URL objectpdf
URL objectdocumentation
URL objectExample¶
1 2 | curl -X GET "https://api.mollie.com/v2/invoices/inv_xBEbP9rvAq" \ -H "Authorization: Bearer access_Wwvu7egPcJLLJ9Kb7J632x8wJ2zMeJ" |
1 2 3 4 | <?php $mollie = new \Mollie\Api\MollieApiClient(); $mollie->setAccessToken("access_Wwvu7egPcJLLJ9Kb7J632x8wJ2zMeJ"); $invoice = $mollie->invoices->get("inv_xBEbP9rvAq"); |
1 2 3 4 5 6 | from mollie.api.client import Client mollie_client = Client() mollie_client.set_access_token("access_Wwvu7egPcJLLJ9Kb7J632x8wJ2zMeJ") invoice = mollie_client.invoices.get("inv_xBEbP9rvAq") |
1 2 3 4 5 6 7 | require 'mollie-api-ruby' Mollie::Client.configure do |config| config.api_key = 'access_Wwvu7egPcJLLJ9Kb7J632x8wJ2zMeJ' end invoice = Mollie::Invoice.get('inv_xBEbP9rvAq') |
1 2 3 4 | We don't have a Node.js code example for this API call yet. If you have some time to spare, feel free to share suggestions on our Discord: https://discord.gg/VaTVkXB4aQ |
Response¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | HTTP/1.1 200 OK Content-Type: application/json { "resource": "invoice", "id": "inv_xBEbP9rvAq", "reference": "2016.10000", "vatNumber": "NL001234567B01", "status": "open", "issuedAt": "2016-08-31", "dueAt": "2016-09-14", "netAmount": { "value": "45.00", "currency": "EUR" }, "vatAmount": { "value": "9.45", "currency": "EUR" }, "grossAmount": { "value": "54.45", "currency": "EUR" }, "lines":[ { "period": "2016-09", "description": "iDEAL transactiekosten", "count": 100, "vatPercentage": 21, "amount": { "value": "45.00", "currency": "EUR" } } ], "_links": { "self": { "href": "https://api.mollie.com/v2/invoices/inv_xBEbP9rvAq", "type": "application/hal+json" }, "pdf": { "href": "https://www.mollie.com/merchant/download/invoice/xBEbP9rvAq/2ab44d60b35b1d06090bba955fa2c602", "type": "application/pdf", "expiresAt": "2018-11-09T14:10:36+00:00" } } } |