Order History
This API is offering to get list of Orders placed by respective Customer.
GET {{Base_url}}/rest/V1/orders?searchCriteria[filterGroups][][filters][][field]=customer_email&searchCriteria[filterGroups][0][filters][0][value]=qa@zrpl.co.in&searchCriteria[pageSize]=1&searchCriteria[currentPage]=1
Endpoint URL
{{Base_url}}/rest/V1/orders
This is the base endpoint for retrieving orders in Magento. It allows filtering and pagination via the searchCriteria query parameters.
Query Parameters
searchCriteria[filterGroups][][filters][][field]=customer_emailSpecifies that the filtering will be based on the
customer_emailfield in the orders database.This means the search is looking for orders associated with a specific customer email.
searchCriteria[filterGroups][0][filters][0][value]=qa@zrpl.co.inProvides the value for the
customer_emailfilter.In this case, it is looking for orders linked to the email
qa@zrpl.co.in.
searchCriteria[pageSize]=1Sets the number of results to be displayed per page.
Here, only 2 orders will be retrieved per page.
searchCriteria[currentPage]=1Specifies the current page of results to retrieve.
Here, it retrieves the first page of results.
Response
Root Level
itemsA list of orders retrieved based on the search criteria.
search_criteriaDefines the filters and parameters used to search for orders.
total_countThe total number of orders matching the search criteria.
Inside items (Order-Level Attributes)
items (Order-Level Attributes)applied_rule_idsIDs of promotion rules applied to the order.
base_currency_codeBase currency for the order (
INR= Indian Rupee).
base_discount_amountDiscount applied to the order in base currency. (Negative value indicates a discount.)
base_grand_totalFinal order total in base currency, including all discounts and taxes.
base_discount_tax_compensation_amountCompensation for taxes adjusted due to discounts, in base currency.
base_shipping_amountShipping charges for the order in base currency.
base_shipping_discount_amountDiscount applied to shipping, in base currency.
base_shipping_incl_taxTotal shipping cost inclusive of taxes in base currency.
base_tax_amountTotal tax applied to the order in base currency.
base_subtotalSubtotal of the order (product prices without tax or discounts) in base currency.
base_subtotal_incl_taxSubtotal of the order, inclusive of taxes, in base currency.
base_total_dueRemaining amount to be paid for the order in base currency.
base_to_global_rate/base_to_order_rateConversion rates between the base, global, and order currency.
billing_address_idID of the billing address associated with the order.
coupon_codeApplied coupon code for the order.
created_at/updated_atOrder creation and last updated timestamps.
customer_email/customer_firstname/customer_lastnameCustomer’s email and name.
customer_group_idID representing the group to which the customer belongs (e.g., retail, wholesale).
customer_is_guestIndicates if the order was placed by a guest (0 = registered, 1 = guest).
discount_amountTotal discount applied to the order (same as
base_discount_amount, in order currency).
discount_descriptionDescription of the discount applied (e.g., "UPI 2%").
entity_idUnique identifier for the order.
global_currency_code/order_currency_code/store_currency_codeCurrency codes for global, order, and store contexts.
grand_totalFinal total amount for the order in order currency.
increment_idOrder number, often used for display purposes.
is_virtualIndicates if the order contains virtual products only (1 = yes, 0 = no).
quote_idAssociated shopping cart ID for the order.
remote_ipIP address from which the order was placed.
shipping_descriptionDescription of the shipping method used.
state/statusCurrent state and status of the order (e.g.,
canceled,processing).
subtotal/subtotal_incl_taxSubtotal amount (excluding and including tax) in order currency.
tax_amountTotal tax applied to the order in order currency.
total_dueOutstanding amount in order currency.
total_item_countNumber of unique items in the order.
total_qty_orderedTotal quantity of all products in the order.
weightCombined weight of all products in the order.
x_forwarded_forProxy IP address if the order was placed via a proxy server.
Nested Levels
Inside items -> items (Order Items)
amount_refundedAmount refunded for the item.
base_price/priceUnit price of the item in base currency and order currency.
base_row_total/row_totalTotal price for the item (unit price × quantity) in base and order currency.
discount_percentPercentage discount applied to the item.
nameName of the product.
product_id/skuProduct ID and SKU.
qty_orderedQuantity of the item ordered.
original_priceOriginal price of the product before any discounts.
tax_percent/tax_amountTax percentage and tax amount applied to the item.
Inside items -> billing_address
address_typeType of address (e.g.,
billing).
city/postcode/regionBilling address city, postal code, and region.
streetStreet address (as a list for multi-line addresses).
telephoneCustomer’s phone number.
Inside items -> payment
methodPayment method used (e.g.,
cashfree).
amount_authorized/amount_orderedAuthorized and total order amounts.
additional_informationAdditional data related to the payment method (e.g.,
"Cashfree").
Inside items -> status_histories
statusHistorical statuses of the order (e.g.,
processing).
commentComments or notes on the status update.
Inside items -> extension_attributes
shipping_assignmentsDetails about shipping, including the shipping address and method.
payment_additional_infoAdditional information about payment (e.g.,
"method_title": "Cashfree").
mw_earn_points_dataEarned points data in loyalty programs.
Last updated