AIM Web Services

<back to all web services

InvoiceDetailRequest

InvoiceDetail
Requires active-e Customer Service.

The following routes are available for this service:
GET/api/InvoiceDetail
InvoiceDetailRequest Parameters:
NameParameterData TypeRequiredDescription
Acctqueryint?No
InvoiceStartDatequeryDateTime?No
InvoiceEndDatequeryDateTime?No
StartOffsetqueryintegerNoThe Starting Offset. Defaults to 0 if not sent.
RecordCountqueryintegerNoThe # of records to be returned. Defaults to 100 if not sent.
AIMRefquerystringNoThe Invoice Ref# to be looked up. If sent, do not send WebRef, Acct, InvoiceStartDate, InvoiceEndDate, StartOffset, or RecordCount
WebRefquerystringNoThe WebRef to be looked up. If sent, do not send AIMRef, Acct, InvoiceStartDate, InvoiceEndDate, StartOffset, or RecordCount
BaseSecureRequest Parameters:
NameParameterData TypeRequiredDescription
TokenHeaderstringNo
DeviceIdHeaderstringNo
AppIdHeaderstringYes
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
ApiKeyheaderstringYesThis is your AIM API Key provided by Tri-Tech
OAuthTokenheaderstringNo
InvoiceDetailResponse Parameters:
NameParameterData TypeRequiredDescription
InvoicesformList<InvoiceInfo>No
RemainingRecordsformlongNo
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
StatusbodyBaseResponseResultNo
BaseResponseResult Parameters:
NameParameterData TypeRequiredDescription
StatusCodebodystringNo
LoginbodystringNo
ErrorCodebodystringNo
ErrorDisplayTextbodystringNo
ErrorMessagebodystringNo
DomainNamebodystringNo
IpAddressbodystringNo
InvoiceInfo Parameters:
NameParameterData TypeRequiredDescription
InvoiceNumberformstringNo
DateTimeformDateTimeNo
SoldToAcctformintNo
SoldToNameformstringNo
BillToAcctformintNo
BillToNameformstringNo
TypeformstringNo
POformstringNo
OriginalAmountformdecimalNo
BalanceformdecimalNo
LocationformstringNo
ShipToNameformstringNo
ShipToAddressformstringNo
ShipToIdformlong?No
LineItemsformList<InvoiceLineItem>No
PaymentsformList<InvoicePaymentItem>No
InvoiceLineItem Parameters:
NameParameterData TypeRequiredDescription
QuantityformdecimalNo
SkuformstringNo
DescriptionformstringNo
PriceEachformdecimalNo
ExtendedformdecimalNo
DiscountformdecimalNo
TotalformdecimalNo
OriginalRefformstringNo
NotesformstringNo
SourceformstringNo
InvoicePaymentItem Parameters:
NameParameterData TypeRequiredDescription
PayRefformstringNo
DateTimeformDateTimeNo
AmountformdecimalNo
NotesformstringNo
SourceformstringNo

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

HTTP + XML

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

GET /api/InvoiceDetail HTTP/1.1 
Host: active-ewebservice.biz 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<InvoiceDetailResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AIM.WebService">
  <Status>
    <DomainName>String</DomainName>
    <ErrorCode>String</ErrorCode>
    <ErrorDisplayText>String</ErrorDisplayText>
    <ErrorMessage>String</ErrorMessage>
    <IpAddress>String</IpAddress>
    <Login>String</Login>
    <StatusCode>String</StatusCode>
  </Status>
  <Invoices>
    <InvoiceInfo>
      <Balance>0</Balance>
      <BillToAcct>0</BillToAcct>
      <BillToName>String</BillToName>
      <DateTime>0001-01-01T00:00:00</DateTime>
      <InvoiceNumber>String</InvoiceNumber>
      <LineItems>
        <InvoiceLineItem>
          <Description>String</Description>
          <Discount>0</Discount>
          <Extended>0</Extended>
          <Notes>String</Notes>
          <OriginalRef>String</OriginalRef>
          <PriceEach>0</PriceEach>
          <Quantity>0</Quantity>
          <Sku>String</Sku>
          <Source>String</Source>
          <Total>0</Total>
        </InvoiceLineItem>
      </LineItems>
      <Location>String</Location>
      <OriginalAmount>0</OriginalAmount>
      <PO>String</PO>
      <Payments>
        <InvoicePaymentItem>
          <Amount>0</Amount>
          <DateTime>0001-01-01T00:00:00</DateTime>
          <Notes>String</Notes>
          <PayRef>String</PayRef>
          <Source>String</Source>
        </InvoicePaymentItem>
      </Payments>
      <ShipToAddress>String</ShipToAddress>
      <ShipToId>0</ShipToId>
      <ShipToName>String</ShipToName>
      <SoldToAcct>0</SoldToAcct>
      <SoldToName>String</SoldToName>
      <Type>String</Type>
    </InvoiceInfo>
  </Invoices>
  <RemainingRecords>0</RemainingRecords>
</InvoiceDetailResponse>