---
title: "DiscountShareableUrl"
description: "A shareable URL for a discount code."
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-shareable-url'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-shareable-url.md'
---
# DiscountShareableUrl

A shareable URL for a discount code.

- **API Version:** v20270301
- **API Type:** Admin
- **API Protocol:** GraphQL
- **Operation Type:** Object

## Type Signature

`DiscountShareableUrl`

## Fields

* `targetType`

  [DiscountShareableUrlTargetType](https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/enums/discount-shareable-url-target-type.md)

  The type of page where a shareable discount URL lands.

* `title`

  [String](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/string.md)

  The title of the page that's associated with the URL.
  
  

* `url`

  [URI](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/uri.md)

  The URL for the discount code.
  
  

## Schema Definition

```graphql
type DiscountShareableUrl { 
	targetType: DiscountShareableUrlTargetType
	title: String
	url: URI 
}
```

## Field from

* [DiscountCodeBasic](https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-code-basic.md).shareableUrls

  URLs that can be used to share the discount.
  

* [DiscountCodeFreeShipping](https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-code-free-shipping.md).shareableUrls

  URLs that can be used to share the discount.

* [DiscountCodeBxgy](https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-code-bxgy.md).shareableUrls

  URLs that can be used to share the discount.

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes).

