Przejdź do głównej zawartości

digitalDownloadLinkCreate

Issues a single-use link for downloading purchased digital content. The link works once and then expires — do not cache it.

digitalDownloadLinkCreate(
assetId: ID!
orderAccessToken: String
orderLineItemId: ID!
): DigitalDownloadLinkPayload!

Arguments​

digitalDownloadLinkCreate.assetId ● ID! non-null scalar​

A file taken from the OrderLineItem.digitalDownloads list.

digitalDownloadLinkCreate.orderAccessToken ● String scalar​

Order access token (Order.accessToken) — required for guest purchases. A signed-in customer can omit it: their session is enough.

digitalDownloadLinkCreate.orderLineItemId ● ID! non-null scalar​

The order line item the file was bought with.

Type​

DigitalDownloadLinkPayload object​

Result of issuing a download link for digital content.