Invoice template API

create new entry

POST /api/rest/admin/billing/invoice-template

Parameters

Name Description
data[type] Resource type (invoice-templates)
data[attributes][name] Name
data[attributes][filename] Filename

Request

Headers

Version: HTTP/1.0
Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MzE1Nzg3NDgsInN1YiI6MzR9.t17U_5Mp0SL6lrbXvE1Rbm0gHT_7K4U-buS6CrbjBto
Host: example.org
Cookie: 

Route

POST /api/rest/admin/billing/invoice-template

Body

{"data":{"type":"invoice-templates","attributes":{"name":"Daily","filename":"filename.odt"}}}

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 0
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/vnd.api+json
Vary: Accept
ETag: W/"8b17657bff8de8ec4715d83e72266e0a"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 125de9f5-ffae-499c-954d-7c137ce3d66b
X-Runtime: 0.008722
Content-Length: 183

Status

201 Created

Body

{
  "data": {
    "id": "6",
    "type": "invoice-templates",
    "links": {
      "self": "http://example.org/api/rest/admin/billing/invoice-templates/6"
    },
    "attributes": {
      "name": "Daily",
      "filename": "filename.odt"
    }
  }
}