Create a line item
Create a line item
/v1/hq/line_itemsThe Noona HQ API uses Bearer token for authentication.
Endpoints that return generic information that does not contain sensitive data do not require authentication. Endpoints that require authentication are specifically marked in the documentation.
Authorization: Bearer your-token
In: header
Query Parameters
Request Body
application/json
"8wa9uiah28dawd123""Awesome shampoo"int321Discount percentage
double0 <= value <= 10020The VAT ratio
double0.24The VAT exemption reason when the VAT amount is equal to 0
"M01"True if the item was returned. Quantity and all amounts are positive for returning items.
falseThe voucher object is only returned when the line item is a voucher template.
The voucher object is accepted and returned when the line item is an amount voucher.
ID of the employee that booked the service on the appointment linked to the transaction. This is used to calculate commissions for the employee that booked the service.
"8wa9uiah28dawd123"Response Body
application/json
curl -X POST "https://api.noona.is/v1/hq/line_items" \ -H "Content-Type: application/json" \ -d '{}'{
"id": "8wa9uiah28dawd123",
"type": "event_type",
"transaction": "8wa9uiah28dawd123",
"company": "string",
"title": "Awesome shampoo",
"quantity": 1,
"unit_price": {
"id": "8wa9uiah28dawd123",
"currency": "ISK",
"amount": 1990,
"original_amount": 1990,
"discount": 20
},
"discount": 20,
"vat_amount": 0.24,
"tax_exemption_reason": "M01",
"is_returning": false,
"employee": "string",
"product": "string",
"event_type": "string",
"voucher_template": "string",
"voucher": {
"id": "7awdXwZoedakjad37a",
"voucher": {
"id": "string"
},
"code": "A328DB",
"data": {
"type": "service",
"template_id": "string",
"sessions_total": 6,
"amount": 2500,
"value": 5000,
"event_type_id": "d0a9w8da09w8dindwa"
}
},
"claim": "string",
"event": "string",
"variation_id": "string",
"booked_by": "8wa9uiah28dawd123"
}