> ## Documentation Index
> Fetch the complete documentation index at: https://docs.partnero.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update coupon

> Update an existing coupon

## Endpoint

```
PUT https://api.partnero.com/v1/coupons
```

## Request Body

| 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       |

<Note>
  Promotion codes cannot be updated through this endpoint. Use the [promotion code update](/api-reference/promotion-codes/update) endpoint instead.
</Note>

## Request

```bash cURL theme={null}
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"
  }'
```

## Response

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "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": ""
  }
  ```
</ResponseExample>
