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.eyJzdWIiOjEzMCwiYXVkIjpbImFkbWluIl0sImV4cCI6MTc3MjIxMjAwNX0.LAOEk5TfUZB_XZTMV0BuPZ0kEtL1hqHEfSNWTfnD32Q
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/"c7d26ad99ce9784238f173f4e04b7795"
cache-control: max-age=0, private, must-revalidate
x-request-id: 5af02c4b-5a83-4df2-bfd6-a6ef63a3243d
x-runtime: 0.006118
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": "60.0",
      "transactions-count": 30,
      "spent": false
    },
    "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"
        }
      }
    }
  }
}