---
updatedAt: 2025-06-16T22:57:47.000Z
agentTools:
  projectIndex: https://developers.paygreen.fr/llms.txt
---

# Update Listener

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Notifications API",
    "description": "This API processes webhook notifications",
    "version": "1.10.8"
  },
  "servers": [
    {
      "url": "https://api.paygreen.fr",
      "description": "Production environment"
    },
    {
      "url": "https://sb-api.paygreen.fr",
      "description": "Sandbox environment"
    }
  ],
  "paths": {
    "/notifications/listeners/lis_{id}": {
      "post": {
        "tags": [
          "Listeners"
        ],
        "summary": "Update Listener",
        "operationId": "post_update_listener",
        "parameters": [
          {
            "name": "events",
            "in": "query",
            "description": "A list of the events that will be catched by this listener",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Listener/properties/events"
            },
            "example": "['payment_order.authorized']"
          },
          {
            "name": "url",
            "in": "query",
            "description": "The `url` receiving the notifications",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Listener/properties/url"
            },
            "example": "https://my-api.domain.com/webhook"
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "[[:xdigit:]]{32}"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the updated Listener",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Listener"
                }
              }
            }
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthenticated"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not found"
          },
          "422": {
            "description": "Unprocessable request"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Listener": {
        "required": [
          "url",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "id": {
            "description": "The unique identifier of this Listener",
            "type": "string",
            "pattern": "lis_[0-9a-f]{32}"
          },
          "shop_id": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "events": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "url": {
            "type": "string"
          },
          "hmac_key": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "deleted",
              "disabled"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "instant": {
            "description": "Set to false to delay notifications by 15 seconds",
            "type": "boolean",
            "default": true
          }
        },
        "type": "object"
      }
    },
    "securitySchemes": {
      "Bearer": {
        "type": "http",
        "bearerFormat": "JWT",
        "scheme": "bearer"
      }
    }
  },
  "security": [
    {
      "Bearer": []
    }
  ],
  "tags": [
    {
      "name": "Listeners"
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```