diff options
Diffstat (limited to 'src/lib/transaction/api/checkoutPoApi.js')
| -rw-r--r-- | src/lib/transaction/api/checkoutPoApi.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/transaction/api/checkoutPoApi.js b/src/lib/transaction/api/checkoutPoApi.js new file mode 100644 index 00000000..04421368 --- /dev/null +++ b/src/lib/transaction/api/checkoutPoApi.js @@ -0,0 +1,13 @@ +import odooApi from '@/core/api/odooApi' +import { getAuth } from '@/core/utils/auth' + +const checkoutPoApi = async ({ id }) => { + const auth = getAuth() + const dataCheckout = await odooApi( + 'POST', + `/api/v1/partner/${auth?.partnerId}/sale_order/${id}/checkout` + ) + return dataCheckout +} + +export default checkoutPoApi |
