GET v1/Locations/{locationId}/Invoices/{invoiceNo}

Gets Invoice Information with Billing Details

Request Information

URI Parameters

NameDescriptionTypeAdditional information
locationId

The Id of the location

integer

Required

invoiceNo

The number of the invoice

string

Required

Body Parameters

None.

Response Information

Resource Description

InvoiceInformationDTO
NameDescriptionTypeAdditional information
CustomerId

integer

None.

Amount

decimal number

None.

BillingDetails

Collection of InvoiceDetailDTO

None.

Response Formats

application/json, text/json

Sample:
{
  "CustomerId": 1,
  "Amount": 2.0,
  "BillingDetails": [
    {
      "RecordId": "abe3a181-350b-4d45-be9d-353e9a4a0bdd",
      "Amount": 1.0,
      "BalanceDue": 2.0,
      "DueOn": "sample string 3",
      "PolicyID": 1,
      "TransactionDate": "sample string 4",
      "Description": "sample string 5"
    },
    {
      "RecordId": "abe3a181-350b-4d45-be9d-353e9a4a0bdd",
      "Amount": 1.0,
      "BalanceDue": 2.0,
      "DueOn": "sample string 3",
      "PolicyID": 1,
      "TransactionDate": "sample string 4",
      "Description": "sample string 5"
    }
  ]
}

application/xml, text/xml

Sample:
<InvoiceInformationDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects.Finance">
  <Amount>2</Amount>
  <BillingDetails>
    <InvoiceDetailDTO>
      <Amount>1</Amount>
      <BalanceDue>2</BalanceDue>
      <Description>sample string 5</Description>
      <DueOn>sample string 3</DueOn>
      <PolicyID>1</PolicyID>
      <RecordId>abe3a181-350b-4d45-be9d-353e9a4a0bdd</RecordId>
      <TransactionDate>sample string 4</TransactionDate>
    </InvoiceDetailDTO>
    <InvoiceDetailDTO>
      <Amount>1</Amount>
      <BalanceDue>2</BalanceDue>
      <Description>sample string 5</Description>
      <DueOn>sample string 3</DueOn>
      <PolicyID>1</PolicyID>
      <RecordId>abe3a181-350b-4d45-be9d-353e9a4a0bdd</RecordId>
      <TransactionDate>sample string 4</TransactionDate>
    </InvoiceDetailDTO>
  </BillingDetails>
  <CustomerId>1</CustomerId>
</InvoiceInformationDTO>