Skip to content
Back to skills

Posti Matkahuolto Knowledge Patch

ASecurity

Posti / Matkahuolto

  • 25 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 5, 2026
developmentgotestingapidatabase

Works with

  • terminal
  • 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-nevaberry-plugins/badge)](https://www.skillsdirectory.com/skills/nevaberry-posti-matkahuolto-knowledge-patch-nevaberry-plugins)

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 integrating merchant access, pickup-point selection,
Matkahuolto shipments and labels, carrier tracking, or Posti delivery estimates
and labelless sending. Use the references for request examples, field mappings,
product codes, event codes, and error handling.

## Reference index

| Reference | Topics |
| --- | --- |
| [Matkahuolto Interface Hub and access](references/interface-hub-and-access.md) | Agreement, credentials, customer ID, support, test and production behavior |
| [Matkahuolto pickup points](references/matkahuolto-pickup-points.md) | Live or periodic lookup, XML requests, filters, returned types, CSV layout, errors |
| [Matkahuolto shipments and tracking](references/matkahuolto-shipments-and-tracking.md) | Removals, shipment operations, routing, payers, products, labels, parcels, customs, dangerous goods, tracking |
| [Posti merchant services](references/posti-merchant-services.md) | TLS change, gateway and service-account access, pickup points, estimates, occupancy, labelless codes |
| [Posti Tracking API v7](references/posti-tracking-v7.md) | Lookup, search keys, pagination, restrictions, localization, statuses, units, events, freight, reservations |

## Removals and compatibility changes

Matkahuolto shipment 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`.

The Posti 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 API v7 has documented schema and prose discrepancies:

- Both `keys` schemas encode the entire selector list as one enum value.
  Generated validators may reject the documented selector syntax.
- The schema permits `limit` values from 1 to 1000, while the prose states
  a hard cap of 100 shipments. Use limits of at most 100 when testing for
  the end of results.
- `combined=true` merges records for the same logical shipment; the spec
  warns that combining can produce incorrect results when paginating.

## Matkahuolto access and test behavior

A valid parcel-services agreement is required to integrate. Merchants with
an agreement request free testing and production API credentials through the
online form, which is also the route for requesting a customer ID.
Merchants with an agreement and customer ID can contact technical support
for user-interface or XML-interface questions; the access reference has the links.

The test endpoint returns replies in the expected format and leaves submitted
consignments unprocessed. Move to production by changing the endpoint URL.

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

## Matkahuolto pickup-point selection

Query the pickup-point API live or download its data periodically, for example
daily, into the store database for customer-facing selection.
POST an `MHSearchOfficesRequest` XML body to
`https://extservices.matkahuolto.fi/noutopistehaku/public/v2/searchoffices`.
Use `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` and accepts `StreetAddress`.
`Country` defaults to `FI`; the other defaults are `ResponseType=XML`,
`MaxResults=5`, and `Coordinates=N`. Set `Coordinates` to `Y` for coordinates.
For a known point, the documented ID-only request uses `<Id>8002</Id>` in the
same envelope, omits address fields, and returns a single office.

`OfficeType` supports locker, outdoor-locker, terminal, parcel-point,
safe-delivery, and limited-quantity dangerous-goods filters. An unrecognized
value returns all types. The reference gives every filter and returned type.
The office `Id` is used for shipment routing; `ShopId` is its internal code.
CSV samples preserve empty columns and use semicolon-delimited rows;
distance and coordinate examples use decimal commas.

## Matkahuolto shipment creation and routing

Post a raw `MHShipmentRequest` body as `text/xml` to
`https://extservices.matkahuolto.fi/mpaketti/mhshipmentxml`, or use the test URL
`https://extservicestest.matkahuolto.fi/mpaketti/mhshipmentxml`.
Put `UserId`, `Password`, and `Version` at the root before `Shipment` elements.
`UserId` is the account number without leading zeros. The v2.24 specification's
examples use wire `Version` `2.0`.

`ShipmentType` is `N` for normal (the documented default), `A` for activation-code
shipments, or `R` for returns. `MessageType` is `N` to create, `C` to change,
or `D` to delete. Leave `ShipmentNumber` blank on creation for service assignment.
Required shipment fields also include `Weight`, `Packages`, `SenderId`,
`ReceiverName1`, `ReceiverPostal`, `ReceiverCity`, and `ProductCode`.

Use `DD.MM.YYYY` for `ShipmentDate` and a decimal point for `Weight` in kg
and shipment-level `Volume` in m³. A shipment has a maximum of five parcels.
If supplying `ShipmentNumber`, add a `ShipmentRow` with the corresponding
`PackageId` for each parcel. The v2.24 table labels parcel-level `Volume`
with `kg`, leaving that field's intended unit unclear.

For pickup-point delivery, send the selected office's `Id` and `Name` as
`DestinationPlaceCode` and `DestinationPlaceName`. Put notification contacts
in `ReceiverContactNumber` and `ReceiverEmail`.
`PayerCode` selects `S`, `R`, or `O`; always supply the corresponding payer
account in `SenderId`, `ReceiverId`, or `PayerId`.

Send the numeric product code in `ProductCode`. Keep products `30`, `58`,
`81`, `91`, and `96` out of consumer checkout. The shipment reference provides
all product mappings and checkout names, plus separate pickup and delivery
payers, post-box routing, special handling, customs, and dangerous-goods rows.

## Matkahuolto labels and shipment replies

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

Read `ShipmentNumber` and `SenderReference` from each reply `Shipment`;
activation-code shipments also return `ActivationCode` inside that element.
Read `ErrorNbr` and `ErrorMsg` at reply level and inside any `Shipment` element.
For a delete (`MessageType=D`), the error-shaped reply with `ErrorNbr=0`
confirms success.

## Matkahuolto storefront tracking

A merchant can display carrier-provided tracking on its storefront.
Use HTTP Basic authentication with tracking credentials to GET
`https://extservices.matkahuolto.fi/mpaketti/public/tracking` for your own
shipments; the reference also gives the test URL.
Send up to ten comma-separated shipment or parcel identifiers in `ids`,
or supply at least one date-time bound, `from` or `to`.
A request without these selectors fails with HTTP 400.
XML is the default response; send `Accept: application/json` for JSON.

Preserve leading zeroes in event codes `02` and `08`. Distinguish delivery
to the point (`47`), receipt at the point (`48`), and readiness for customer
collection (`50`). A valid query with no matching events returns an empty result.

## Posti authentication

For API version 2026-04.0, use `https://gateway.posti.fi/2026-04`; support runs
through 2029-04-30. POST gateway credentials as form fields to
`https://gateway-auth.posti.fi/api/v1/token`, then send the returned token as
`Authorization: Bearer <access_token>` on gateway requests.

A service account requires a carrier contract. Its token endpoint takes the
account username and password via HTTP Basic, plus `grant_type=client_credentials`.
Use `https://oauth2.posti.com/oauth/token` in production and
`https://oauth2.barium.posti.com/oauth/token` for both QA and UAT.
A 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 an account lockout return HTTP `401` with `Bad credentials`.

## Posti pickup points, estimates, and labelless sending

POST JSON to `/pickuppoints` with `searchCriteria` and an optional top-level
integer `limit`. Search supports address, free text, bounding box, and radius.
The radius example puts `coordinates` and `radius` inside `searchCriteria.location`;
the schema also declares both directly under `searchCriteria`.
Set `searchCriteria.parcelLocker` to `true` for lockers. To exclude outdoor
lockers, put `"serviceFilters": {"outdoorLocker": false}` inside `searchCriteria`.

Search, listing, and single-point lookup all return a `pickupPoints` array.
For country-list pagination, pass the returned `pagingContinuationToken`
as a query parameter of the same name to fetch the next page.
Use `availability.openingHours` and `availability.exceptions` for hours,
or `availability.humanReadableOpeningHours` when supplied.

Add top-level `extensions.estimate` to search for each point's delivery estimate;
it requires `time`, `origin` with `postcode` and `countryCode`, and `product`
with a string `code`. Add `"extensions": {"averageLockerOccupancyRate": true}`
to request average locker occupancy; returned rate and description can be null.

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

POST `/labelless` with `searchCriteria.trackingNumber` to request a sending code.
Optional `validation.noEdiCheck` is a nullable boolean with declared default `false`.
Use `GET /labelless/{trackingNumber}` for an existing code, or
`GET /labelless/shipment/{sendingCode}` to look up a shipment by code.

## Posti tracking lookup and response handling

Tracking uses `https://api.posti.fi` with shipment lookups under
`/tracking/7/shipments`. The tracking spec declares OAuth 2.0 client credentials
with token URL `/tracking/oauth/token` on that host.
GET lookups support tracking numbers, references, order numbers, freight
waybills and goods-item IDs, parcel errand codes, and consignment numbers.

Use `GET /find/{keyword}` under the shipment prefix for one 3–60-character
keyword, or `GET /find` with the required `keywords` query array of 1–100 unique
strings. `keys` defaults to `all`; `!` excludes a key or group.
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.

Results have separate `parcelShipments` and `freightShipments` arrays, including
single-identifier lookups. Select localized text by language key and allow
missing translations. Response properties have no required-field lists;
some are explicitly marked `access: internal`.
For parcels, read primary state from `status.code`, return or customs progress
from `additionalStatus.code`, and classification from `expeditionType`.

Phone and event-date searches are marked restricted. The tracking reference
also covers restricted reservation statistics, measurement units, parcel and
freight statuses, event details, pickup and service points, monetary data,
and proof and advice of delivery links.

Files in this skill

  • SKILL.md9.5 KB
  • coverage.json707 B
  • references/interface-hub-and-access.md1.5 KB
  • references/matkahuolto-pickup-points.md1.9 KB
  • references/matkahuolto-shipments-and-tracking.md7.1 KB
  • references/posti-merchant-services.md6 KB
  • references/posti-tracking-v7.md6.4 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.