Skip to main content
WEBHOOK
discount.imported
{
  "event_id": "evt_01hdnnd4x84s4r5br068y3rm6d",
  "event_type": "discount.imported",
  "occurred_at": "2023-10-26T09:35:17.929027Z",
  "notification_id": "ntf_01hdnnd505rcs80ss56rfn7qa2",
  "data": {
    "id": "dsc_01gv599b6zkj42fkpxftjeca8f",
    "status": "active",
    "description": "Legacy customer discount",
    "enabled_for_checkout": true,
    "code": "ZJFYC3K9KT",
    "type": "flat",
    "mode": "standard",
    "amount": "1000",
    "currency_code": "USD",
    "recur": true,
    "maximum_recurring_intervals": null,
    "usage_limit": null,
    "restrict_to": [
      "pri_01h19fp7wgbasj0h1627jknp7f"
    ],
    "custom_data": null,
    "import_meta": {
      "external_id": "fc1ba9bc-8ddb-11ee-b9d1-0242ac120002",
      "imported_from": "paddle_classic"
    },
    "expires_at": "2023-06-12T09:18:00Z",
    "created_at": "2023-03-10T08:13:06.655Z",
    "updated_at": "2023-06-05T09:18:46.63Z"
  }
}

Headers

Paddle-Signature
string
required

Signature for this request. Use to verify that webhooks come from Paddle.

Example:

"ts=1671552777;h1=eb4d0dc8853be92b7f063b9f3ba5233eb920a09459b6e6b2c26705b4364db151"

Body

application/json

Occurs when a discount is imported.

Payload includes the complete discount entity, except times_used. This field changes frequently, so isn't included in payloads. Get a discount using the API to see the latest value.

data
Discount Notification · object

Response

200

Respond with an HTTP 200 status code within 5 seconds to let Paddle know that you successfully received the message.

If your server sends another kind of status code or doesn't respond, Paddle automatically retries using an exponential backoff schedule.