Returns a Digital Link
JavaScript
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" } } } } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Record found
Show child attributes
Was this page helpful?