Shorten a URL
The URL to shorten.
Required when type
is set to Custom
.
ID of the organization to generate the URL for
Unique identifier used to generate campaign URLs for coupons or offers.
Required when type
is set to Coupon
or Offer
. This ID is used to track and attribute conversions to specific campaigns. To get this ID, you can use the GET /affiliate/campaigns
endpoint.
Specifies the type of URL to be generated.
Available options:
BrandPage
: Generates a URL for the brand's main website.
Coupon
: Generates a URL for a coupon campaign. Requires featureId
.
Offer
: Generates a URL for a promotional offer. Requires featureId
.
Custom
: Generates a URL for a custom URL. Requires url
.
Coupon
, BrandPage
, Offer
, Custom
This field is used to pass additional identifier to the URL. This identifier will be used to track the URL for your custom purposes.
Shorten URL response
The response is of type object
.