AVB LINQ Public API

<back to all web services

SaleUpdatedAtRequest

Magento Sales

This service allows you to get sales based on updated date.

The following routes are available for this service:
GET, POST/sales/searchbyupdatedThe GET and POST methods of this service perform identically.
SaleUpdatedAtRequest Parameters:
NameParameterData TypeRequiredDescription
UpdatedStartDatebodyDateTime?YesGet orders based on whether the order was updated on/after this date.
UpdatedEndDatebodyDateTime?NoGet orders based on whether the order was updated on/before this date.
PagebodyintNoA positive integer - 0/1 will both return the first page. If not supplied, only the first page will be returned. If a page greater than the max page is specified, the max page will be returned.
SaleResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo
OrdersformList<MagentoOrder>No
MagentoOrder Parameters:
NameParameterData TypeRequiredDescription
entity_idformstringNo
statusformstringNo
customer_firstnameformstringNo
customer_middlenameformstringNo
customer_lastnameformstringNo
coupon_codeformObjectNo
shipping_descriptionformstringNo
customer_idformObjectNo
base_discount_amountformstringNo
base_grand_totalformstringNo
base_shipping_amountformstringNo
base_shipping_tax_amountformstringNo
base_subtotalformstringNo
base_tax_amountformstringNo
base_total_paidformObjectNo
base_total_refundedformObjectNo
discount_amountformstringNo
grand_totalformstringNo
shipping_amountformstringNo
shipping_tax_amountformstringNo
store_to_order_rateformstringNo
subtotalformstringNo
tax_amountformstringNo
total_paidformObjectNo
total_refundedformObjectNo
base_shipping_discount_amountformstringNo
base_subtotal_incl_taxformstringNo
base_total_dueformstringNo
shipping_discount_amountformstringNo
subtotal_incl_taxformstringNo
total_dueformstringNo
increment_idformstringNo
base_currency_codeformstringNo
discount_descriptionformstringNo
remote_ipformstringNo
store_currency_codeformstringNo
store_nameformstringNo
created_atformstringNo
updated_atformstringNo
shipping_incl_taxformstringNo
base_customer_balance_amountformstringNo
customer_balance_amountformstringNo
payment_methodformstringNo
gift_message_fromformObjectNo
gift_message_toformObjectNo
gift_message_bodyformObjectNo
tax_nameformstringNo
tax_rateformstringNo
store_codeformstringNo
addressesformList<Address>No
order_itemsformList<OrderItem>No
order_commentsformList<OrderComment>No
transaction_idformstringNo
cc_typeformstringNo
cc_exp_monthformint?No
cc_exp_yearformint?No
cc_last4formstringNo
cc_avs_statusformstringNo
cybersource_tokenformstringNo
cybersource_reconciliation_idformstringNo
cybersource_authorization_codeformstringNo
cybersource_merchant_reference_codeformstringNo
Address Parameters:
NameParameterData TypeRequiredDescription
regionformstringNo
postcodeformstringNo
lastnameformstringNo
streetformstringNo
cityformstringNo
emailformstringNo
telephoneformstringNo
country_idformstringNo
firstnameformstringNo
address_typeformstringNo
prefixformObjectNo
middlenameformObjectNo
suffixformObjectNo
companyformstringNo
OrderItem Parameters:
NameParameterData TypeRequiredDescription
item_idformstringNo
parent_item_idformObjectNo
skuformstringNo
nameformstringNo
qty_canceledformstringNo
qty_invoicedformstringNo
qty_orderedformstringNo
qty_refundedformstringNo
qty_shippedformstringNo
priceformstringNo
base_priceformstringNo
original_priceformstringNo
base_original_priceformstringNo
tax_percentformstringNo
tax_amountformstringNo
base_tax_amountformstringNo
discount_amountformstringNo
base_discount_amountformstringNo
row_totalformstringNo
base_row_totalformstringNo
price_incl_taxformstringNo
base_price_incl_taxformstringNo
row_total_incl_taxformstringNo
base_row_total_incl_taxformstringNo
OrderComment Parameters:
NameParameterData TypeRequiredDescription
is_customer_notifiedformstringNo
is_visible_on_frontformstringNo
commentformstringNo
statusformstringNo
created_atformstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /sales/searchbyupdated HTTP/1.1 
Host: avb-pos.avbportal.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"updatedStartDate":"0001-01-01T00:00:00.0000000","updatedEndDate":"0001-01-01T00:00:00.0000000","page":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}},"orders":[{}]}