Invoices API

get specific entry

GET /api/rest/customer/v1/invoices/:id

Request

Headers

Version: HTTP/1.0
Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjI1LCJhdWQiOlsiY3VzdG9tZXItdjEiXSwiZXhwIjoxNzMxNTc4MjI4fQ.EUXk7YOHM3gQ94GxBedqe2KU32AFvL4vr5LwB-LEZ50
Host: example.org
Cookie: 

Route

GET /api/rest/customer/v1/invoices/abb41d30-a26e-11ef-be6d-0242ac120003

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/"253f5160b8ebcfba91cd3a9a98178ce6"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 7f672b82-b722-422f-9c79-d17835de60d8
X-Runtime: 0.009005
Content-Length: 1092

Status

200 OK

Body

{
  "data": {
    "id": "abb41d30-a26e-11ef-be6d-0242ac120003",
    "type": "invoices",
    "links": {
      "self": "http://example.org/api/rest/customer/v1/invoices/abb41d30-a26e-11ef-be6d-0242ac120003"
    },
    "attributes": {
      "reference": "23",
      "start-date": "2024-11-07T09:56:08.253Z",
      "end-date": "2024-11-13T09:56:08.253Z",
      "has-pdf": false,
      "amount-spent": "0.0",
      "originated-amount-spent": "0.0",
      "originated-calls-count": 0,
      "originated-successful-calls-count": 0,
      "originated-calls-duration": 0,
      "originated-billing-duration": 0,
      "originated-first-call-at": null,
      "originated-last-call-at": null,
      "terminated-amount-spent": "0.0",
      "terminated-calls-count": 0,
      "terminated-successful-calls-count": 0,
      "terminated-calls-duration": 0,
      "terminated-billing-duration": 0,
      "terminated-first-call-at": null,
      "terminated-last-call-at": null,
      "services-amount-spent": "0.0",
      "service-transactions-count": 0
    },
    "relationships": {
      "account": {
        "links": {
          "self": "http://example.org/api/rest/customer/v1/invoices/abb41d30-a26e-11ef-be6d-0242ac120003/relationships/account",
          "related": "http://example.org/api/rest/customer/v1/invoices/abb41d30-a26e-11ef-be6d-0242ac120003/account"
        }
      }
    }
  }
}