curl --request POST \
--url http://{defaultHost}/api/v2/platform/digital_links \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"digital_link": {
"access_counter": 0,
"line_item_id": "1",
"digital_id": "1"
}
}'
{
"data": {
"id": "5",
"type": "digital_link",
"attributes": {
"token": "6bPn1uP9HWaYecdMFkFAkcc3",
"access_counter": 0
},
"relationships": {
"digital": {
"data": {
"id": "5",
"type": "digital"
}
},
"line_item": {
"data": {
"id": "13",
"type": "line_item"
}
}
}
}
}
Creates a Digital Link
curl --request POST \
--url http://{defaultHost}/api/v2/platform/digital_links \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"digital_link": {
"access_counter": 0,
"line_item_id": "1",
"digital_id": "1"
}
}'
{
"data": {
"id": "5",
"type": "digital_link",
"attributes": {
"token": "6bPn1uP9HWaYecdMFkFAkcc3",
"access_counter": 0
},
"relationships": {
"digital": {
"data": {
"id": "5",
"type": "digital"
}
},
"line_item": {
"data": {
"id": "13",
"type": "line_item"
}
}
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Record created
The response is of type object
.
Was this page helpful?