Get invoice line
GET https://api.ecurring.com/invoice-lines/{id}
Retrieve a single invoice line by its identifier.
Parameters
Replace {id}
in the URL with the identifier of the invoice line.
Response
HTTP/1.1 200 OK
Content-Type: application/vnd.api+json
Data attributes
description
string |
The description of the invoice line. This could be the name of your product. |
amount_excl
double |
The amount (per unit) of the product, in euro with tax_amount not included.
|
amount_incl
double |
The amount (per unit) of the product, in euro with tax_amount included.
|
tax_rate
double |
The tax rate (percentage) that is applied to the amount_excl .
|
tax_amount
double |
The tax amount (per unit) of the product, in euro. |
tax_included
boolean |
Indicates whether or not the tax_rate was already applied to the given amount when the invoice line was created.
|
quantity
integer |
The quantity of the product. The total amount will be calculated by multiplying the quantity with the amount .
|
created_at
datetime |
The date on which the invoice line was created. |
updated_at
datetime |
The date on which the invoice line was last updated. |
Example
Response
{
"links": {
"self": "https://api.ecurring.com/invoice-lines/1562050264"
},
"data": {
"type": "invoice-line",
"id": "1562050264",
"links": {
"self": "https://api.ecurring.com/invoice-lines/1562050264"
},
"attributes": {
"description": "lunchbox",
"amount_excl": "10.00",
"amount_incl": "12.10",
"tax_rate": "21.00",
"tax_amount": "2.10",
"tax_included": false,
"quantity": 2,
"created_at": "2019-10-04T14:44:47+02:00",
"updated_at": "2019-10-04T14:44:47+02:00"
}
}
}