Invoices API

get specific entry

GET /api/rest/admin/billing/invoices/:id

Request

Headers

Version: HTTP/1.0
Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MzE1Nzg3NDksInN1YiI6NDJ9.orGkQYwvoR2bD8OtfxoLx5Ica3RoAMkwILinCMw-aHU
Host: example.org
Cookie: 

Route

GET /api/rest/admin/billing/invoices/18

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/"08d9a3889d1dc2a50cac6033ea6b2b29"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 3b8f3b3b-66ce-418a-8e7d-81a600fae77b
X-Runtime: 0.016904
Content-Length: 2268

Status

200 OK

Body

{
  "data": {
    "id": "18",
    "type": "invoices",
    "links": {
      "self": "http://example.org/api/rest/admin/billing/invoices/18"
    },
    "attributes": {
      "reference": "18",
      "state": "Approved",
      "invoice-type": "Auto Full",
      "start-date": "2024-11-07T09:55:49.547Z",
      "end-date": "2024-11-13T09:55:49.547Z",
      "pdf-path": null,
      "odt-path": null,
      "amount-spent": "0.0",
      "amount-earned": "0.0",
      "originated-amount-spent": "0.0",
      "originated-amount-earned": "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-amount-earned": "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",
      "services-amount-earned": "0.0",
      "service-transactions-count": 0
    },
    "relationships": {
      "account": {
        "links": {
          "self": "http://example.org/api/rest/admin/billing/invoices/18/relationships/account",
          "related": "http://example.org/api/rest/admin/billing/invoices/18/account"
        },
        "data": {
          "type": "accounts",
          "id": "45"
        }
      },
      "originated-destinations": {
        "links": {
          "self": "http://example.org/api/rest/admin/billing/invoices/18/relationships/originated-destinations",
          "related": "http://example.org/api/rest/admin/billing/invoices/18/originated-destinations"
        }
      },
      "originated-networks": {
        "links": {
          "self": "http://example.org/api/rest/admin/billing/invoices/18/relationships/originated-networks",
          "related": "http://example.org/api/rest/admin/billing/invoices/18/originated-networks"
        }
      },
      "terminated-destinations": {
        "links": {
          "self": "http://example.org/api/rest/admin/billing/invoices/18/relationships/terminated-destinations",
          "related": "http://example.org/api/rest/admin/billing/invoices/18/terminated-destinations"
        }
      },
      "terminated-networks": {
        "links": {
          "self": "http://example.org/api/rest/admin/billing/invoices/18/relationships/terminated-networks",
          "related": "http://example.org/api/rest/admin/billing/invoices/18/terminated-networks"
        }
      },
      "service-data": {
        "links": {
          "self": "http://example.org/api/rest/admin/billing/invoices/18/relationships/service-data",
          "related": "http://example.org/api/rest/admin/billing/invoices/18/service-data"
        }
      }
    }
  }
}