Custom REST API
If your store isn't on Shopify or Salesforce Commerce Cloud, you integrate Pinch via direct REST calls. The same decisions, scores, and dashboard surface — you just send events from your own service instead of relying on a turnkey app.
When to use this path
- You're on Magento, WooCommerce, BigCommerce, commercetools, Spree, or another platform Pinch doesn't have a turnkey app for.
- You run a headless commerce stack with a custom storefront.
- You want to integrate Pinch into a non-storefront flow — for example, account-creation scoring in a mobile app.
- You're a partner or RMS building Pinch into your own product.
What you'll need to send
| Event | Endpoint | When to call |
|---|---|---|
| Signup (optional) | POST /v1/evaluate/signup | When a customer creates an account |
| Login (optional) | POST /v1/evaluate/login | On every login attempt, success and failure |
| Order (required) | POST /v1/order | When a customer checks out |
| Return (required) | POST /v1/return | When a customer initiates a return |
| Disposition (required) | POST /v1/return/disposition/{return-id} | When your warehouse inspects the returned item |
| Dispute (recommended) | POST /v1/order/dispute/{order-id} | When a chargeback opens or resolves |
| Account update (optional) | POST /v1/evaluate/account | On sensitive changes — password, email, payout |
Order, Return, and Disposition are the minimum. The rest improve detection accuracy.
Quickstart
The fastest path to a working integration:
- Email support@pinch.ai for sandbox API keys.
- Walk through the REST API Quickstart — send your first Order and Return.
- Drop the Device JS SDK onto your storefront to capture
visitorIdfor device fingerprinting. - Wire up disposition data, either via API or via the dashboard CSV upload.
- Move to production keys when your sandbox traffic matches expectations.
Full reference, including request/response shapes, errors, and idempotency rules: API reference.
What's the same as Shopify and SFCC
- The Pinch team still configures your workflows, decisions, and variables during onboarding.
- Decisions still come back as
ALLOW/DENY/REVIEWplus a 0–100 abuse score. - The dashboard surface (Review queue, Customers, Analytics) is identical.
What's different
- You're responsible for calling each endpoint from your service. There's no install button.
- Decisions are returned in the API response (and via webhook — coming soon) rather than written as customer tags on a platform you don't control.
- You enforce decisions in your own application code — for example, blocking a refund flow when Pinch returns
DENY.
See also
- REST API Quickstart — your first Order and Return
- API reference — full endpoint documentation
- Authentication — API keys and headers
- Device JS SDK — device fingerprinting for any non-Shopify storefront