Campaign Discount Codes

Update a discount code

Changed on
put/v1/campaigns/{campaign}/discount-codes/{discountCode}

Request

  • Base URL
    https://api.givebutter.com
  • URL
    https://api.givebutter.com/v1/campaigns/{campaign}/discount-codes/{discountCode}
  • Auth
    HTTP bearer

Path parameters

campaigninteger required

The campaign ID

discountCodeinteger required

The discount code ID

Request body

itemsstring[] nullable
include_futureboolean
amountnumber required
type'percentage' | 'fixed'
activeboolean
codestring
usesnumber nullable
starts_atstring date-time nullable
expires_atstring date-time nullable

Response

CampaignDiscountCodeResource

idstring required
campaign_idstring required
itemsstring
codestring required
typestring required
amountnumber required
usedstring required
usesstring required
activestring required
all_itemsstring
include_futurestring
total_discountstring required
starts_atstring required
expires_atstring required
created_atstring required
updated_atstring required

Changes

    • info

      added the new optional request property

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status