patch
https://restapi.ordergroove.com/offer_profiles//update_coupon/
Updates the associated initial or recurring coupon and discounts.
Response Body Definitions
| Name | Type | Description | Example |
|---|---|---|---|
| public_id | string | Unique Offer Profile ID | "e3e9ac44a24f15e485b0bc764e107cf3" |
| recurring_coupon | object | Recurring Coupon object | {} or null |
| initial_coupon | object | Initial Coupon object | {} or null |
Response Body Definitions (Recurring Coupon Object)
| Name | Type | Description | Example |
|---|---|---|---|
| public_id | string | Unique Recurring Coupon ID | "ff48e9fdc8eb4d79abd7c8c573523d25" |
| name | string | Recurring Coupon name | "Demo Store Incentives" |
| code | string | Recurring Coupon code | "demo_store" |
| discounts | object | Discounts object | {} or null |
Response Body Definitions (Initial Coupon Object)
| Name | Type | Description | Example |
|---|---|---|---|
| public_id | string | Unique Recurring Coupon ID | "ff48e9fdc8eb4d79abd7c8c573523d25" |
| name | string | Recurring Coupon name | "Demo Store Incentives" |
| code | string | Recurring Coupon code | "demo_store" |
| discounts | object | Discounts object | {} or null |
Response Body Definitions (Discounts Object)
| Name | Type | Description | Example |
|---|---|---|---|
| public_id | string | Unique Discount ID | "c67dec11aedb4885aa9a58c3f89de746" |
| name | integer | Discount name | "Free shipping on orders over $50" |
| object | integer | 1 | |
| type | string | 2 | |
| value | string | Discount value | "100" |
| threshold_field | integer | 3 | |
| threshold_value | string | "50" |
