Invoice Service Data API

get specific entry

GET /api/rest/admin/invoice-service-data/:id

Request

Headers

Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjEzOSwiYXVkIjpbImFkbWluIl0sImV4cCI6MTc5MjYxOTgwOH0.3VvTUX2P6A-OrMG8-xJQL7fO0Kp-_e4OPZXR-_PIn3I
Host: example.org
Cookie: 

Route

GET /api/rest/admin/invoice-service-data/3

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
vary: Accept
etag: W/"03c2445fde38748e45e151713c18448b"
cache-control: max-age=0, private, must-revalidate
x-request-id: 5acc2465-819a-4d72-b7a8-2b72d26bcd1f
x-runtime: 0.010739
content-length: 586

Status

200 OK

Body

{
  "data": {
    "id": "3",
    "type": "invoice-service-data",
    "links": {
      "self": "http://example.org/api/rest/admin/invoice-service-data/3"
    },
    "attributes": {
      "amount": "236.0",
      "transactions-count": 59,
      "spent": true
    },
    "relationships": {
      "invoice": {
        "links": {
          "self": "http://example.org/api/rest/admin/invoice-service-data/3/relationships/invoice",
          "related": "http://example.org/api/rest/admin/invoice-service-data/3/invoice"
        }
      },
      "service": {
        "links": {
          "self": "http://example.org/api/rest/admin/invoice-service-data/3/relationships/service",
          "related": "http://example.org/api/rest/admin/invoice-service-data/3/service"
        }
      }
    }
  }
}