Commerce Backend for AI Apps
Give your AI-built app a commerce backend for catalogs, checkout, and orders. Read a sample catalog and create a test checkout over HTTP.
Test a catalog-to-checkout flow
GET /api/commerce-sandbox/catalog
POST /api/commerce-sandbox/checkout
Connect your app to commerce
Read a catalog
Load the products, currency, and prices your app can present to a shopper.
Send the shopper’s selection
Send the product ID and quantity. Let the backend look up prices and calculate the total.
Hand off to checkout
Use a hosted checkout for payment in production. Confirm the order from your backend when payment succeeds.
Common questions
Do I need an API key for this example?
The demo sandbox is public and uses a fixed sample catalog. Production Tradly credentials belong on your server.
Does a test checkout charge a card?
No. It returns a test checkout reference and totals without collecting payment or creating a live order.
Is this the production API contract?
The endpoints here illustrate the flow with sample data. Use the Tradly API documentation for production endpoints, authentication, and payloads.