Skip to main content
GET
/
api
/
v2
/
platform
/
digital_links
/
{id}
Return a Digital Link
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('http://{defaultHost}/api/v2/platform/digital_links/{id}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "data": {
    "id": "6",
    "type": "digital_link",
    "attributes": {
      "token": "vxRU3WSqXJ2J2WbjaC2kLHpg",
      "access_counter": 0
    },
    "relationships": {
      "digital": {
        "data": {
          "id": "6",
          "type": "digital"
        }
      },
      "line_item": {
        "data": {
          "id": "14",
          "type": "line_item"
        }
      }
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Response

Record found

data
object
required