Quickstart
Make your first API call to Presscart in curl, JavaScript, or Python.
You need an API token. Get one →
1. Verify your token
curl "https://api.presscart.com/auth/token" \
-H "Authorization: Bearer YOUR_API_TOKEN"{
"source": "api_token",
"team_id": "11111111-1111-1111-1111-111111111111",
"token_type": "custom",
"scopes": ["products.read", "orders.create"],
"pro_pricing_enabled": true
}2. Browse outlets
Requires outlets.lists scope.
curl "https://api.presscart.com/outlets?limit=5" \
-H "Authorization: Bearer $PRESSCART_API_TOKEN"3. Create a profile
Requires profiles.create scope.
curl -X POST "https://api.presscart.com/profiles" \
-H "Authorization: Bearer $PRESSCART_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Acme Corp",
"website_url": "https://acme.com",
"overview": "Acme helps finance teams automate invoice workflows.",
"products_and_services": "Invoice automation, payment reconciliation, and spend analytics.",
"key_achievements": ["Processed over $500M in invoices"],
"unique_value_propositions": ["Finance automation built for mid-market operators"],
"industry": ["Fintech", "B2B SaaS"],
"target_audience": ["CFOs", "Finance operations teams"]
}'4. Place an order
Requires orders.create scope. Use the id from the profile you created as profile_id, and include a product_id.
curl -X POST "https://api.presscart.com/orders/checkout" \
-H "Authorization: Bearer $PRESSCART_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"profile_id": "YOUR_PROFILE_ID",
"line_items": [
{
"product_id": "YOUR_PRODUCT_ID",
"quantity": 1,
"is_add_on": false,
"linked_order_line_item_id": null
}
],
"discount": 0
}'Next
- API Reference — All endpoints
- Creating an Order — Full order workflow
- Error Handling — Status codes and retry logic