Hyperse
  • Pricing
  • FAQs
Newsletter

Subscribe to our newsletter

Receive weekly updates with latest collections and exclusive offers, straight to your inbox.

Hyperse

Headless commerce solutions for brands, developers, and modern ecommerce teams.

Explore

  • Home
  • About Us
  • Partners
  • FAQs

Legal & resources

  • Proposal
  • Privacy Policy
  • Terms & Conditions

© 2026 Hyperse. All rights reserved.


  1. Home
  2. Vendure Plugins
  3. hps-plugin-token-active-order
hps-plugin-token-active-order

hps-plugin-token-active-order

By Hyperse

hps-plugin-token-active-order is a Token Active Order plugin in the Hub Core group.hps-plugin-token-active-order provides Token Active Order plugin capabilities for Hub Core. Core platform infrastructure and extension runtime.

CoreVendure Plugins

Specifications

Technical details and package information for this product.

Package

@hyperse-hub/hps-plugin-token-active-order

Support by

Hyperse

Support languages

TypeScript, JavaScript, HTML, CSS, Prolog, Shell

Integration type

Core

Category

Vendure Plugins

Compatible with

^3.0.0

Latest version

1.1.6

Downloads

0

Repository

ssh://git@github.com/hyperse-hub/hub-core

Last published

July 14, 2026

Description
Changelog
loading...

@hyperse-hub/hps-plugin-token-active-order

Token-based active order strategy for Vendure.

This plugin prepends a custom activeOrderStrategy which can resolve the active order by Order.customFields.orderToken. It is useful for server-to-server scenarios where you can't rely on a browser session.

Install

yarn add @hyperse-hub/hps-plugin-token-active-order

Configure

Register the plugin in your Vendure config:

import { HpsPluginTokenActiveOrder } from '@hyperse-hub/hps-plugin-token-active-order'; plugins: [ HpsPluginTokenActiveOrder.init({ verifyActiveOrderOwner: false, }), ];

Options

  • verifyActiveOrderOwner: When true, the token-resolved order will only be treated as active if it belongs to the current active user.

Usage

Resolve active order by token

The plugin adds a orderToken input to Shop API activeOrder input.

query ActiveOrderByToken($token: String!) { activeOrder(input: { orderToken: { token: $token } }) { id code state } }

Add item to order (Shop API)

Once you have an active order (session-based or token-based), you can use Vendure's built-in mutation addItemToOrder.

mutation AddItem($productVariantId: ID!, $quantity: Int!) { addItemToOrder(productVariantId: $productVariantId, quantity: $quantity) { ... on Order { id lines { id quantity productVariant { id } } } ... on ErrorResult { errorCode message } } }

On this page

  • @hyperse-hub/hps-plugin-token-active-order
    • Install
    • Configure
      • Options
    • Usage
      • Resolve active order by token
      • Add item to order (Shop API)