EMUN1 ASP.NET

<back to all web services

QueryInvoices

The following routes are available for this service:
All Verbs/service/QueryInvoices
QueryInvoices Parameters:
NameParameterData TypeRequiredDescription
SearchquerystringNo
InvoiceNumberquerystringNo
OrderNumberquerystringNo
DateRangequerystringNo
currentDatequeryDateTimeNo
clientDateTimequerystringNo
QueryBase Parameters:
NameParameterData TypeRequiredDescription
Skipformint?No
Takeformint?No
OrderByformstringNo
OrderByDescformstringNo
IncludeformstringNo
FieldsformstringNo
MetaformDictionary<string, string>No
InvoiceBase<TLine> Parameters:
NameParameterData TypeRequiredDescription
LinesformList<TLine>No
LineCountformintNo
QtyShippedformintNo
QtyOrderedformintNo
WeightformdoubleNo
CubicVolumeformdoubleNo
InvoiceBase Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
InvoiceNumberformstringNo
RetailerIdformstringNo
ShipIdformstringNo
OrderNumberformstringNo
StatusformstringNo
PONumberformstringNo
TransactionTypeformstringNo
DueDateformDateTimeNo
OrderDateformDateTimeNo
InvoiceDateformDateTimeNo
ShipOnformDateTimeNo
InvoiceTotalformdecimalNo
InvoiceBalanceformdecimalNo
OrderTotalformdecimalNo
TotalOrderformdecimalNo
TotalOrderAmountformdecimalNo
ActivationCodeformstringNo
TaxChargesformdecimalNo
AdditionalChargesformdecimalNo
TotalShippedformdecimalNo
TotalFreightformdecimalNo
TotalDiscountformdecimalNo
DaysPastDueformintNo
RevisionformintNo
Custom1formstringNo
Custom2formstringNo
CustomerPORefformstringNo
TagForformstringNo
CompanyNameformstringNo
BillAddressformstringNo
BillAddress2formstringNo
BillCityformstringNo
BillStateformstringNo
BillZipformstringNo
BillCountryformstringNo
BillPhoneformstringNo
BillNameformstringNo
BillingLocationformAddressInfoNo
ShippingLocationAddressformstringNo
ShippingLocationAddress2formstringNo
ShippingLocationCityformstringNo
ShippingLocationStateformstringNo
ShippingLocationZipformstringNo
ShippingLocationCountryformstringNo
ShippingLocationPhoneformstringNo
ShippingLocationNameformstringNo
SourceformstringNo
BuyerformstringNo
ShippingLocationformAddressInfoNo
PaymentTermsIdformstringNo
PaymentTermInvoiceformPaymentTermInvoiceNo
ShippingMethodIdformstringNo
ShippingMethodInvoiceformShippingMethodInvoiceNo
CreditCardTypeformstringNo
SalesRepIDformstringNo
SalesRepformSalesRepNo
WritingRepIDformstringNo
WritingRepformInvoiceWritingRepNo
RetailerEmailformstringNo
VendorIdformstringNo
VendorformVendorNo
SourceIdformstringNo
MessagesformIList<string>No
ParcelCountformintNo
MetaformDictionary<string, string>No
TagsformDictionary<string, HashSet<String>>No
EntityBase<K> Parameters:
NameParameterData TypeRequiredDescription
IdformKNo
AddressInfo Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
CompanyNameformstringNo
PersonNameformPersonNameInfoNo
AddressformstringNo
Address1formstringNo
Address2formstringNo
CityformstringNo
StateformstringNo
ZipformstringNo
CountryformstringNo
PhoneformstringNo
FaxformstringNo
EmailformstringNo
StoreSizeformstringNo
Custom2formstringNo
AccountTypeformstringNo
MetaformDictionary<string, string>No
PersonNameInfo Parameters:
NameParameterData TypeRequiredDescription
SalutationformstringNo
FirstformstringNo
MiddleformstringNo
LastformstringNo
SuffixformstringNo
FullformstringNo
PaymentTermInvoice Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
NameformstringNo
IsCreditformboolNo
IsStandardformboolNo
IsB2BformboolNo
ShippingMethodInvoice Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
NameformstringNo
IsStandardformboolNo
SalesRep Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
NameformstringNo
EmailformstringNo
InvoiceWritingRep Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
NameformstringNo
Vendor Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
LabelformstringNo
VendorNameformstringNo
AbbreviationformstringNo
OrderMinimumformdecimalNo
ReOrderMinimumformdecimalNo
MinimumBalanceformdecimalNo
ActiveformboolNo
IsInvoiceOnlyformboolNo
AllowPriceOverrideformboolNo
DefaultShipDatePreviousformboolNo
EnforceMinimumsformboolNo
EnforcePurchaseIncrementformboolNo
AllowDiscountsformboolNo
EmailOrdersformboolNo
AllowBackordersformboolNo
UseVendorCustIdformboolNo
UseVendorShipIdformboolNo
UseVendorTermsformboolNo
ExportReviewOrdersformboolNo
EmailUrlToExportformboolNo
IncludeInBatchformboolNo
DecryptCCOnExportformboolNo
CustomerNumberformstringNo
ExportOrdersformboolNo
SplitByProductLineformboolNo
IsShowroomVendorformboolNo
AllowManualItemEntryformboolNo
RequireCreditSheetformboolNo
AddressformstringNo
CityformstringNo
StateformstringNo
ZipformstringNo
PhoneformstringNo
FaxformstringNo
EmailformstringNo
WebsiteformstringNo
NoteformstringNo
CommissionPercentformdecimalNo
OrderTagLineformstringNo
ProductTagsformList<VendorProductTag>No
SettingsformList<VendorSetting>No
LastLoginAttemptformDateTimeNo
LastOrderedOnformDateTimeNo
MetaformDictionary<string, string>No
TagsformDictionary<string, HashSet<String>>No
VendorProductTag Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
TagformstringNo
VendorSetting Parameters:
NameParameterData TypeRequiredDescription
VendorIdformstringNo
KeyformstringNo
ValueformstringNo
InvoiceLineBase Parameters:
NameParameterData TypeRequiredDescription
InvoiceNumberformstringNo
PositionformintNo
ProductIdformstringNo
ProductformProductNo
DescriptionformstringNo
QtyOrderedformintNo
QtyShippedformintNo
QtyBackorderedformintNo
PriceformdecimalNo
ListPriceformdecimalNo
NotesformstringNo
UOMformstringNo
VendorIdformstringNo
LineTotalformdecimalNo
ExtendedTotalformdecimalNo
MetaformDictionary<string, string>No
Product Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
ProductLineIdformstringNo
ManufacturerNumberformstringNo
ShortDescriptionformstringNo
LongDescriptionformstringNo
AltDescriptionformstringNo
UpcCodeformstringNo
StatusformstringNo
PricingformIDictionary<int, double>No
ListPriceformdecimalNo
WholesalePriceformdecimalNo
RetailPriceformdecimal?No
RetailListPriceformdecimalNo
UnitsInStockformintNo
CategoryIdformstringNo
MinimumOrderQtyformdoubleNo
AvailableQtyformdoubleNo
AvailableOnformDateTime?No
IncomingQtyformdoubleNo
PurchaseIncrementformdoubleNo
OptionGroupformstringNo
OptionGroupListformstringNo
VendorIdformstringNo
ItemTypeformstringNo
ImageUrlformstringNo
OnDemandProductEuidformstringNo
KeywordsformstringNo
SuperCategoryformstringNo
IsNewformboolNo
IsRestrictedformboolNo
CreatedOnformDateTimeNo
WeightformdoubleNo
HeightformdecimalNo
LengthformdecimalNo
CubicVolumeformdoubleNo
CostformdecimalNo
UOMformstringNo
SubCategoryformstringNo
ShipOnformDateTime?No
FeaturedformintNo
QueryResponse<T> Parameters:
NameParameterData TypeRequiredDescription
OffsetformintNo
TotalformintNo
ResultsformList<T>No
MetaformDictionary<string, string>No
ResponseStatusformResponseStatusNo

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 /service/QueryInvoices HTTP/1.1 
Host: www.bernhardthospitality.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"search":"String","invoiceNumber":"String","orderNumber":"String","dateRange":"String","currentDate":"0001-01-01T00:00:00.0000000Z","clientDateTime":"String","skip":0,"take":0,"orderBy":"String","orderByDesc":"String","include":"String","fields":"String","meta":{"String":"String"}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"offset":0,"total":0,"results":[{"lines":[{"invoiceNumber":"String","position":0,"productId":"String","product":{"id":"String","productLineId":"String","manufacturerNumber":"String","shortDescription":"String","longDescription":"String","altDescription":"String","upcCode":"String","status":"String","listPrice":0,"wholesalePrice":0,"retailPrice":0,"retailListPrice":0,"unitsInStock":0,"categoryId":"String","minimumOrderQty":0,"availableQty":0,"availableOn":"0001-01-01T00:00:00.0000000Z","incomingQty":0,"purchaseIncrement":0,"optionGroup":"String","optionGroupList":"String","vendorId":"String","itemType":"String","imageUrl":"String","onDemandProductEuid":"String","keywords":"String","superCategory":"String","isNew":false,"isRestricted":false,"createdOn":"0001-01-01T00:00:00.0000000Z","weight":0,"height":0,"length":0,"cubicVolume":0,"cost":0,"uom":"String","subCategory":"String","shipOn":"0001-01-01T00:00:00.0000000Z","featured":0},"description":"String","qtyOrdered":0,"qtyShipped":0,"qtyBackordered":0,"price":0,"listPrice":0,"notes":"String","uom":"String","vendorId":"String","lineTotal":0,"extendedTotal":0,"meta":{"String":"String"}}],"lineCount":1,"qtyShipped":0,"qtyOrdered":0,"weight":0,"cubicVolume":0,"id":"String","invoiceNumber":"String","retailerId":"String","shipId":"String","orderNumber":"String","status":"String","poNumber":"String","transactionType":"String","dueDate":"0001-01-01T00:00:00.0000000Z","orderDate":"0001-01-01T00:00:00.0000000Z","invoiceDate":"0001-01-01T00:00:00.0000000Z","shipOn":"0001-01-01T00:00:00.0000000Z","invoiceTotal":0,"invoiceBalance":0,"orderTotal":0,"totalOrder":0,"totalOrderAmount":0,"activationCode":"String","taxCharges":0,"additionalCharges":0,"totalShipped":0,"totalFreight":0,"totalDiscount":0,"daysPastDue":0,"revision":0,"custom1":"String","custom2":"String","customerPORef":"String","tagFor":"String","companyName":"String","billAddress":"String","billAddress2":"String","billCity":"String","billState":"String","billZip":"String","billCountry":"String","billPhone":"String","billName":"String","billingLocation":{"id":"String","companyName":"String","personName":{"salutation":"","first":"String","middle":"","last":"","suffix":"","full":"String"},"address":"String","address1":"String","address2":"String","city":"String","state":"String","zip":"String","country":"String","meta":{}},"shippingLocationAddress":"String","shippingLocationAddress2":"String","shippingLocationCity":"String","shippingLocationState":"String","shippingLocationZip":"String","shippingLocationCountry":"String","shippingLocationPhone":"String","shippingLocationName":"String","source":"String","buyer":"String","shippingLocation":{"id":"String","companyName":"String","personName":{"salutation":"","first":"String","middle":"","last":"","suffix":"","full":"String"},"address":"String","address1":"String","address2":"String","city":"String","state":"String","zip":"String","country":"String","meta":{}},"paymentTermsId":"String","paymentTermInvoice":{"id":"String","name":"String","isCredit":false,"isStandard":false,"isB2B":false},"shippingMethodId":"String","shippingMethodInvoice":{"id":"String","name":"String","isStandard":false},"creditCardType":"String","salesRepID":"String","salesRep":{"id":"String","name":"String","email":"String"},"writingRepID":"String","writingRep":{"id":"String","name":"String"},"retailerEmail":"String","vendorId":"String","vendor":{"id":"String","label":"String","vendorName":"String","abbreviation":"String","orderMinimum":0,"reOrderMinimum":0,"minimumBalance":0,"active":false,"isInvoiceOnly":false,"allowPriceOverride":false,"defaultShipDatePrevious":false,"enforceMinimums":false,"enforcePurchaseIncrement":false,"allowDiscounts":false,"emailOrders":false,"allowBackorders":false,"useVendorCustId":false,"useVendorShipId":false,"useVendorTerms":false,"exportReviewOrders":false,"emailUrlToExport":false,"includeInBatch":false,"decryptCCOnExport":false,"customerNumber":"String","exportOrders":false,"splitByProductLine":false,"isShowroomVendor":false,"allowManualItemEntry":false,"requireCreditSheet":false,"address":"String","city":"String","state":"String","zip":"String","phone":"String","fax":"String","email":"String","website":"String","note":"String","commissionPercent":0,"orderTagLine":"String","productTags":[{"id":"String","tag":"String"}],"settings":[{"vendorId":"String","key":"String","value":"String"}],"lastLoginAttempt":"0001-01-01T00:00:00.0000000Z","lastOrderedOn":"0001-01-01T00:00:00.0000000Z","meta":{"String":"String"},"tags":{"String":["String"]}},"sourceId":"String","parcelCount":0,"meta":{"String":"String"},"tags":{"String":["String"]}}],"meta":{"String":"String"},"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}