Update a promotion code

POST {{baseUrl}}/v1/promotion_codes/:promotion_code

Updates the specified promotion code by setting the values of the parameters passed. Most fields are, by design, not editable.

Request Body

[{"name"=>"active", "value"=>"<boolean>", "datatype"=>"string"}, {"name"=>"expand[0]", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"expand[1]", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"restrictions[currency_options]", "value"=>"<object>", "datatype"=>"string"}]

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring