docs
  1. SCAYLE Developer Guides
  2. Customise & Extend
  3. Webhooks
  4. Events
  5. Vouchercodecreationrequest Updated

VoucherCodeCreationRequest Updated

Get notified when an existing customer resets the password.

Example:

{
    "key": "3da1979f-731e-4b52-b5cd-5c599bd2e04d",
    "locale": {
        "appId": 999,
        "countryCode": "DEU",
        "languageCode": "de-DE"
    },
    "occurredAt": "2018-01-20T15:15:15+00:00",
    "payload": {
        "customer": {
            "id": 9876,
            "anonymisation": {
                "status": "initiated"
            },
            "authentication": {
                "type": "password"
            },
            "birthDate": "1981-02-02",
            "customData": {
                "isVip": true
            },
            "email": "[email protected]",
            "firstName": "Anna",
            "gender": "f",
            "groups": [
                "employee",
                "vip"
            ],
            "identities": [
                {
                    "idpCode": "keycloak"
                },
                {
                    "externalUserId": "123",
                    "idpCode": "okta"
                }
            ],
            "ipAddress": "172.19.0.2",
            "lastName": "Fohlmeister",
            "phone": "0049/1234567890",
            "publicKey": "customer-1234",
            "referenceKey": "customer-1234",
            "status": {
                "isActive": false,
                "isAnonymous": true,
                "isGuestCustomer": false,
                "isTestCustomer": false
            },
            "title": "Dr.",
            "type": "retail",
            "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36",
            "createdAt": "2018-01-20T09:30:15+00:00",
            "updatedAt": "2018-01-20T09:30:15+00:00"
        },
        "expiresAt": "2018-01-20T09:30:15+00:00",
        "url": "https://checkout.aboutyou.de/password/reset?hash=569cf3eb-d91c-432c-b717-77671f80d001"
    },
    "type": "password-reset"
}

Properties:

  • key string
  • occurredAt string
  • payload object
    • id integer
    • created_at string,null
    • ended_processing_at string,null
    • quantity integer
    • started_processing_at string,null
    • status enum (Pending Processing Failed Completed Cancelled)
    • updated_at string,null
    • voucher_id integer
  • type enum (voucher-code-creation-request-updated)