Overview
Publishers have the option to utilize dynamic links on their websites that will redirect customers to purchase specific content on the VitalSource Store. This enables them to directly use the VitalSource technology and digital content delivery methods to fulfill their customers purchase requests.
There are two dynamic link options available:
- Redirecting customers to the Product Detail Page (PDP) of a specific product on the VitalSource Store using the VBID
- Adding the product directly to the VitalSource Store cart using the product SKU and redirecting customers to the My Cart page
Details
Below we will review the details for obtaining and generating these dynamic link options.
Obtaining redirect link to the Product Detail Page (PDP) of a specific product on the VitalSource Store using the VBID:
- Using our v4/products API, catalog data of a publisher's distributable content is retrieved. The response of this call will contain the VBID property value and a resource_links array with the store_url property value for each item.
- The store_url value is the dynamic link needed for this option.
...
{
"vbid": "L-999-72151",
"kind": "great book",
"identifiers": {
"print_isbn_canonical": null,
"eisbn_canonical": null
},
"title": "Mathematics of Motion",
"resource_links": {
"metadata": "https://api.vitalsource.com/v4/products/L99972151",
"cover_image": "https://covers.vitalbook.com/vbid/L-999-72151/width/480",
"table_of_contents": "https://api.vitalsource.com/v4/products/L99972151/toc",
"store_url": "https://www.vitalsource.com/textbooks?term=L99972151"
},
...
Generating dynamic link for adding the product directly to the VitalSource Store cart using the product SKU and redirecting customers to the My Cart page:
- Using our v4/products API, catalog data of a publisher's distributable content is retrieved. The response of this call will contain the VBID property value and a variants array with the SKU property value for the different license durations for each item. (Note: SKU and VBID are the same value for perpetual durations)
- To create the dynamic link, concatenate this URL: "https://www.vitalsource.com/cart/add_item/" plus the SKU: L-999-72151
...
{
"vbid": "L-999-72151",
"kind": "great book",
"identifiers": {
"print_isbn_canonical": null,
"eisbn_canonical": null
},
"title": "Mathematics of Motion",
variants": [ {
"duration": "perpetual",
"online_duration": "1825",
"sku": "L-999-72151",
"type": "Single",
"distributable": true
]
...
Comments
Article is closed for comments.