Get started
API Endpoint
https://api.versai.store/api/
The Versai API provides programmatic access to read data and Retrieve a Data, provide an oauth connexion, retrieve a, filter them, etc
To use this API, you need an API key. Please contact us at info@Versai.store/a> to get your own API key.
get Order
# Here is a curl example
curl -X 'GET' \
'https://api.versai.store/api/Order' \
-H 'accept: */*' \
-H 'Authorization: Bearer "secret_key"'
To get Order you need to make a Get call to the following url :
https://api.versai.store/api/Order
Result example :
{
"invoiceID": 4120,
"invoiceDate": "2024-11-01T00:00:00",
"paymentDate": "11/1/2024 7:57:45 PM",
"deliveryDate": null,
"orderId": 505,
"basket": [
{
"orderId": 505,
"quantitySale": 6,
"products": [
{
"productID": 54,
"productDeptID": 1002,
"productItemID": 70,
"productNameAr": "Silker زيت الحرير",
"productTextAr": "ملمع الشعر الفوري
\r\n\r\nيستخدم بعد الاستشوار او السيراميك ليمنح الشعر لمعانا ساحرا وبراقا
\r\n\r\nنكهة عطرية رائعة
\r\n\r\nيزيل التجعد ويقاوم الرطوبة.
\r\n\r\nالحجم 150 مل
\r\n\r\nصناعة ايطالية
\r\n",
"price": 40,
"currencyID": 1,
"productImage": "https://versai.store/ProductIamge/54.jpg"
}
]
}
],
"shippingID": 5176,
"shipping": [
{
"shippingID": 5176,
"emailAddress": "Eshmawy.aminah@gmail.com",
"fristName": "أمينة",
"lastName": "عشماوي",
"company": "",
"shippingAddress": "٤٥",
"partment": "فيلا",
"city": "جدة",
"countryID": 1,
"postOffice": "23523",
"phone": 537177222,
"typeShippingID": 0,
"keepData": true
}
],
"paymentMethodsID": 2,
"paymentMethods": [
{
"paymentMethodsID": 2,
"paymentMethodsName": "عبر البطاقة الائتمانية"
}
],
"statusID": 3,
"status": [
{
"statusID": 3,
"statusName": "قيد الشحن والاستلام"
}
],
"totalPrice": 240,
"currencyID": 1,
"currency": [
{
"currencyID": 1,
"currencyName": "RS"
}
]
}
Patch Order
# Here is a curl example
curl -X 'PATCH' \
'https://api.versai.store/api/Order/{orderId}' \
-H 'accept: */*' \
-H Note {When Use Postman Add on Header {Authorization}} 'Authorization: Bearer "secret_key"' \
-H 'Content-Type: application/json-patch+json' \
-d '[
{
"path": "statusID",
"op": "replace",
"value": "4"
}
]'
To Patch Order you need to make a Post call to the following url :
https://api.versai.store/api/Order/{OrderId}
And You Need Use {OrderId}"
And Use This Data on Order
[
{
"path": "statusID",
"op": "replace",
"value": "4"
}
]
After that Is Success!!
Result example :
{
"userID": 0,
"invoiceID": 4120,
"basketProductSaleID": 505,
"invoiceDate": "2024-11-01T00:00:00",
"paymentDate": "11/1/2024 7:57:45 PM",
"deliveryDate": null,
"shippingID": 5176,
"paymentMethodsID": 2,
"currencyID": 1,
"statusID": 4,
"totalPrice": 240,
"complatCancel": false,
"basket": null,
"status": null,
"paymentMethods": null,
"currency": null,
"shipping": null
}