-
Notifications
You must be signed in to change notification settings - Fork 0
Order
Nicolas-B06 edited this page Feb 15, 2022
·
9 revisions
/src/api/order/index.js
getOrders(lang, postBody)
lang-string?: current language ("fr"is the default value) - OptionalpostBody-any: request body overload - Optional
Example
import { getOrders } from 'aquila-connector/api/order';
const orders = await getOrders();import { getOrders } from 'aquila-connector/api/order';
const orders = await getOrders(lang, { PostBody: { page: selectPage, limit: 15 } });getOrderById(orderId, lang)
orderId-string: id of orderlang-string?: current language ("fr"is the default value) - Optional
Example
import { getOrderById } from '@aquilacms/aquila-connector/api/order';
const data = await getOrderById(orderId, 'fr');downloadBillOrder(billId)
billId-string: Invoice / credit note ID
Example
import { downloadbillOrder } from '@aquilacms/aquila-connector/api/order';
const res = await downloadbillOrder(billId);askCancelOrder(orderId)
orderId-string: Order ID
Example
import { askCancelOrder} from '@aquilacms/aquila-connector/api/order';
const res = await askCancelOrder(orderId);