Skip to content

getDiscount(__queryItems_)

mauryaratan edited this page Feb 5, 2023 · 1 revision

getDiscount(_:queryItems:)

Get a single discount by ID.

public func getDiscount(_ discountId: Discount.ID, queryItems: [URLQueryItem] = [])

Parameters

  • discountId: The ID of the discount you'd like to retrieve.
  • queryItems: An array of URLQueryItem, passed as query parameters.

Returns

A response object containing the requested Discount.

Types
Global Functions
Clone this wiki locally