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.eyJleHAiOjE3MTAyNTQ3MjUsInN1YiI6Mjh9.Z7i1qhBe0x0l1MFZQIz_BKy6x9sthc4hte5Plb9Cke8
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: 9e690a7b-8898-43ef-9ed2-abf3519fc1fd
X-Runtime: 0.013920
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"
    }
  }
}