Added

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.