Update an existing coupon
curl --request PUT \
--url https://api.example.com/v1/coupons{
"data": {
"name": "PARTNERO25_UPDATED",
"uuid_code": "coupon_123",
"active": true,
"coupon_discount_type": "percent",
"coupon_discount_amount": 25,
"coupon_duration_type": "months",
"coupon_duration_value": 11,
"redemption_specific_date_status": false,
"redemption_specific_date_value": null,
"redemption_times_status": true,
"redemption_times_value": 24,
"metadata": [],
"created_at": "2025-05-07T17:43:26.000000Z",
"updated_at": "2025-05-07T17:53:32.000000Z",
"deleted_at": null
},
"status": 1,
"message": "Coupon updated in the app successfully.",
"synchronization_enabled": false,
"synchronization_successful": false,
"synchronization_message": ""
}
PUT https://api.partnero.com/v1/coupons
| Parameter | Type | Required | Description |
|---|---|---|---|
uuid_code | string | Yes | Coupon’s unique identifier |
name | string | No | Updated customer-facing name |
metadata | object | No | Custom key-value pairs |
curl --location --request PUT 'https://api.partnero.com/v1/coupons' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"uuid_code": "coupon_123",
"name": "PARTNERO25_UPDATED"
}'
{
"data": {
"name": "PARTNERO25_UPDATED",
"uuid_code": "coupon_123",
"active": true,
"coupon_discount_type": "percent",
"coupon_discount_amount": 25,
"coupon_duration_type": "months",
"coupon_duration_value": 11,
"redemption_specific_date_status": false,
"redemption_specific_date_value": null,
"redemption_times_status": true,
"redemption_times_value": 24,
"metadata": [],
"created_at": "2025-05-07T17:43:26.000000Z",
"updated_at": "2025-05-07T17:53:32.000000Z",
"deleted_at": null
},
"status": 1,
"message": "Coupon updated in the app successfully.",
"synchronization_enabled": false,
"synchronization_successful": false,
"synchronization_message": ""
}
curl --request PUT \
--url https://api.example.com/v1/coupons{
"data": {
"name": "PARTNERO25_UPDATED",
"uuid_code": "coupon_123",
"active": true,
"coupon_discount_type": "percent",
"coupon_discount_amount": 25,
"coupon_duration_type": "months",
"coupon_duration_value": 11,
"redemption_specific_date_status": false,
"redemption_specific_date_value": null,
"redemption_times_status": true,
"redemption_times_value": 24,
"metadata": [],
"created_at": "2025-05-07T17:43:26.000000Z",
"updated_at": "2025-05-07T17:53:32.000000Z",
"deleted_at": null
},
"status": 1,
"message": "Coupon updated in the app successfully.",
"synchronization_enabled": false,
"synchronization_successful": false,
"synchronization_message": ""
}