Developer docs

The whole integration, on one page.

Customers connect with a button on your site. When they change a detail, you're notified, fetch the change with your API key, and tell us what you did with it.

API basehttps://api.geteasydex.com/api
Connect scripthttps://app.geteasydex.com/connect/v1/connect.js
Partner portalWhere you get your keys, set your webhook and see every change.

Setup

During onboarding we create your partner account and give your team portal access. In the portal you'll find or set:

1 · Add the Connect button

Load the script, then start a connection when the customer clicks. The browser goes to EasyDex, the customer picks which details to share, and comes back to your page.

<script src="https://app.geteasydex.com/connect/v1/connect.js"></script>
<button id="keep-current">Keep my address current</button>
<script>
  // On every page load: handles the return from EasyDex (no-op otherwise).
  EasyDexConnect.handleResult(function (result) {
    if (result.status !== 'ok') return;          // 'cancelled' or 'error'
    var addr = result.fields.shipping;           // keyed by your fieldID
    saveConnection(addr.connectionId);           // store against this customer
    fillShippingForm(addr.value);                // optional: prefill your form
  });

  document.getElementById('keep-current').addEventListener('click', function () {
    EasyDexConnect.start({
      partner: 'YOUR_PARTNER_KEY',
      fields: [
        { fieldID: 'shipping', label: 'Shipping address', detailTypes: ['address'] }
      ]
      // returnUrl: defaults to the current page (must be on an allowed origin)
    });
  });
</script>

detailTypes can be address, phone or email. The result for each field:

{
  "status": "ok",
  "fields": {
    "shipping": {
      "detailType": "address",
      "detailId": "b0c1…",
      "connectionId": "7f3e…",                      // store this per customer
      "value": { "line1": "48 Alder Lane", "line2": "", "unitNumber": "3",
                 "city": "Portland", "state": "OR", "postalCode": "97214",
                 "country": "US", "precision": "HOUSE_NUMBER" }
    }
  }
}

For phone and email, value is a string. Store connectionId against your customer — every later change for that connection carries the same ID as contactPartnerShareId, so matching never depends on the customer's email.

2 · Receive notifications

When a connected customer changes a detail, EasyDex POSTs to your webhook with your Basic credentials. The body contains no personal data:

POST https://your-endpoint.example.com/easydex
Authorization: Basic …
Content-Type: application/json

{ "contactPartnerShareId": "7f3e…", "fetchId": "c9d2…", "test": false }

3 · Fetch the change

GET/public/v1/partner-updates/{fetchId}

curl https://api.geteasydex.com/api/public/v1/partner-updates/c9d2… \
  -H "Authorization: Bearer edx_pk_…"
{
  "contactPartnerShareId": "7f3e…",
  "detailId": "b0c1…",
  "fetchId": "c9d2…",
  "previous": { "id": "b0c1…", "name": "Home", "address1": "100 Example Street",
                "city": "Springfield", "state": "OR", "postalCode": "97477", "country": "US" },
  "new":      { "id": "b0c1…", "name": "Home", "address1": "48 Alder Lane", "unitNumber": "3",
                "city": "Portland", "state": "OR", "postalCode": "97214", "country": "US" },
  "updateMode": "AUTO",
  "test": false,
  "outcome": null
}

previous and new carry the detail's fields: name (the customer's label) plus address1, address2, unitNumber, city, state, postalCode, country for addresses; phoneNumber, countryCode, countryIso for phones; email for emails. Fields without a value may be absent.

Fetching is safe to repeat. The first fetch marks the change as delivered — and, if you apply changes automatically, that's when the customer is told it reached you.

4 · Report the outcome

POST/public/v1/partner-updates/{fetchId}/outcome

curl -X POST https://api.geteasydex.com/api/public/v1/partner-updates/c9d2…/outcome \
  -H "Authorization: Bearer edx_pk_…" -H "Content-Type: application/json" \
  -d '{"outcome": "APPLIED"}'          # or "DECLINED"

→ { "fetchId": "c9d2…", "outcome": "APPLIED" }

Email instead of webhooks

No integration at all: choose the email channel and your team gets an email for each change, with a link to it in the partner portal. The email never contains the new value. In the portal, mark each change Applied or Declined.

Errors & limits

404Unknown fetchId or wrong/missing API key — deliberately the same answer, so IDs can't be probed.
400An outcome other than APPLIED or DECLINED.
409A different outcome was already recorded, or the change hasn't been delivered yet.
429Rate limit: 30 requests a minute per IP for fetch and outcome (20 a minute for Connect). Wait for the Retry-After header.

If a customer disconnects you in EasyDex, you simply stop receiving their changes. Records you already hold are never touched.

Testing

In the partner portal, Send test update creates a realistic address change for a sandbox customer and delivers it through your real channel right away, with test: true. Fetch it, report an outcome, and watch it in your activity list — no real customer involved. Up to 50 a day.

Something unclear or missing? Write to [email protected] — during a pilot we build the integration with you. See also security and the pilot plan.