Skip to content
Back to skills

Posti Matkahuolto Knowledge Patch

ASecurity

Posti / Matkahuolto

  • 25 stars
  • 0 votes
  • 0 copies
  • 7 views
  • Added September 5, 2026
developmentgotestinggitapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill posti-matkahuolto-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Posti Matkahuolto Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Posti Matkahuolto Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-posti-matkahuolto-knowledge-patch/badge)](https://www.skillsdirectory.com/skills/nevaberry-posti-matkahuolto-knowledge-patch)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: posti-matkahuolto-knowledge-patch
description: Posti / Matkahuolto
version: null
license: MIT
metadata:
  author: Nevaberry
---


# Posti / Matkahuolto Merchant Shipping

Load this skill when implementing Posti or Matkahuolto merchant integrations:
pickup-point selection, shipment submission, labels, delivery estimates,
labelless sending, or tracking. Use the reference for the carrier and operation
for complete field mappings, request examples, error codes, and schema caveats.

## Reference index

| Reference | Topics |
| --- | --- |
| [Matkahuolto pickup points](references/matkahuolto-pickup-points.md) | Agreements, credentials, point search, filters, XML/CSV replies, errors |
| [Matkahuolto shipments](references/matkahuolto-shipments.md) | EDI, shipment operations, routing, payers, checkout products, labels, customs, dangerous goods, removals |
| [Matkahuolto tracking](references/matkahuolto-tracking.md) | Authentication, selectors, formats, events, errors, storefront tracking |
| [Posti merchant operations](references/posti-merchant-operations.md) | Gateway and service-account authentication, TLS change, pickup points, estimates, occupancy, labelless sending |
| [Posti tracking](references/posti-tracking-v7.md) | Lookups, search keys, pagination, parcel and freight responses, units, events, restricted operations |

## Removals and compatibility caveats

### Matkahuolto shipment removals

Version 2.24 removed cash-on-delivery fields, shipment-root ADR codes, and
special handover fields. Earlier removals include special handling `K03` in
2.15 and obsolete products `10`, `70`, and `72` in 2.22.
Use `VA` with `DangerousGoodsRow` or `LQ` for limited quantities in place of
legacy ADR code `E01`.

### Posti legacy OAuth certificates

The TLS certificate replacement covers `oauth.posti.com` and `oauth.posti.fi`.
Deployments using those hosts should review their TLS configuration.
`oauth2.posti.com` is unaffected.

### Posti tracking schema caveats

`combined=true` merges records for the same logical shipment; the specification
warns that combining can produce incorrect results when paginating.
The `limit` schema permits 1–1000, while the prose states a hard cap of 100.
Use limits of at most 100 when testing for the end of results.

The `keys` schemas encode the entire selector list as one enum value even
though the descriptions show combinations. Generated validators may reject
the documented selector syntax. The reference preserves the malformed
`!delivery_groupsequence` fragment and the endpoint-specific `sequence` caveat.

## Matkahuolto access and shipment submission

A valid parcel-services agreement is required. Merchants with an agreement
request free testing and production API credentials through the online form;
the same form accepts customer ID requests. The access reference links it.

Shipment data can be sent by API call or file transfer; EDI can use XML or CSV.
Include sender and recipient details and collect at least one recipient
notification contact: a mobile phone number or an email address.

Post raw `MHShipmentRequest` XML as `text/xml` to
`https://extservices.matkahuolto.fi/mpaketti/mhshipmentxml`, or use
`https://extservicestest.matkahuolto.fi/mpaketti/mhshipmentxml` for testing.
The test endpoint returns the expected reply format and leaves consignments
unprocessed. Move to production by changing the endpoint URL.

- Put `UserId`, `Password`, and `Version` before the root's `Shipment` elements.
  `UserId` is the account number without leading zeros; the v2.24 examples
  use wire `Version` `2.0`.
- `MessageType` is `N` to create, `C` to change, or `D` to delete.
  Leave `ShipmentNumber` blank on creation to have the service assign it.
- `ShipmentType` is `N` for normal (default), `A` for activation-code shipments,
  or `R` for returns. A shipment has at most five parcels.
- Use a decimal point for `Weight` and shipment-level `Volume`.
  Shipment-level `Volume` is m³; the v2.24 table labels parcel-level `Volume`
  with `kg`, leaving that parcel field's intended unit unclear.

## Matkahuolto pickup points and checkout routing

Query the pickup-point API live or download its data periodically, for example
daily, for customer-facing selection. POST `MHSearchOfficesRequest` to
`https://extservices.matkahuolto.fi/noutopistehaku/public/v2/searchoffices` with
`Content-Type: application/xml` or `text/xml`. The customer number in `Login`
must be enabled for the service.

An address search requires `PostalCode` or `City`; `Country` defaults to `FI`.
Defaults are `ResponseType=XML`, `MaxResults=5`, and `Coordinates=N`.
Set `Coordinates` to `Y` for latitude and longitude. An ID-only request can
use `<Id>8002</Id>` without address fields and returns one office.

| `OfficeType` | Selection |
| --- | --- |
| `A` | Lockers only |
| `N` | Exclude all lockers |
| `U` | Exclude outdoor lockers |
| `LQ` | Points accepting limited-quantity dangerous goods |

The reference contains all filter and returned-type mappings. The reply's
`Id` is used for shipment routing. Send the selected office's `Id` and `Name`
as `DestinationPlaceCode` and `DestinationPlaceName` for pickup-point delivery.
The shipment reference contains product codes and consumer checkout names,
including the products to keep out of consumer checkout.

## Matkahuolto labels and shipment replies

`DocumentType` defaults to an A5 label; use `10X15` for 100 × 150 mm or `NO`
to suppress the label. With multiple `Shipment` elements in one version-`2.0`
request, all labels appear in a single Base64-encoded `ShipmentPdf`.
The reply examples spell the filename element `PdfName`.

Read `ShipmentNumber` and `SenderReference` from each reply `Shipment`.
Activation-code shipments also return `ActivationCode` there.
Read `ErrorNbr` and `ErrorMsg` at reply level and inside each `Shipment`.
For `MessageType=D`, an error-shaped reply with `ErrorNbr=0` confirms deletion.

## Matkahuolto tracking

GET `https://extservices.matkahuolto.fi/mpaketti/public/tracking` or
`https://extservicestest.matkahuolto.fi/mpaketti/public/tracking` with HTTP Basic
tracking credentials for your own shipments. Send up to ten comma-separated
shipment or parcel identifiers in `ids`, or at least one time bound, `from`
or `to`. A request without any of these selectors fails with HTTP 400.
XML is the default; send
`Accept: application/json` for JSON. A valid query with no matching events
returns an empty result.

Preserve the leading zeroes in event codes `02` and `08`.
Distinguish these collection stages:

| Event code | Meaning |
| --- | --- |
| `47` | Delivered to parcel point |
| `48` | Received at parcel point |
| `50` | Ready for collection |

## Posti authentication

| Operation | Endpoint and credentials |
| --- | --- |
| Gateway token | POST form fields `grant_type=client_credentials`, `client_id`, and `client_secret` to `https://gateway-auth.posti.fi/api/v1/token` |
| Service-account token, production | HTTP Basic account username/password plus `grant_type=client_credentials` at `https://oauth2.posti.com/oauth/token` |
| Service-account token, QA and UAT | `https://oauth2.barium.posti.com/oauth/token` |
| Tracking token | OAuth 2.0 client credentials at `/tracking/oauth/token` on `https://api.posti.fi` |

For API version 2026-04.0, gateway requests use `https://gateway.posti.fi/2026-04` with
`Authorization: Bearer <access_token>`. A service account requires a carrier
contract. Its token can cover multiple services authorized for the account
and defaults to a one-hour lifetime. Five invalid login attempts trigger a
one-hour lockout; incorrect credentials or lockout return HTTP `401` with
`Bad credentials`.

## Posti pickup-point search and filters

POST JSON to `/pickuppoints` with `searchCriteria` and an optional top-level
integer `limit`. Address search uses `searchCriteria.location`; free text uses
`searchCriteria.searchText`; bounding-box search uses `searchCriteria.rectangle`.
The documented radius example nests `coordinates` and `radius` inside
`searchCriteria.location`; the schema also declares them under `searchCriteria`.

Set `searchCriteria.parcelLocker` to `true` for lockers. To exclude outdoor
lockers, put `"serviceFilters": {"outdoorLocker": false}` inside `searchCriteria`.
The reference gives the other service filters and optional headers.

Use `GET /pickuppoints/{id}` or `GET /pickuppoints/{countryCode}/{pupCode}`
for lookup. The country listing is `GET /pickuppoints/{countryCode}`; pass its
returned `pagingContinuationToken` as the same-named query parameter for the
next page. Search, listing, and single-point lookup all return `pickupPoints`.

## Posti estimates, occupancy, and labelless sending

Add top-level `extensions.estimate` to pickup-point search for delivery estimates.
It requires `time`, `origin` with `postcode` and `countryCode`, and `product`
with a string `code`. Read `pickupPoints[].extensions.estimate.time`.

For standalone estimates, POST `/estimate` with an `estimate` object containing
`time`, `origin`, `destination`, and `product`. Both locations require
`countryCode`. Read the nullable date-time from `estimates[].time`.

Add `"extensions": {"averageLockerOccupancyRate": true}` to pickup-point search.
Each point can return `extensions.averageLockerOccupancyRate` with nullable
string fields `averageRate` and `description`.

POST `/labelless` with `searchCriteria.trackingNumber` to request a sending code.
Optional `validation.noEdiCheck` is nullable and defaults to `false`.
Use `GET /labelless/{trackingNumber}` for an existing code, or
`GET /labelless/shipment/{sendingCode}` to find a shipment by code.
All three return `shipments` entries with `trackingNumber` and `sendingCode`.

## Posti shipment tracking

Shipment lookups use GET under `https://api.posti.fi` at `/tracking/7/shipments`.
Use `/trackingnumber/{trackingNumber}` for one tracking number, or
`/trackingnumbers/{trackingNumbers}` for comma-separated tracking numbers.
Both search parcel and freight tracking numbers. The reference lists other
identifier routes and keyword-search selectors.

Pagination uses `start` (default `0`) and `limit` (default `100`). According to
the prose, a page shorter than the requested limit indicates exhaustion;
a full page can have more results. Apply the pagination caveats above.

Results have separate `parcelShipments` and `freightShipments` arrays even for
single-identifier lookups. Select localized text by language key and allow
missing translations. Response properties have no required-field lists;
some, including `errandCode` and `senderLockerReservation`, are marked
`access: internal`.

For parcels, read primary state from `status.code`, return or customs progress
from `additionalStatus.code`, and classification from `expeditionType`.
Freight shipments use `waybillNumber`; individual package tracking numbers
and event histories are under `goodsItems[].packages[]`.
Phone searches, event-date searches, and reservation statistics are restricted.

Files in this skill

  • SKILL.md8.3 KB
  • coverage.json708 B
  • references/matkahuolto-pickup-points.md2.6 KB
  • references/matkahuolto-shipments.md5.6 KB
  • references/matkahuolto-tracking.md2.3 KB
  • references/posti-merchant-operations.md6.2 KB
  • references/posti-tracking-v7.md6.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.