Merchant webhook payloads

Payload reference for merchant.created, updated, and deleted.

Preczn supports three merchant events. All three carry the same data shape, the full merchant record, so eventType tells you which happened.

EventFires when
merchant.createdA merchant record is created, whether through the API, the dashboard, or an import from a processor.
merchant.updatedA merchant record is modified.
merchant.deletedA merchant record is deleted, whether by API request or by a dashboard user.

For every event you can subscribe to, see Webhook events.


Payload

The example below is a merchant.updated notification. merchant.created and merchant.deleted have the same structure with a different eventType.

{
  "id": "{notificationId}",
  "webhookId": "{webhookId}",
  "eventType": "merchant.updated",
  "data": {
    "id": "{merchantId}",
    "active": true,
    "plan": "",
    "name": "{merchantName}",
    "legalName": "{legalName}",
    "address": {
      "address": "{address}",
      "address2": "{address2}",
      "city": "{city}",
      "region": "{region}",
      "postal": "{postalCode}",
      "country": "USA"
    },
    "email": "{email}",
    "phone": "{phone}",
    "tin": "****{last4}",
    "tinType": "ein",
    "website": "{website}",
    "mailingAddress": {
      "address": "{address}",
      "address2": "{address2}",
      "city": "{city}",
      "region": "{region}",
      "postal": "{postalCode}",
      "country": "USA"
    },
    "billingContact": {
      "address": "{address}",
      "address2": "{address2}",
      "city": "{city}",
      "region": "{region}",
      "postal": "{postalCode}",
      "country": "USA",
      "firstName": "{firstName}",
      "lastName": "{lastName}",
      "email": "{email}",
      "phone": "{phone}"
    },
    "businessType": "corp",
    "publicCompany": false,
    "isBusinessAddress": true,
    "naicsClassificationCode": "513210",
    "stateIncorporated": "CA",
    "countryIncorporated": "USA",
    "dateEstablished": "1990-10-22",
    "customerServicePhone": "{phone}",
    "productServiceDescription": "{productServiceDescription}",
    "mcc": "7372",
    "annualSaleVolume": 20000,
    "averageTicket": 3000,
    "shipToDays": 7,
    "modifiedOn": "2024-01-29T20:01:12Z",
    "modifiedBy": "API Key: Default",
    "owners": [
      {
        "firstName": "{firstName}",
        "middleName": "",
        "lastName": "{lastName}",
        "email": "{email}",
        "phone": "{phone}",
        "address": {
          "address": "{address}",
          "address2": "{address2}",
          "city": "{city}",
          "region": "{region}",
          "postal": "{postalCode}",
          "country": "USA"
        },
        "id": "{ownerId}",
        "businessTitle": "CEO",
        "citizenshipCountry": "USA",
        "dob": "{birthYear}****",
        "ssn": "****{last4}",
        "ownershipPercent": 100,
        "type": "Owner",
        "politicallyExposed": false,
        "primaryRepresentative": true,
        "driversLicenseNumber": "****{last4}",
        "driversLicenseState": "{region}",
        "driversLicenseExpiration": "2030-01-01",
        "significantResponsibility": false,
        "connectionID": {}
      }
    ],
    "banking": [
      {
        "id": "{bankAccountId}",
        "accountName": "{accountName}",
        "accountType": "personalChecking",
        "routing": "****{last4}",
        "account": "****{last4}",
        "primaryAccount": true,
        "nameOnAccount": "{legalName}",
        "connectionID": {}
      }
    ],
    "connections": [
      {
        "id": "{merchantConnectionId}",
        "status": "Requirements",
        "processor": "StripeConnect",
        "missingRequiredData": [
          "connectionspecificRequirements.tosDate",
          "connectionspecificRequirements.tosIp"
        ]
      },
      {
        "id": "{merchantConnectionId}",
        "status": "Unconfigured",
        "processor": "AffiniPay"
      },
      {
        "id": "{merchantConnectionId}",
        "status": "Ready",
        "processor": "Payrix",
        "missingRequiredData": [],
        "connectionspecificRequirements": {
          "tosDate": "2023-12-12",
          "tosIp": "{ipAddress}",
          "tosVersion": "{tosVersion}",
          "signingContact": {}
        },
        "actionDescription": "{actionDescription}",
        "actionRequired": true,
        "actionDescriptionReviewed": false
      }
    ]
  }
}

data contains the entire merchant record, with business details, owners, banking, and processor connections, not a diff of what changed. It follows the Get Merchant response shape. The callout below covers the differences.

Field groupContents
Identityid, name, legalName, active, plan, labels
Business detailsemail, phone, website, businessType, naicsClassificationCode, mcc, tin / tinType, incorporation and establishment details, volume and ticket figures
Addressesaddress, mailingAddress, and billingContact, which also carries a contact name, email, and phone
owners[]Each beneficial owner, with identity, contact, address, ownership percentage, and role flags
banking[]Each bank account, with masked routing and account, type, and whether it is primary
connections[]Each processor connection, with status, processor, and any missingRequiredData
AuditmodifiedOn, modifiedBy

Notable fields

FieldDescription
idThe merchant's ID, prefixed mid_.
activeWhether the merchant is enabled in Preczn. It doesn't mean the merchant can process. See When a merchant can process payments.
modifiedByWhat performed the action: User:{email} for a dashboard user, or an API key descriptor such as API Key: Default.
connections[].statusThe processor connection's onboarding status. See Connection statuses.
connections[].missingRequiredDataField paths still outstanding for that connection.
⚠️

Sensitive fields are masked, and the shape can drift

Identity and account values are masked: tin, ssn, dob, driversLicenseNumber, bank routing and account arrive partially redacted. dob shows only the birth year, and the other values show at most the last four characters. Full values are never sent.

Webhook payloads are assembled separately from the Merchant API, so slight differences are possible and new fields may be added without notice. Ignore unknown fields rather than failing on them, and report any discrepancy that affects you to your Preczn support team.


FAQ

How do I tell what actually changed on a merchant.updated?

You can't from the notification alone. The payload is the complete record, not a diff, and there is no field naming what changed. Compare the payload against your own stored copy to compute the delta.

This is the main argument for storing the merchant record on your side. It also lets you ignore notifications where nothing you care about moved, which matters because merchant.updated fires on every modification including ones irrelevant to your integration.

Why am I getting so many merchant.updated notifications?

Because any modification emits one, including changes made by Preczn's own onboarding processes rather than by you: connection status transitions, requirement evaluation, and data imported from a processor all count. During active onboarding a single merchant can produce a burst of them.

Each change sends one notification. For a merchant with a boarding connection, Preczn first re-checks the connection's requirements and then sends the notification with the re-checked statuses, so it can arrive a few seconds after the change.

Deduplicate against your stored copy and act only on the fields you use.

Can I subscribe to connection status changes specifically?

Not as a separate event. Connection status lives in connections[].status on the merchant.updated payload, so subscribe to merchant.updated and watch that array for transitions.

Does merchant.deleted include the merchant's data?

Yes: the full record, the same shape as the other merchant events, captured as it was at deletion. You do not need to have stored it beforehand to know what was removed.

Does merchant.created fire for merchants imported from a processor?

Yes. Merchants created by importing existing accounts from a processor emit merchant.created the same as merchants created through the API or dashboard. A bulk import can produce a large burst of notifications at once, so acknowledge each one quickly. See Receive and verify webhooks.


Did this page help you?