checkout_write
Arguments
The rule and the fields to replace.
Returns
A store-level checkout discount rule: when its conditions match the cart, its discount applies to the targeted delivery options. The first matching active rule wins.
Change a checkout discount rule. Each field you send replaces that whole field: send all of conditions to change one condition. When discount rules are on, the store’s live checkout discount is updated right away. An id from another account, or one that does not exist, is null. An invalid rule fails with INVALID_CHECKOUT_DISCOUNT_RULE (400).
checkout_write