Koombiyo Delivery API Client for NodeJS written in TypeScript
$ npm install --save koombiyo-sdk
import { Koombiyo } from 'koombiyo-sdk';
Koombiyo.init(KOOMBIYO_API_KEY);
import { Koombiyo, Types } from 'koombiyo-sdk';
Koombiyo.AddNewOrder({
orderWaybillid: 123,
orderNo: 123,
receiverName: 'Kamal Perera',
receiverStreet: '123, Kohuwala, Nugegoda',
receiverDistrict: Types.KoombiyoDeliveryDistrictList.COLOMBO,
receiverCity: Types.KoombiyoDeliveryCityList.KOHUWALA,
receiverPhone: "0777123456",
description: "1 x USB Drive",
spclNote: '-',
getCod: 1000
})
.then(res => console.log('res', res))
.catch(err => console.error('err', err));
import { Koombiyo, Types } from 'koombiyo-sdk';
Koombiyo.AddPickupRequest({
vehicleType: Types.KoombiyoVehicleType.BIKE,
pickup_remark: '-',
pickup_address: '123, Kohuwala, Nugegoda',
phone: '0777123456',
qty: 1,
latitude: 6.872916,
longitude: 79.888634
})
.then(res => console.log('res', res))
.catch(err => console.error('err', err));
import { Koombiyo } from 'koombiyo-sdk';
const trackingURL = Koombiyo.GenerateTrackingURL(KOOMBIYO_WAYBILLID, DELIVERY_RECEIVER_PHONE_NO);
console.log('Tracking URL', trackingURL);
import { Koombiyo } from 'koombiyo-sdk';
Koombiyo.GetTrackOrderById(KOOMBIYO_WAYBILLID)
.then(res => console.log('res', res))
.catch(err => console.error('err', err));
import { Koombiyo } from 'koombiyo-sdk';
Koombiyo.GetAllOrdersTracking(PAGE, ITEMS_PER_PAGE)
.then(res => console.log('res', res))
.catch(err => console.error('err', err));
import { Koombiyo } from 'koombiyo-sdk';
Koombiyo.GetOrderHistory(KOOMBIYO_WAYBILLID)
.then(res => console.log('res', res))
.catch(err => console.error('err', err));
- Added Koombiyo City List Support
- Added Support for Order Tracking URL Generation
- Initial Release
Licensed under The MIT License (MIT)