Available Webhook Endpoints
All endpoints are hosted at the base URL
https://api.smartpyme.site.
Finding Your Webhook Token
Each SmartPyme user has a unique token that authenticates incoming webhook calls. To locate yours:- Go to Settings → Users and open your user profile.
- Click the Integrations tab.
- Copy the token displayed — you will paste it into the webhook URL when configuring the external platform.
Security
The{token} segment in each webhook URL acts as a per-user secret that authorizes requests to your SmartPyme account. Treat it like a password:
- Do not share your token in public repositories, documentation, or client-side code.
- Do not expose it in screenshots or support tickets.
- If you believe your token has been compromised, contact your SmartPyme administrator immediately to rotate your credentials.
Payload Handling
When SmartPyme receives a valid webhook event, it automatically:- Creates a new sale from the order data, including customer details, line items, totals, and payment method.
- Deducts inventory for each product sold, keeping your stock levels accurate.
- Links the external order ID to the SmartPyme sale record so you can trace any transaction back to its source.