AVB LINQ Public API

<back to all web services

SaleByIdRequest

Magento Sales
The following routes are available for this service:
GET/sales/{id}Gets a sale by Id
SaleByIdRequest Parameters:
NameParameterData TypeRequiredDescription
IdpathlongNo
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 .csv suffix or ?format=csv

HTTP + CSV

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

GET /sales/{id} HTTP/1.1 
Host: avb-pos.avbportal.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

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