Skip to main content
Version: 202506

Update discount code

PUT 

/openapi/2025-06/price_rules/:price_rule_id/discount_codes/:discount_code_id

Updates an existing discount code under the specified price rule.

Request

Path Parameters

    price_rule_id stringrequired

    ID of the price rule associated with the discount code

    discount_code_id stringrequired

    Discount code ID

Bodyrequired

    discount_code objectrequired

    Discount code

    codestring

    Code

Responses

OK

Schema
    codestring

    error code

    messagestring

    error message

    data object
    discount_code object

    Discount code

    idstring

    Discount ID

    price_rule_idstring

    Price rule ID

    codestring

    Discount code

    created_atstring

    Creation timestamp, in ISO-8601 format

    updated_atstring

    Last update timestamp, in ISO-8601 format

    use_with_otherint32

    Whether discount can be used with others

    usage_countint32

    Number of times used