Repository navigation
v0.1.11 — Maystro track, list, cancel and PDF labels
Added
- Maystro:
track(order + status history fromhistory_order),listParcels(GET /api/stores/orders/, 20 per page,status/orderId/keyword/updatedSincefiltered client-side) andcancelParcel(PATCH /api/shared/status/{id}/, status50), in TypeScript and PHP.trackandcancelParceltake the order id (Parcel.id) or the tracking number (the orderdisplay_id). They used to throwNOT_SUPPORTED: these endpoints are in Maystro's docs. Checked live on a test account (create → track → cancel → track, list, unknown references). - Maystro extra
getLabels(references)onMaystroProvider: the shipping labels (bordereaux) of up to 100 orders as one PDF (starter_bordureau, by tracking number or by order id), withlabelCount; no order found →NOT_FOUND. Checked live. HttpClientcan return a binary body:responseType: 'binary'(TS) andrequestBinary()(PHP).- README: feature matrix (which function each carrier supports).
Upgrading
Additive release: Maystro's track, listParcels and cancelParcel no longer throw NOT_SUPPORTED; everything else behaves as before. ^0.1.x (npm / Composer) picks it up.
Install
npm install @dz-delivery/core # TypeScript / Node.js
composer require dz-delivery/sdk # PHP / Laravel📖 Docs: https://developing-off.github.io/dz-delivery/ · Guide: Maystro