- Print
- DarkLight
Update metadata for a promotion
Update metadata for a promotion.
The metadata to be updated in a promotion.
Additional information about the resource.
Updated promotion
A unique ID representing the promotion.
The type of the resource
The date and time the promotion was created.
The date and time the promotion was last updated.
Whether the promotion is enabled to consume. If disabled, new customers will not be able to apply the promotion code, but existing customers with it already applied will be unaffected.
The name of the promotion.
A detailed description of the promotion.
The unique code to redeem the promotion.
The constraint to determine whether a promotion can be redeemed, including the dates to run for, usage counts, and whether it's only for new customers.
The date and time the promotion starts (inclusive). A promotion must be within these dates for a customer to be able to apply its code.
The date and time the promotion ends (inclusive). A promotion must be within these dates for a customer to be able to apply its code.
The maximum number of times the promotion can be redeemed (across all customers).
The number of times the promotion has been redeemed (across all customers).
Whether the promotion is only for new subscriptions.
The subscription type IDs the promotion is valid for.
The rules of what orders should receive the promotion effect (such as a monetary discount).
The effect of the promotion, detailing the percentage or monetary amount to discount.
The type of the effect.
The amount value of the effect.
The conditions to determine if an order should receive the specified effect (such as a percentage discount).
The type of the condition. ORDER_NUMBER_AFTER_APPLIED: The order number as counted from the day the promotion is applied. SUBSCRIPTION_CONTRACT_ORDER_NUMBER: the order number as counted from the start of the subscription contract.
The value of the condition. For ORDER_NUMBER_AFTER_APPLIED, this is the order number counting from the day the promotion is applied. For SUBSCRIPTION_CONTRACT_ORDER_NUMBER, this is the order number of the subscription contract.
The metadata of the promotion.
Additional information about the resource.
Unauthorized
Details of problems encountered processing the request.
Details of a problem encountered processing the request.
The HTTP status code applicable to the problem
A short-human readable description of the problem, this should not change from occurrence to occurrence.
A human-readable explanation specific to this occurrence of the problem.
Forbidden
Details of problems encountered processing the request.
Details of a problem encountered processing the request.
The HTTP status code applicable to the problem
A short-human readable description of the problem, this should not change from occurrence to occurrence.
A human-readable explanation specific to this occurrence of the problem.
Not Found
Details of problems encountered processing the request.
Details of a problem encountered processing the request.
The HTTP status code applicable to the problem
A short-human readable description of the problem, this should not change from occurrence to occurrence.
A human-readable explanation specific to this occurrence of the problem.
Too Many Requests
Details of problems encountered processing the request.
Details of a problem encountered processing the request.
The HTTP status code applicable to the problem
A short-human readable description of the problem, this should not change from occurrence to occurrence.
A human-readable explanation specific to this occurrence of the problem.
Internal Server Error
Details of problems encountered processing the request.
Details of a problem encountered processing the request.
The HTTP status code applicable to the problem
A short-human readable description of the problem, this should not change from occurrence to occurrence.
A human-readable explanation specific to this occurrence of the problem.
Service Unavailable
Details of problems encountered processing the request.
Details of a problem encountered processing the request.
The HTTP status code applicable to the problem
A short-human readable description of the problem, this should not change from occurrence to occurrence.
A human-readable explanation specific to this occurrence of the problem.