blob: 110295b71b7ba32f87870f225ed21f278d2316e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
import odooApi from '@/core/api/odooApi';
import axios from 'axios';
import biteShipAPI from '../../../core/api/biteShip';
const ExpedisiList = async () => {
const dataExpedisi = await odooApi('GET', '/api/v1/courier');
return dataExpedisi;
};
const GetRatesCourierBiteship = async ({ destination, items }) => {
const couriers = process.env.NEXT_PUBLIC_BITESHIP_CODE_COURIERS;
let body = {
destination,
couriers: couriers,
items
};
const featch = await biteShipAPI('POST', '/v1/rates/couriers', body);
return featch;
};
export { GetRatesCourierBiteship, ExpedisiList} ;
|