VisionDesk Logo
API Documentation

Developer REST API Reference

Comprehensive endpoints reference to trigger invoices, query inventory counts, and sync client profiles.


# Developer REST API Reference

VisionDesk provides a secure REST API to integrate with your custom backends. Authenticate your requests using standard Bearer tokens.

Create an Invoice

curl -X POST https://api.visiondesk.storepilot-ai.store/v1/invoices \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "client_id": "cust_489201",
    "items": [{ "name": "Keyboards", "price": 12500, "qty": 1 }],
    "dispatch_channels": ["whatsapp", "email"]
  }'

Response Format

{
  "success": true,
  "invoice_number": "INV-2026-0042",
  "status": "draft",
  "pdf_url": "https://cdn.visiondesk.io/invoices/INV-0042.pdf"
}