Share

The Sharing module simplifies the creation and sharing of QR codes and short links. Use it to generate QR codes for apps, products, collections, and URLs. Create short links for long URLs and retrieve them, along with the original URLs, using their respective codes.

QR Code & Short Link management

It facilitates QR code generation for applications, products, collections, URLs, and also enables the management of short links, including their creation and retrieval of original links using their hashes.

Operations
POST
/service/application/share/v1.0/qr
# App QR code.
POST
/service/application/share/v1.0/qr/products/{slug}
# Product QR code.
POST
/service/application/share/v1.0/qr/collection/{slug}
# Collection QR code.
POST
/service/application/share/v1.0/qr/url
# URL to QR code.
POST
/service/application/share/v1.0/links/short-link
# Shorten URL.
GET
/service/application/share/v1.0/links/short-link/{hash}
# Fetch short link.
GET
/service/application/share/v1.0/links/short-link/{hash}/original
# Original URL.
POST

App QR code.

Generates a QR code for the application for easy sharing.
Parameters
No Parameters
Response
200
Success. Check the example shown below or refer `QRCodeResp` for more details.
QRCodeResp
link
string
Original url that was used to encoded url into a QR code.
svg
string
String representation of the QR Code in SVG format.
Examples
Parameters
Parameters are not required.
POST
/service/application/share/v1.0/qr
Loading...
Response
Loading...
POST

Product QR code.

Creates a QR code for a specific product identified by its slug.
Parameters
slug
string
Required
A short, human-readable, URL-friendly identifier of a product. You can get slug value from the endpoint.
Response
200
Success. Check the example shown below or refer `QRCodeResp` for more details.
QRCodeResp
link
string
Original url that was used to encoded url into a QR code.
svg
string
String representation of the QR Code in SVG format.
Examples
Parameters
slug:
"1SDQa"
POST
/service/application/share/v1.0/qr/products/{slug}
Loading...
Response
Loading...
POST

Collection QR code.

Generates a QR code for a specific product collection using its slug.
Parameters
slug
string
Required
A short, human-readable, URL-friendly identifier of a collection. You can get slug value from the endpoint.
Response
200
Success. Check the example shown below or refer `QRCodeResp` for more details.
QRCodeResp
link
string
Original url that was used to encoded url into a QR code.
svg
string
String representation of the QR Code in SVG format.
Examples
Parameters
slug:
"1SDQa"
POST
/service/application/share/v1.0/qr/collection/{slug}
Loading...
Response
Loading...
POST

URL to QR code.

Converts a given URL into a scannable QR code.
Parameters
url
string
Required
A link or a web address of a given URL transformed into a scannable QR code.
Response
200
400
Success. Check the example shown below or refer `QRCodeResp` for more details.
QRCodeResp
link
string
Original url that was used to encoded url into a QR code.
svg
string
String representation of the QR Code in SVG format.
Examples
Parameters
url:
"https://fynd.com"
POST
/service/application/share/v1.0/qr/url
Loading...
Response
Loading...
GET

Fetch short link.

Retrieves a previously created short link using its hash identifier.
Parameters
hash
string
Required
A string value used for converting long URL to short URL and vice-versa.
Response
200
404
Success. Check the example shown below or refer `ShortLinkRes` for more details.
ShortLinkRes
title
string
Name reference of the shortlink.
url
object (UrlInfo)
UrlInfo
original
string
hash
string
A string value used for converting long URL to short URL and vice-versa.
short_url
string
additionalProperties
Allows you to attach properties in addition to the ones mentioned above. Any additional properties are allowed.
created_by
string
Reference of the creator of the shortlink.
app_redirect
boolean
Application redirection flag of shortlink.
fallback
string
Fallback attributes of shortlink.
Enum
active
boolean
Status of the shortlink.
_id
string
Key used to uniquely identify document that contains shortlink details.
enable_tracking
boolean
Flag to enable tracking of a short link.
expire_at
string
| date-time
Expiry of the shortlink.
application
string
The ID of the sales channel associated with the shortlink.
user_id
string
Identifier which can uniquely identify the user.
created_at
string
| date-time
The timestamp indicating when a record was initially created.
meta
object
Additional attributes of shortlink.
updated_at
string
| date-time
The timestamp indicating when a record was last modified or updated.
personalized
boolean
To create personalized short links.
campaign
object (CampaignShortLink)
CampaignShortLink
source
string
Source of communication of campaign.
medium
string
Channel of communication of campaign.
redirects
object (Redirects)
Redirects
ios
object (RedirectDevice)
RedirectDevice
link
string
Fallback URL to redirect users to the app store or a web page if the app is not installed when they click the link.
type
string
Type of fallback used to redirect users to the app store or a web page if the app is not installed when they click the link.
Enum
android
object (RedirectDevice)
RedirectDevice
link
string
Fallback URL to redirect users to the app store or a web page if the app is not installed when they click the link.
type
string
Type of fallback used to redirect users to the app store or a web page if the app is not installed when they click the link.
Enum
web
object (WebRedirect)
WebRedirect
link
string
Fallback URL to redirect users to the app store or a web page if the app is not installed when they click the link.
type
string
Type of fallback used to redirect users to the app store or a web page if the app is not installed when they click the link.
Enum
force_web
boolean
Flag for overriding redirection traffic to the web if the app is not installed when the link is clicked.
attribution
object (Attribution)
Attribution
campaign_cookie_expiry
string
Expiration of campaign.
social_media_tags
object (SocialMediaTags)
SocialMediaTags
title
string
Title to be displayed when link is shared on social media platforms.
description
string
Description to be displayed when link is shared on social media platforms.
image
string
Preview to be displayed when link is shared on social media platforms.
count
integer
Click count of shortlink.
additionalProperties
Allows you to attach properties in addition to the ones mentioned above. Any additional properties are allowed.
Examples
Parameters
hash:
"1SDQa"
GET
/service/application/share/v1.0/links/short-link/{hash}
Loading...
Response
Loading...
GET

Original URL.

Retrieve the original link from a short-link by using a hash value.
Parameters
hash
string
Required
A string value used for converting long URL to short URL and vice-versa.
Response
200
404
Success. Check the example shown below or refer `ShortLinkRes` for more details.
ShortLinkRes
title
string
Name reference of the shortlink.
url
object (UrlInfo)
UrlInfo
original
string
hash
string
A string value used for converting long URL to short URL and vice-versa.
short_url
string
additionalProperties
Allows you to attach properties in addition to the ones mentioned above. Any additional properties are allowed.
created_by
string
Reference of the creator of the shortlink.
app_redirect
boolean
Application redirection flag of shortlink.
fallback
string
Fallback attributes of shortlink.
Enum
active
boolean
Status of the shortlink.
_id
string
Key used to uniquely identify document that contains shortlink details.
enable_tracking
boolean
Flag to enable tracking of a short link.
expire_at
string
| date-time
Expiry of the shortlink.
application
string
The ID of the sales channel associated with the shortlink.
user_id
string
Identifier which can uniquely identify the user.
created_at
string
| date-time
The timestamp indicating when a record was initially created.
meta
object
Additional attributes of shortlink.
updated_at
string
| date-time
The timestamp indicating when a record was last modified or updated.
personalized
boolean
To create personalized short links.
campaign
object (CampaignShortLink)
CampaignShortLink
source
string
Source of communication of campaign.
medium
string
Channel of communication of campaign.
redirects
object (Redirects)
Redirects
ios
object (RedirectDevice)
RedirectDevice
link
string
Fallback URL to redirect users to the app store or a web page if the app is not installed when they click the link.
type
string
Type of fallback used to redirect users to the app store or a web page if the app is not installed when they click the link.
Enum
android
object (RedirectDevice)
RedirectDevice
link
string
Fallback URL to redirect users to the app store or a web page if the app is not installed when they click the link.
type
string
Type of fallback used to redirect users to the app store or a web page if the app is not installed when they click the link.
Enum
web
object (WebRedirect)
WebRedirect
link
string
Fallback URL to redirect users to the app store or a web page if the app is not installed when they click the link.
type
string
Type of fallback used to redirect users to the app store or a web page if the app is not installed when they click the link.
Enum
force_web
boolean
Flag for overriding redirection traffic to the web if the app is not installed when the link is clicked.
attribution
object (Attribution)
Attribution
campaign_cookie_expiry
string
Expiration of campaign.
social_media_tags
object (SocialMediaTags)
SocialMediaTags
title
string
Title to be displayed when link is shared on social media platforms.
description
string
Description to be displayed when link is shared on social media platforms.
image
string
Preview to be displayed when link is shared on social media platforms.
count
integer
Click count of shortlink.
additionalProperties
Allows you to attach properties in addition to the ones mentioned above. Any additional properties are allowed.
Examples
Parameters
hash:
"1SDQa"
GET
/service/application/share/v1.0/links/short-link/{hash}/original
Loading...
Response
Loading...