Instance
Billable Item
Booking
Calendar Subscription
Invoice
Quote
Invoice Template
Project
Time Activity
Invoice Template
Create Invoice Template
WRITE
access to the ADMIN
module is required to access this endpointPOST
/
v2
/
invoice-template
Copy
curl --request POST \
--url https://api.sonderplan.com/v2/invoice-template \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Long Form Jobs",
"type_id": 1,
"default": false,
"title": "Invoice",
"logo": [
{
"name": "Avid_Icon",
"size": 174285,
"alias": "7e73ab25155974c230d09494548201b9f5056ef",
"extension": "png",
"mime_type": "image/png"
}
],
"top_left_container": "<string>",
"top_center_container": "<string>",
"top_right_container": "<string>",
"middle_left_container": "<string>",
"middle_center_container": "<string>",
"middle_right_container": "<string>",
"bottom_left_container": "<string>",
"bottom_center_container": "<string>",
"bottom_right_container": "<string>",
"email_subject_template": "<string>",
"email_body_template": "<string>",
"options": {
"items_column_visibility": {
"item": true,
"description": true,
"quantity": true,
"price": true,
"discount": true,
"tax": true,
"total": true
},
"totals_visibility": {
"sub_total": true,
"discount_total": true,
"net_total": true,
"tax_total": true,
"total": true
}
}
}'
Copy
{
"success": {
"id": 2384
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
200
application/json
Successful Operation
The response is of type object
.
Copy
curl --request POST \
--url https://api.sonderplan.com/v2/invoice-template \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Long Form Jobs",
"type_id": 1,
"default": false,
"title": "Invoice",
"logo": [
{
"name": "Avid_Icon",
"size": 174285,
"alias": "7e73ab25155974c230d09494548201b9f5056ef",
"extension": "png",
"mime_type": "image/png"
}
],
"top_left_container": "<string>",
"top_center_container": "<string>",
"top_right_container": "<string>",
"middle_left_container": "<string>",
"middle_center_container": "<string>",
"middle_right_container": "<string>",
"bottom_left_container": "<string>",
"bottom_center_container": "<string>",
"bottom_right_container": "<string>",
"email_subject_template": "<string>",
"email_body_template": "<string>",
"options": {
"items_column_visibility": {
"item": true,
"description": true,
"quantity": true,
"price": true,
"discount": true,
"tax": true,
"total": true
},
"totals_visibility": {
"sub_total": true,
"discount_total": true,
"net_total": true,
"tax_total": true,
"total": true
}
}
}'
Copy
{
"success": {
"id": 2384
}
}
Assistant
Responses are generated using AI and may contain mistakes.