Wholesale Engine Developer API: Buyer Sync & Invoice-Paid Webhooks
Wholesale doesn’t end when the invoice is paid—finance still needs the ledger in your accounting system.
Most legacy B2B apps treat integration as an enterprise upcharge. Wholesale Engine ships Developer API v1 as a core capability: bearer-token access and programmable webhooks without a separate “enterprise tier.”
Ops hub: wholesale operations without app-stacking.
What ships today (v1)
| Capability | Endpoint / event | Use case | |------------|------------------|----------| | Buyer & credit sync | `GET /api/v1/wholesale/buyers` | Pull approved buyers, credit limits, MOA, Net terms flags into CRM or ERP | | Webhook registration | `POST /api/v1/wholesale/webhooks` | Subscribe your HTTPS endpoint to ledger events | | Invoice settled | Outbound `wholesale_invoice_paid` | Push paid invoice payload to Xero, QuickBooks, NetSuite middleware, or a custom ledger | | Token management | Admin → Settings → Developer API | Issue/revoke scoped tokens per shop (`we_live_…`) |
Authentication: `Authorization: Bearer <API_TOKEN>`. Webhook deliveries include HMAC signatures for verification.
Example buyer sync response shape:
```json { "status": "success", "data": [ { "buyer_id": "b2b_849204719", "company_name": "Precision Audio", "net_terms": { "enabled": true, "credit_limit": 5000.0, "outstanding_balance": 1250.0 } } ] } ```
Connects to your books (API first)
The platform bet is open webhooks, not a single country’s accounting brand as a headline feature.
Optional regional connectors (for example an opt-in Fatture in Cloud path for Italian merchants who want an issued FIC document on full payment) stay available—default off, not required for everyone else.