diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2025-01-15 13:21:48 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2025-01-15 13:21:48 +0700 |
| commit | b9b4eb3ed751a69c023a45e7cdca8da01ae6b1cd (patch) | |
| tree | 081e67309f0b0a7795c685cf933caed23e52e296 /src/lib/merchant/api/createMerchantApi.js | |
| parent | 3692f937130e18cf396f5871d8a15bdd258bdd2b (diff) | |
<iman> update merchant
Diffstat (limited to 'src/lib/merchant/api/createMerchantApi.js')
| -rw-r--r-- | src/lib/merchant/api/createMerchantApi.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/merchant/api/createMerchantApi.js b/src/lib/merchant/api/createMerchantApi.js new file mode 100644 index 00000000..4c4f96ba --- /dev/null +++ b/src/lib/merchant/api/createMerchantApi.js @@ -0,0 +1,14 @@ +import odooApi from '@/core/api/odooApi'; +import { getAuth } from '@/core/utils/auth'; + +const createMerchantApi = async ({ data }) => { + const auth = getAuth(); + const lead = await odooApi( + 'POST', + `/api/v1/merchant/${auth.partnerId}`, + data + ); + return lead; +}; + +export default createMerchantApi; |
