npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@tsc_tech/medusa-plugin-quotes

v0.0.17

Published

A starter for Medusa plugins.

Downloads

48

Readme

Quote Management System

This project includes a comprehensive quote management system that handles various aspects of quoting, such as cart quotes, customer quotes, order changes, and order quotes.

Features

  1. Cart Quotes

    • Handles the creation and management of quotes associated with shopping carts.
    • Includes logic for calculating discounts, taxes, and total amounts.
  2. Customer Quotes

    • Manages quotes specific to individual customers.
    • Supports personalized pricing and customer-specific terms.
  3. Order Change Quotes

    • Facilitates quotes for changes to existing orders.
    • Ensures accurate recalculations for modifications.
  4. Order Quotes

    • Generates quotes for finalized orders.
    • Includes support for order-specific adjustments and promotions.
  5. Quote Modules

    • Contains reusable modules and utilities for quote management.
    • Provides a centralized location for shared quote-related logic.

How It Works

  1. Initialization: Quotes are initialized based on the context (cart, customer, or order).
  2. Calculation: The system calculates the quote details, including pricing, discounts, and taxes.
  3. Validation: Ensures all required fields are populated and the quote meets business rules.
  4. Finalization: Once approved, the quote is converted into an order or saved for future reference.

API Documentation

1. Preview Quote

Endpoint: GET /store/customers/me/quotes/{{quoteId}}/preview

curl -X GET "{{backend_url}}/store/customers/me/quotes/{{quoteId}}/preview" \
-H "Authorization: Bearer {{token}}" \
-H "x-publishable-api-key: {{x-publishable-api-key}}"

2. Customer Accept Quote

Endpoint: POST /store/customers/me/quotes/{{quoteId}}/accept

curl -X POST "{{backend_url}}/store/customers/me/quotes/{{quoteId}}/accept" \
-H "Authorization: Bearer {{token}}" \
-H "x-publishable-api-key: {{x-publishable-api-key}}"

3. Create Request for Quote

Endpoint: POST /store/customers/quotes

curl -X POST "{{backend_url}}/store/customers/quotes" \
-H "Authorization: Bearer {{token}}" \
-H "x-publishable-api-key: {{x-publishable-api-key}}" \
-H "Content-Type: application/json" \
-d '{
  "region_id": "reg_01JQ950RWSF4HPHKQHB4FMB1EM",
  "first_name": "fn",
  "last_name": "ln",
  "quantity": 5,
  "email": "[email protected]",
  "variant_id": "variant_01JQ950S0R2YJ8WN7KJ6K0YZA7"
}'

4. Get Customer Quotes

Endpoint: GET /store/customers/me/quotes

curl -X GET "{{backend_url}}/store/customers/me/quotes" \
-H "Authorization: Bearer {{token}}" \
-H "x-publishable-api-key: {{x-publishable-api-key}}"

5. Customer Reject Quote

Endpoint: POST /store/customers/me/quotes/{{quoteId}}/reject

curl -X POST "{{backend_url}}/store/customers/me/quotes/{{quoteId}}/reject" \
-H "Authorization: Bearer {{token}}" \
-H "x-publishable-api-key: {{x-publishable-api-key}}"

6. Admin Get All Quotes

Endpoint: GET /admin/quotes

curl -X GET "{{backend_url}}/admin/quotes" \
-H "Authorization: Bearer {{adminAuth}}"

8. Admin Reject Quote

Endpoint: POST /admin/quotes/{{quoteId}}/reject

curl -X POST "{{backend_url}}/admin/quotes/{{quoteId}}/reject" \
-H "Authorization: Bearer {{adminAuth}}"

9. Admin Create Quote

Endpoint: POST /admin/quotes

curl -X POST "{{backend_url}}/admin/quotes" \
-H "Authorization: Bearer {{adminAuth}}" \
-H "Content-Type: application/json" \
-d '{
  "customer_id": "cus_01JQNBNXTHYW6KNH2GX85YQGVZ",
  "region_id": "reg_01JQN8EF6A9SPHZ0E33EAD9ASW",
  "variant_id": "variant_01JQN8EFBEKQ25BS7QW71X5BBF",
  "quantity": 5
}'

10. Admin Send Quote

Endpoint: POST /admin/quotes/{{quoteId}}/send

curl -X POST "{{backend_url}}/admin/quotes/{{quoteId}}/send" \
-H "Authorization: Bearer {{adminAuth}}"