Api >

Service Portal REST API

GET retrieves DID's destination link
Given I am authenticated as customer K0002
And there is a queue service with id 100 and name display name and service number 345 and extension number 555
And there is a Trunk with:
  • baseNumber +48 (22) 123456
  • numberblockStart: 0
  • numberblockEnd: 1
And there is a DID with extension 0 assigned to this Trunk
which has:
  • Group with extension number 555 set as destination
When I send /api/customers/K0002/dids/0048.22.123456-0/destination
Then I should receive HTTP/1.1 200 OK
with following body:
{
  "href": "/api/customers/K0002/dids/0048.22.123456-0/destination",
  "links": [{
    "rel": "destination",
    "href": "/api/customers/K0002/targets/queue-services/345"
  }],
  "data": null
}
GET retrieves no destination link if destination is not set for given DID
Given I am authenticated as customer K0002
And there is a queue service with id 100 and name display name and service number 345 and extension number 555
And there is a Trunk with:
  • baseNumber +48 (22) 123456
  • numberblockStart: 0
  • numberblockEnd: 1
And there is a DID with extension 0 assigned to this Trunk
which has:
  • No destination set
When I send /api/customers/K0002/dids/0048.22.123456-0/destination
Then I should receive HTTP/1.1 200 OK
with following body:
{
  "href": "/api/customers/K0002/dids/0048.22.123456-0/destination",
  "links": [{
    "rel": "destination",
    "href": "/api/customers/K0002/targets/NO_ACTION"
  }],
  "data": null
}