summaryrefslogtreecommitdiff
path: root/src/lib/transaction/api/airwayBillApi.js
blob: 1ef579c761814bc672ecb5be9601119d1ee3a993 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import odooApi from '@/core/api/odooApi'
import { getAuth } from '@/core/utils/auth'

const airwayBillApi = async ({ orderId }) => {
  const auth = getAuth()
  const dataAirwayBill = await odooApi(
    'GET',
    `/api/v1/partner/${auth.partnerId}/sale-order/${orderId}/awb`
  )
  return dataAirwayBill
}

export default airwayBillApi