# Evaly Core Order Module Public V2 API's
```
<core_base_url> == https://api-beta.evaly.com.bd/core
```
### End Points
## Order History
* **<core_base_url>/v2/orders/histories/:invoice_no/**
```
requested_url:
<core_base_url>/v2/orders/histories/EVL665108553/
request_method--GET
--header
Authorization: bearer {token}
No Request Body requierd.
Example Response Body:
{
"success": true,
"data": {
"invoice_no": "EVL665108553",
"order_status": "cancel",
"histories": [
{
"date": "2021-07-08T10:41:59.373460Z",
"order_status": "cancel",
"payment_status": "refund_requested",
"note": "Tk. 10.00 refund requested to Evaly Pay by - customer"
},
{
"date": "2021-07-08T10:41:59.135922Z",
"order_status": "cancel",
"payment_status": "partial",
"note": "Customer Canceled the order. - ishak"
},
{
"date": "2021-07-07T15:55:01.153266Z",
"order_status": "pending",
"payment_status": "partial",
"note": "Tk. 10.0 (SSLCommerz Gateway) payment received by Evaly Pay from customer"
},
{
"date": "2021-07-07T15:54:20.732721Z",
"order_status": "pending",
"payment_status": "unpaid",
"note": "Thank you for placing your order at Evaly. We will start processing your order after payment is complete - Evaly"
},
{
"date": "2021-07-07T15:54:20.667969Z",
"order_status": "pending",
"payment_status": "unpaid",
"note": "<a href=\"/about/purchasing-policy\">Purchasing Policy</a> and <a href=\"/about/terms-conditions\">Terms & Conditions</a> accepted. EVL665108553 has been marked as <strong>Pending<strong> by - customer"
}
]
}
}
```
## Change Delivery Address
* **<core_base_url>/v2/orders/delivery-address/update/**
```
request_method--POST
--header
Authorization: bearer {token}
Example Request Body:
{
"invoice_no":"EVL751801955",
"address":"East Farider Para, Chandgaon, Chittagong",
"note":"for v2 test",
}
Example Response Body:
{
"success": true,
"message": "Delivery address updated successfully",
"data": {
"id": 6123,
"invoice_no": "EVL751801955",
"order_items": [
{
"id": 7257,
"shop_item": 8682,
"quantity": 1,
"item_name": "Perfume",
"variations": [],
"order_item_status": "pending",
"order_time_price": "500.00",
"product_slug": "perfume-4ec9b9157",
"item_images": [
"https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/76fdbfd566c1-img_3574_resize.jpg"
]
}
],
"customer": {
"id": 3,
"username": "01977537988",
"first_name": "The",
"last_name": "Zinda",
"email": "ishak@evaly.com.bd",
"gender": "male",
"verified": true,
"is_active": true
},
"customer_address": "East Farider Para, Chandgaon, Chittagong",
"contact_number": "01521200079",
"shop": {
"name": "Vision for T10 Campaign Shop",
"logo_image": "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvMjg2OTg3YWJkNjgwLXZpc2lvbi5wbmciLCAiZWRpdHMiOiB7InJlc2l6ZSI6IHsid2lkdGgiOiAyNTAsICJoZWlnaHQiOiAyNTAsICJmaXQiOiAiY29udGFpbiIsICJiYWNrZ3JvdW5kIjogeyJyIjogMCwgImciOiAwLCAiYiI6IDAsICJhbHBoYSI6IDB9fSwgInBuZyI6IHsiYWRhcHRpdmVGaWx0ZXJpbmciOiB0cnVlLCAicHJvZ3Jlc3NpdmUiOiB0cnVlLCAiZm9yY2UiOiB0cnVlfX19",
"slug": "vision-for-t10-campaign-shop",
"approved": true,
"contact_number": "01977537988",
"is_delivery_hero_allowed": false,
"is_cod_allowed": false,
"image": "https://df17fp68uwcso.cloudfront.net/eyJidWNrZXQiOiAibWVkaWEuZXZhbHkuY29tLmJkIiwgImtleSI6ICJtZWRpYS9pbWFnZXMvOWFlYmFhZTY5NDAzLXZpc2lvbi1yZmwtYnJhbmQuanBnIiwgImVkaXRzIjogeyJyZXNpemUiOiB7IndpZHRoIjogOTAwLCAiaGVpZ2h0IjogMzUwLCAiZml0IjogImZpbGwifSwgImpwZWciOiB7InF1YWxpdHkiOiA3NX19fQ==",
"address": "Evaly.com.bd, House #8 1st Floor, Road: 14, Dhaka 1209, Bangladesh",
"owner_name": "01977537988"
},
"order_status": "pending",
"payment_method": "",
"payment_status": "unpaid",
"total": "500.00",
"subtotal": "500.00",
"paid_amount": "0.00",
"status": "active",
"date": "2021-07-08T06:26:44.752308Z",
"shop_groups": [],
"delivery_confirmed": false,
"delivery_confirmation_required": false,
"campaign_rules": [
{
"id": 191,
"name": "Vision for T10",
"slug": "vision-for-t10-c2ee47",
"image": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/e2f72bd8d228-vision.png",
"banner_image": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/e0810bbdbd67-square-group.jpg",
"description": "[\"Only new payment is applicable for the Evaly T10 Campaign.\",\"All payments can be made using Regular Gateway Services or through bKash Merchant Account (01704169596) of Evaly and Nagad.\",\"Several orders can be placed for products from the same category using every unique customer account. Delivery of more than one ordered product will be confirmed upon availability of stock.\",\"10% partial payment is allowed for this campaign. Customers has to pay rest 90% on Payment on Delivery method.\",\"Products will be ready to ship more or less 10 days from day of paying initial 10% and will be delivered within 48 hours after paying rest 90%.\",\"If sellers fail to send or prepare goods in 10 days, customers can claim the refund or may agreed to wait for the products or services to be ready to ship.\",\"The Terms & Conditions constitute a legally bound understanding/agreement between the Customer and E-valy.com Limited. Please carefully read the above mentioned Terms & Conditions carefully before registering with us and/or using any of our services. By accepting it will be considered as the customer has agreed to be bound by the policies whenever accessing and browsing Evaly website and using the services. The customer will need to register own Evaly account to avail any service and/or offerings, and is required to be logged in to the account and have a valid payment method associated with it. Any breach of the Terms & Conditions will immediately effect as a prohibition on continuing to use Evaly website for further services. Evaly reserves the right to modify, extend, suspend, remove, disable or impose access restrictions or limits on any of the policies at any time without notice or liability; also the right to reject or cancel any order placed with Evaly, and/or to limit quantities on any order, without giving any reason. These restrictions may include the orders placed using the same Evaly account, the same payment method or orders that use the same billing or shipping address.\"]",
"start_date": "2021-05-31T18:00:00Z",
"end_date": "2022-11-29T18:00:00Z",
"promotion_start_date": "2021-05-29T18:00:00Z",
"promotion_end_date": "2023-04-07T18:00:00Z",
"created_at": "2021-06-30T08:05:05.984100Z",
"created_by": {
"first_name": "Ishak",
"last_name": "Ahammed",
"username": "ishak"
},
"modified_at": "2021-07-06T15:28:23.811530Z",
"modified_by": {
"first_name": "Ishak",
"last_name": "Ahammed",
"username": "ishak"
},
"cashback_destination": "balance",
"cashback_percentage": "100.00",
"cashback_on_payment_by": "bkash,nagad,sebl_gateway,citybank_gateway,sslcommerz_gateway,balance,bank,gift_code",
"cashback_type": "instant",
"cashback_date": null,
"cashback_backoff_period": null,
"allowed_payment_methods": "bkash,nagad,sebl_gateway,upay_gateway,citybank_gateway,sslcommerz_gateway,balance,bank,gift_code",
"category": {
"name": "T10 Campaign",
"slug": "t10-campaign-2bc39828",
"banner_image": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/ba5cb7cf145d-square-group.jpg",
"image": "https://s3-ap-southeast-1.amazonaws.com/media.evaly.com.bd/media/images/68afc125c18b-3bb50349-f968-4f08-8967-958dfb9b1a26.jpeg",
"description": "T10 Campaign, T10 Campaign, T10 Campaign",
"banner_primary_bg_color": "#1111",
"banner_secondary_bg_color": "B",
"banner_header_text": "T10 By Default",
"banner_header_text_color": "#d00000",
"banner_sub_text": "Hello",
"banner_sub_text_color": "#12130f",
"status": "active",
"modified_at": "2021-06-30T08:02:40.707641Z",
"modified_by": {
"first_name": "Ishak",
"last_name": "Ahammed",
"username": "ishak"
},
"created_at": "2021-06-30T08:02:40.707604Z",
"created_by": {
"first_name": "Ishak",
"last_name": "Ahammed",
"username": "ishak"
},
"score": 5000
},
"score": 4994,
"purchase_score_enabled": false,
"purchase_score_type": null,
"purchase_score_terms": null,
"min_order_quantity": null,
"min_order_amount": null,
"max_order_quantity": null,
"max_order_amount": null,
"edit_before": null,
"campaign_status": "live",
"applied_on": "shop"
}
],
"is_express_order": false,
"express_service_details": null,
"customer_note": "100.00% cashback available for Bkash, Nagad, Sebl_gateway, Citybank_gateway, Sslcommerz_gateway, Balance, Bank and Gift_code payments. Cashback can be claimed instantly",
"last_update": "2021-07-08T15:30:26.869381Z",
"allowed_payment_methods": [
"bkash",
"nagad",
"sebl_gateway",
"upay_gateway",
"citybank_gateway",
"sslcommerz_gateway",
"balance",
"bank",
"gift_code"
],
"apply_delivery_charge": false,
"delivery_charge": null,
"attachments": [],
"is_delivery_hero_allowed": false,
"payment_offer_selected": "nagad_discount",
"maintain_by": null
}
}
```
## Confirm Delivery
* **<core_base_url>/v2/orders/confirm/delivery**
```
request_method--POST
--header
Authorization: bearer {token}
Example Request Body:
{
"invoice_no":"EVL027799403"
}
Example Response Body:
{
"success": true,
"message": "Delivery confirmed"
}
```