๐Quickstart (Mock Sandbox)
Get started with Docs-Dispatcher in 5 minutes using the validation endpoint - no real API calls, no provider configuration needed.
What You'll Do
In this quickstart, you'll:
Get a JWT authentication token
Validate an invoice request (without sending it)
Understand the request/response format
See what a successful dispatch looks like
No risk: The validation endpoint checks your request format without calling external providers or charging credits.
Prerequisites
An account on Docs-Dispatcher (sign up at TBD)
curlor an HTTP clientNo provider configuration needed for validation
Step 1: Get Your JWT Token
First, authenticate to get a JWT token:
Response:
Save the token - you'll use it in the next step:
Token Validity: JWT tokens expire after 120 minutes. See Get a JWT for refresh workflow.
Step 2: Validate an Invoice Request
Now send a validation request to test your invoice format:
Success Response:
Validation Error Example:
What just happened?
Dispatcher validated your request structure
Checked required fields for Qonto provider
Verified date logic and calculations
Did NOT call Qonto API or send the invoice
Did NOT charge any credits
Step 3: Understand the Request Format
Let's break down the validation request:
providerName (required)
Specifies which invoicing provider to use. Options:
ipaidthat- iPaidThatqonto- Qontopennylane- PennyLanesuperpdp- SuperPDP
documentType (required)
What type of document to generate:
INVOICE- Standard invoiceE_INVOICE- Electronic invoice (France)QUOTE- Quote/DevisCREDIT- Credit note/Avoir
template (required)
id- Template ID from Templater (created via UI or API)data- JSON object with template variables
Template Data Schema: Each template has its own data schema. The validation endpoint checks that your data matches the template's expected structure.
Step 4: Send a Real Invoice
Once your request validates successfully, change /validate to actual dispatch:
Real Dispatch Example:
Success Response:
Real Dispatch Requirements:
Provider must be configured (company or user level)
Credits/billing must be set up
External provider API credentials must be valid
Will actually send the invoice to the customer
Next Steps
Now that you've validated your first request:
Set up provider configs - Configure Qonto, PennyLane, etc.
Full invoice recipe - Generate and send with all options
Async dispatch - Use webhooks for background processing
Use SDKs - Node.js, PHP, or Java instead of curl
Common Quickstart Issues
"Unauthorized" (401)
JWT token expired (120min validity)
Wrong credentials
Fix: Get a new token via
/auth
"Template not found" (404)
Template ID doesn't exist
Template belongs to different company
Fix: Check template ID in Templater UI
"Invalid provider" (400)
Provider name typo (case-sensitive)
Provider not supported for service
Fix: See Providers Overview for valid names
Validation Fails
Check error messages for specific field issues
Verify required fields for your provider
Fix: See provider-specific docs for requirements
Validation vs Real Dispatch
Feature
/validate
Real dispatch
Checks request format
โ
โ
Validates field requirements
โ
โ
Calls external provider
โ
โ
Generates document
โ
โ
Sends to customer
โ
โ
Charges credits
โ
โ
Returns provider response
โ
โ
Quickstart Summary
You've learned:
โ How to authenticate and get a JWT
โ How to validate requests without risk
โ The basic request structure for invoicing
โ How to switch from validation to real dispatch
Ready for production? โ Full Invoice Recipe
Last updated