@shopickup/adapters-foxpost
v0.0.7
Published
Foxpost shipping carrier adapter for Shopickup
Maintainers
Readme
@shopickup/adapters-foxpost
Foxpost adapter for Shopickup.
What it does
CREATE_PARCELCREATE_LABELTRACKLIST_PICKUP_POINTS
Pickup points use Foxpost's public feed and do not require credentials.
Install
pnpm add @shopickup/adapters-foxpost @shopickup/coreQuick start
import { FoxpostAdapter } from '@shopickup/adapters-foxpost';
import { executeCreateLabelFlow } from '@shopickup/core';
const adapter = new FoxpostAdapter('https://webapi.foxpost.hu');
const result = await executeCreateLabelFlow({
adapter,
shipment: {
id: 'order-001',
sender: { name: 'Shop', street: 'Main', city: 'Budapest', postalCode: '1011', country: 'HU' },
recipient: { name: 'Customer', street: 'Fo utca 2', city: 'Siofok', postalCode: '8600', country: 'HU' },
service: 'standard',
totalWeight: 1200,
createdAt: new Date(),
updatedAt: new Date(),
},
parcels: [{ id: 'parcel-1', weight: 1200 }],
credentials: { apiKey: 'your-foxpost-api-key' },
context: { http: yourHttpClient, logger: console },
});Status
Published as 0.x.x while the adapter API is still evolving.
