Redirects and webhooks
Redirects provide browser navigation; webhooks keep your platform records up to date. This pattern applies across Getpaid resources, including checkouts or onboarding applications. Each resource defines its own events and return URLs.
| Mechanism | Purpose |
|---|---|
| Redirect | Open a hosted page, complete a required action, or return the buyer or seller to the appropriate platform page. |
| Webhook | Notify your backend when an event occurs, independently of browser activity. |
| UI refresh | Read updated resource status from your own backend while a page is open. |
Browser flows and API operations
- Hosted: Getpaid hosts the buyer or seller interaction. Your platform creates the resource, opens the returned hosted URL, and handles webhooks. The return URL selects your result page; that page reads state from your backend. See Checkouts and seller onboarding.
- API-only: Your platform calls supported API operations and handles resource webhooks. Server-initiated operations may need no browser or redirect. Where an operation requires buyer or seller actions, follow its documented action mechanism. See Integration via API.
Keep navigation and backend updates independent
Outcome-specific return URLs, where supported, select the page and initial message shown to the buyer or seller. A URL visit does not establish payment success or application approval. Use the resource's backend state for business updates. Submission and completion have different meanings for each resource.
Your platform can receive the same redirect several times for a resource. Handle repeated visits to the return URL without duplicating business actions, and read the current state from your backend each time.
Webhooks provide updates as events become available, without waiting for a polling interval. Delivery can still be delayed, duplicated, or out of order. The browser can return before or after your webhook handler updates the record; backend processing must also work when no return occurs.
Store incoming notifications durably, acknowledge with 2xx, and process changes idempotently. Handle duplicates and
avoid overwriting newer outcomes with older events. See Webhooks for delivery and retry details.
Refresh the UI from your own backend
While awaiting a result, your page can poll your backend or receive updates through your own push channel. The backend returns its webhook-updated record; a UI refresh need not request Getpaid again. Stop refreshing when the result is known or the page closes. Long-running processing does not require an open browser session.
Recover from timeouts
Retry the same request with the same Getpaid-Idempotency-Key on endpoints that support it. An idempotent replay
recovers the original operation's response; later resource changes arrive through webhooks. Use resource retrieval for
exceptional recovery or reconciliation, rather than continuously polling Getpaid. See
Idempotency and Timeouts.