Invoice template API

create new entry

POST /api/rest/admin/invoice-template

Parameters

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

Request

Headers

Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjEzOCwiYXVkIjpbImFkbWluIl0sImV4cCI6MTc3NjM2NTczOH0.etm_khA6r3h2n1VFLsuZ56lF4UlJ6hMg3t7JyahLbWE
Host: example.org
Cookie: 

Route

POST /api/rest/admin/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-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/vnd.api+json
location: http://example.org/api/rest/admin/invoice-templates/6
vary: Accept
etag: W/"0a2f24fcbc90e0e04c6cf9ecdc4214d3"
cache-control: max-age=0, private, must-revalidate
x-request-id: 93bcd310-1a6d-487e-aafd-ad32a29fa21e
x-runtime: 0.006551
content-length: 175

Status

201 Created

Body

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