This page is the generic Dev API quickstart.If your real goal is:
- theme editing with AI -> start with Editing with AI
- theme automation endpoints -> read Visual themes
/dev/v1/* request.If you prefer an official SDK instead of raw
fetch or requests, start with SDKs & libraries. Shoppex has packages for Node.js/Bun (@shoppexio/sdk), Python (shoppexio), and PHP (shoppexio/shoppex-php).1
Get Your API Key
- Log in to dashboard.shoppex.io
- Go to Settings → API Keys
- Click Generate New Key
- Copy the key (starts with
shx_)
2
Make Your First Request
This request fetches your shop information to verify that everything works:Response:
3
Create a Payment
Now create a payment link:Response:Redirect your customer to the If you force That returns a
url to complete payment.POST /payments creates a generic developer payment. It does not trigger Shoppex product fulfillment. Use it when you want a payable invoice or hosted checkout URL. Use POST /orders instead when you need Shoppex product line items, delivery, and automatic fulfillment.gateway: "PANDABASE", the response can also include:checkout_url: the direct Pandabase checkout session URLsession_id: the Pandabase session reference Shoppex stores to match the webhook to this payment automatically
crypto_gateway.Simple example:url like:4
Handle the Result
After payment, Shoppex sends a webhook to your server:
Webhooks Guide
Learn how to set up and verify webhooks
Dynamic Product Delivery
Implement the fulfillment callback for
DYNAMIC products