ShopRpc

Create a one or more discount codes for a specific campaign.

post/api/grpc-json/v1/shop/discount-codes/create

Request

  • Base URL: https://localhost:5001
  • URL: https://localhost:5001/api/grpc-json/v1/shop/discount-codes/create
  • Auth: none declared

Headers

X-Sportident-Client-Idstring

Client identifier to determine the source of a request.

Request body

campaignIdstring

Required. ID (short name) of the campaign. The campaign ID determines what configuration is used for the discount code (i.e. what type of discount it is, what article numbers are eligible, if the code is single-use or multi-use, for how long the code is valid, etc.).

numberOfDiscountCodesinteger

Required. Number of discount codes to create.

customerReferencestring

Optional. Customer reference (e.g. a customer ID from an external system).

customerFirstNamestring

Optional. Customer first name.

customerLastNamestring

Optional. Customer last name.

customerEmailstring

Optional. Customer email.

Response

Success

Changes

No recorded changes to this operation across all 1 revision of this API.