Rename, pause or change the rule. A rule change creates a new version; earlier uses keep theirs

patch/api/v1/coupons/{id}

Request

  • Base URL: http://127.0.0.1:4310
  • URL: http://127.0.0.1:4310/api/v1/coupons/{id}
  • Auth: one of:
    • HTTP bearer
    • API key in cookie sfb_session

Path parameters

idstring required

Request body

namestring
activeboolean
expected_versioninteger
discount_type'percent' | 'fixed'
percentinteger
amount_minorinteger
scope'all' | 'services' | 'categories' | 'products'

Gift cards are excluded unless include_gift_cards is true

service_idsstring[]
categoriesstring[]
product_idsstring[]
include_gift_cardsboolean
min_spend_minorinteger
starts_atstring date-time
ends_atstring date-time
total_capinteger
per_client_capinteger
first_visit_onlyboolean
stackableboolean

Response

OK

object required

Changes

No recorded changes to this operation across all 4 revisions of this API.