summaryrefslogtreecommitdiff
path: root/src/lib/treckingAwb/api/getManifest.js
blob: 5523a16461967bcf668b5b71db0789629c5d878a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
const { default: odooApi } = require('@/core/api/odooApi');
const { getAuth } = require('@/core/utils/auth');

export const getManifest = async ({ id }) => {
  const auth = getAuth();
  const manifest = await odooApi(
    'GET',
    `/api/v1/partner/${auth.partnerId}/stock-picking/${id}/tracking`
  );

  return manifest;
};