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 base | https://api.geteasydex.com/api |
|---|---|
| Connect script | https://app.geteasydex.com/connect/v1/connect.js |
| Partner portal | Where 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:
- Partner key — public; it goes in your Connect button.
- Allowed origins — the web origins your Connect button runs on, e.g.
https://shop.example.com. Requests from anywhere else are refused. - API key — secret, starts with
edx_pk_, shown once when you create it. Used to fetch changes and report outcomes. We store only a hash. - Delivery channel — a webhook (URL plus HTTP Basic username and password), or email to your team.
- How changes are accepted — apply automatically (EasyDex emails the customer when you receive the change) or customer confirms first (you send your own confirmation).
- Connect page — optional; the page with your Connect button, linked from customers' move-day checklists.
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 }
- Respond with any 2xx quickly; do the work afterwards. Anything else (or no answer within about 15 seconds) counts as a failure.
- Failures are retried with increasing waits — 5, 10, 20, 40 minutes and so on, never more than 6 hours apart — up to 12 attempts. After that the change is marked Failed in your portal.
test: truemarks a test update you sent yourself from the portal.
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" }
- Outcomes are final: repeating the same answer is fine; a different answer returns 409.
- DECLINED always emails the customer so they can update it with you directly.
- If you chose customer confirms first, report the outcome after the customer answers your confirmation.
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
| 404 | Unknown fetchId or wrong/missing API key — deliberately the same answer, so IDs can't be probed. |
|---|---|
| 400 | An outcome other than APPLIED or DECLINED. |
| 409 | A different outcome was already recorded, or the change hasn't been delivered yet. |
| 429 | Rate 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.