GET api/Customer/GetAttachments/{id}?pageIndex={pageIndex}&pageSize={pageSize}

Gets a list of all Customers. Pagination is supported.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

customer id

integer

Required

pageIndex

integer

None.

pageSize

integer

None.

Body Parameters

None.

Response Information

Resource Description

GetCustomerAttachmentsResult
NameDescriptionTypeAdditional information
PagedAttachments

A page with Customer rows.

CustomerAttachmentRow

None.

Response Formats

application/json, text/json

Sample:
{
  "PagedAttachments": {
    "PageIndex": 1,
    "PageSize": 10,
    "TotalItems": 1,
    "TotalPages": 1,
    "Items": [
      {
        "Id": 1,
        "ContentType": "text/plain",
        "FileName": "file.txt",
        "ContentLength": 1200
      }
    ]
  }
}

application/xml, text/xml

Sample:
<GetCustomerAttachmentsResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.Results">
  <PagedAttachments>
    <Items>
      <GetCustomerAttachmentsResult.CustomerAttachmentRow>
        <ContentLength>1200</ContentLength>
        <ContentType>text/plain</ContentType>
        <FileName>file.txt</FileName>
        <Id>1</Id>
      </GetCustomerAttachmentsResult.CustomerAttachmentRow>
    </Items>
    <PageIndex>1</PageIndex>
    <PageSize>10</PageSize>
    <TotalItems>1</TotalItems>
    <TotalPages>1</TotalPages>
  </PagedAttachments>
</GetCustomerAttachmentsResult>