V2 - Quotes and Commercial Documents endpoints
We are happy to announce the introduction of the Quotes and Commercial Documents management endpoints. This outlines all the available endpoints in the Pennylane V2 API for managing quotes and commercial documents (shipping orders, purchase orders, and proformas).
💡In the V1, it corresponds to the Estimates endpoints. We renamed Estimates into Quotes, which is a more accurate naming of the type of invoices (🇫🇷 Devis).
Commercial Documents are the following types of invoices :
- Proforma
- Shipping Order (🇫🇷 Bon de livraison)
- Purchase Order (🇫🇷 Bon de commande)
Authentication & Scopes
All endpoints require OAuth2 authentication or a developer token with appropriate scopes:
For Quotes:
- Read Operations:Â
quotes:all
 ORÂquotes:readonly
- Write Operations:Â
quotes:all
 (read-only scope insufficient)
For Commercial Documents:
- Read Operations:Â
commercial_documents:all
 ORÂcommercial_documents:readonly
- Write Operations:Â
commercial_documents:all
 (read-only scope insufficient)
Quotes Endpoints
1. List Quotes
- Route:Â
GET /api/external/v2/quotes
- Scopes:Â
quotes:all
 ORÂquotes:readonly
- Description: Retrieve a paginated list of quotes
2. Get Quote Details
- Route:Â
GET /api/external/v2/quotes/:id
- Scopes:Â
quotes:all
 ORÂquotes:readonly
- Description: Retrieve details of a specific quote by ID
3. Create Quote
- Route:Â
POST /api/external/v2/quotes
- Scopes:Â
quotes:all
- Description: Create a new quote
4. Update Quote
- Route:Â
PUT /api/external/v2/quotes/:id
- Scopes:Â
quotes:all
- Description: Update an existing quote
5. Update Quote Status
- Route:Â
PUT /api/external/v2/quotes/:id/update_status
- Scopes:Â
quotes:all
- Description: Update the status of a quote
6. Send Quote by Email
- Route:Â
POST /api/external/v2/quotes/:id/send_by_email
- Scopes:Â
quotes:all
- Description: Send a quote by email
7. List Quote Invoice Lines
- Route:Â
GET /api/external/v2/quotes/:quote_id/invoice_lines
- Scopes:Â
quotes:all
 ORÂquotes:readonly
- Description: Retrieve invoice lines for a quote
8. List Quote Invoice Line Sections
- Route:Â
GET /api/external/v2/quotes/:quote_id/invoice_line_sections
- Scopes:Â
quotes:all
 ORÂquotes:readonly
- Description: Retrieve invoice line sections for a quote
9. List Quote Appendices
- Route:Â
GET /api/external/v2/quotes/:quote_id/appendices
- Scopes:Â
quotes:all
 ORÂquotes:readonly
- Description: Retrieve appendices of a quote
10. Upload Quote Appendix
- Route:Â
POST /api/external/v2/quotes/:quote_id/appendices
- Scopes:Â
quotes:all
- Description: Upload an appendix for a quote
Commercial Documents Endpoints
1. List Commercial Documents
- Route:Â
GET /api/external/v2/commercial_documents
- Scopes:Â
commercial_documents:all
 ORÂcommercial_documents:readonly
- Description: Retrieve a paginated list of commercial documents
2. Get Commercial Document Details
- Route:Â
GET /api/external/v2/commercial_documents/:id
- Scopes:Â
commercial_documents:all
 ORÂcommercial_documents:readonly
- Description: Retrieve details of a specific commercial document by ID
3. List Commercial Document Invoice Lines
- Route:Â
GET /api/external/v2/commercial_documents/:commercial_document_id/invoice_lines
- Scopes:Â
commercial_documents:all
 ORÂcommercial_documents:readonly
- Description: Retrieve invoice lines for a commercial document
4. List Commercial Document Invoice Line Sections
- Route:Â
GET /api/external/v2/commercial_documents/:commercial_document_id/invoice_line_sections
- Scopes:Â
commercial_documents:all
 ORÂcommercial_documents:readonly
- Description: Retrieve invoice line sections for a commercial document
5. List Commercial Document Appendices
- Route:Â
GET /api/external/v2/commercial_documents/:commercial_document_id/appendices
- Scopes:Â
commercial_documents:all
 ORÂcommercial_documents:readonly
- Description: Retrieve appendices of a commercial document
6. Upload Commercial Document Appendix
- Route:Â
POST /api/external/v2/commercial_documents/:commercial_document_id/appendices
- Scopes:Â
commercial_documents:all
- Description: Upload an appendix for a commercial document
What's Next
We are currently working on a new endpoint in the customer invoices scope that will allow you to create customer invoices directly from quotes.