Image 1 of 1

Shipmate

Product information

By Pinelab

Synchronize orders with the Shipmate platform

npm install @pinelab/vendure-plugin-shipmate
Support by
Support languages
en
nl
Integration type
Partner
Category
Shipping
Compatible with
>=2.2.0
Latest version
1.4.0
Last published
Dec 20, 2024
Downloads in past month
36

Vendure Shipmate Plugin

Official documentation here

Create shipments in Shipmate on every order placed, to automate your order fulfillment process.

Getting started

  1. Add the plugin to your vendure-config.ts
import { ShipmatePlugin } from '@pinelab/vendure-plugin-shipmate';

...
plugins: [
  ShipmatePlugin.init({
    apiUrl: 'https://api.shipmate.co.uk/v1.2', // Or https://api-staging.shipmate.co.uk/v1.2 for the testing environment
    shouldSendOrder: function ( ctx: RequestContext, order: Order): Promise<boolean> | boolean {
      // Sample implementation that only sends orders with less than 5 items to Shipmate
      return order.totalQuantity < 5;
    }
  }),
  AdminUiPlugin.init({
    port: 3002,
    route: 'admin',
    app: compileUiExtensions({
      outputPath: path.join(__dirname, '__admin-ui'),
      extensions: [
        ShipmatePlugin.ui
        ... // your other plugin UI extensions
      ],
    }),
  }),
... // your other plugins
]

  1. Compile the admin UI to include the Shipmate configuration page
  2. Log in to your Shipmate account.
  3. Note down your API key from Profile > Settings > API Keys
  4. Create two webhooks. One with trigger Tracking Status updates to Collected and one with Tracking Status updates to Delivered, pointing to url https://<your Vendure server>/shipmate. Set JSON as format. This will make sure your Vendure Order is synced when the shipment is being Shipped or Delivered.
  5. Start Vendure, log in, and navigate to Settings > Shipmate
  6. Fill in your API Key, username and password. The plugin will authenticate as the given user when creating shipments.
  7. Fill in both Auth tokens from the created webhooks that were created in Shipmate. You can find it on the webhook detail screen. The plugin uses this token to validate if incoming events are really from Shipmate.
  8. Click ‘Save’

Test the plugin

  1. Place a test order.
Vendure
Get started

Create your first commerce experience with Vendure in less than 2 minutes

Vendure is a registered trademark. Our trademark policy ensures that our brand and products are protected. Feel free to reach out if you have any questions about our trademarks.

Newsletter

Get the latest product news and announcements delivered directly to your inbox.

© Copyright 2022 - 2024, Vendure GmbH. All rights reserved.