GET api/Gadget/GetSentDocuments?accountId={accountId}&ReceiverCode={ReceiverCode}&Number={Number}&DateFrom={DateFrom}&DateTo={DateTo}&Count={Count}

Return the list of issued documents where the account has access to.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
accountId

globally unique identifier

Required

ReceiverCode

string

Required

Number

integer

Required

DateFrom

date

Required

DateTo

date

Required

Count

integer

Default value is 500

Body Parameters

Collection of integer

Request Formats

application/json, text/json

Sample:
[
  1,
  2
]

application/xml, text/xml

Sample:
<ArrayOfint xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <int>1</int>
  <int>2</int>
</ArrayOfint>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Int32[]'.

Response Information

Resource Description

Collection of Document
NameDescriptionTypeAdditional information
DocumentId

globally unique identifier

None.

SenderId

globally unique identifier

None.

ReceiverId

globally unique identifier

None.

DocumentTypeId

integer

None.

DocumentTypeName

string

None.

Number

integer

None.

Series

string

None.

SenderCode

string

None.

SenderName

string

None.

ReceiverCode

string

None.

ReceiverName

string

None.

Date

date

None.

NetAmount

decimal number

None.

TaxAmount

decimal number

None.

FreeAmount

decimal number

None.

TotalAmount

decimal number

None.

CurrencyTypeId

integer

None.

CurrencyTypeName

string

None.

HasOffers

boolean

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "DocumentId": "57d8a8e1-390a-49fb-be9c-071c2948d5aa",
    "SenderId": "917c1c20-a556-4175-a724-f66cc5546def",
    "ReceiverId": "3be007df-7031-466e-a8f4-cde697de48c8",
    "DocumentTypeId": 4,
    "DocumentTypeName": "sample string 5",
    "Number": 6,
    "Series": "sample string 7",
    "SenderCode": "sample string 8",
    "SenderName": "sample string 9",
    "ReceiverCode": "sample string 10",
    "ReceiverName": "sample string 11",
    "Date": "2024-11-01T18:19:47.9630048+00:00",
    "NetAmount": 13.0,
    "TaxAmount": 14.0,
    "FreeAmount": 15.0,
    "TotalAmount": 16.0,
    "CurrencyTypeId": 1,
    "CurrencyTypeName": "sample string 17",
    "HasOffers": true
  },
  {
    "DocumentId": "57d8a8e1-390a-49fb-be9c-071c2948d5aa",
    "SenderId": "917c1c20-a556-4175-a724-f66cc5546def",
    "ReceiverId": "3be007df-7031-466e-a8f4-cde697de48c8",
    "DocumentTypeId": 4,
    "DocumentTypeName": "sample string 5",
    "Number": 6,
    "Series": "sample string 7",
    "SenderCode": "sample string 8",
    "SenderName": "sample string 9",
    "ReceiverCode": "sample string 10",
    "ReceiverName": "sample string 11",
    "Date": "2024-11-01T18:19:47.9630048+00:00",
    "NetAmount": 13.0,
    "TaxAmount": 14.0,
    "FreeAmount": 15.0,
    "TotalAmount": 16.0,
    "CurrencyTypeId": 1,
    "CurrencyTypeName": "sample string 17",
    "HasOffers": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfDocument xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gosocket.SDK.Domain">
  <Document>
    <_x003C_CurrencyTypeId_x003E_k__BackingField>1</_x003C_CurrencyTypeId_x003E_k__BackingField>
    <_x003C_CurrencyTypeName_x003E_k__BackingField>sample string 17</_x003C_CurrencyTypeName_x003E_k__BackingField>
    <_x003C_Date_x003E_k__BackingField>2024-11-01T18:19:47.9630048+00:00</_x003C_Date_x003E_k__BackingField>
    <_x003C_DocumentId_x003E_k__BackingField>57d8a8e1-390a-49fb-be9c-071c2948d5aa</_x003C_DocumentId_x003E_k__BackingField>
    <_x003C_DocumentTypeId_x003E_k__BackingField>4</_x003C_DocumentTypeId_x003E_k__BackingField>
    <_x003C_DocumentTypeName_x003E_k__BackingField>sample string 5</_x003C_DocumentTypeName_x003E_k__BackingField>
    <_x003C_FreeAmount_x003E_k__BackingField>15</_x003C_FreeAmount_x003E_k__BackingField>
    <_x003C_HasOffers_x003E_k__BackingField>true</_x003C_HasOffers_x003E_k__BackingField>
    <_x003C_NetAmount_x003E_k__BackingField>13</_x003C_NetAmount_x003E_k__BackingField>
    <_x003C_Number_x003E_k__BackingField>6</_x003C_Number_x003E_k__BackingField>
    <_x003C_ReceiverCode_x003E_k__BackingField>sample string 10</_x003C_ReceiverCode_x003E_k__BackingField>
    <_x003C_ReceiverId_x003E_k__BackingField>3be007df-7031-466e-a8f4-cde697de48c8</_x003C_ReceiverId_x003E_k__BackingField>
    <_x003C_ReceiverName_x003E_k__BackingField>sample string 11</_x003C_ReceiverName_x003E_k__BackingField>
    <_x003C_SenderCode_x003E_k__BackingField>sample string 8</_x003C_SenderCode_x003E_k__BackingField>
    <_x003C_SenderId_x003E_k__BackingField>917c1c20-a556-4175-a724-f66cc5546def</_x003C_SenderId_x003E_k__BackingField>
    <_x003C_SenderName_x003E_k__BackingField>sample string 9</_x003C_SenderName_x003E_k__BackingField>
    <_x003C_Series_x003E_k__BackingField>sample string 7</_x003C_Series_x003E_k__BackingField>
    <_x003C_TaxAmount_x003E_k__BackingField>14</_x003C_TaxAmount_x003E_k__BackingField>
    <_x003C_TotalAmount_x003E_k__BackingField>16</_x003C_TotalAmount_x003E_k__BackingField>
  </Document>
  <Document>
    <_x003C_CurrencyTypeId_x003E_k__BackingField>1</_x003C_CurrencyTypeId_x003E_k__BackingField>
    <_x003C_CurrencyTypeName_x003E_k__BackingField>sample string 17</_x003C_CurrencyTypeName_x003E_k__BackingField>
    <_x003C_Date_x003E_k__BackingField>2024-11-01T18:19:47.9630048+00:00</_x003C_Date_x003E_k__BackingField>
    <_x003C_DocumentId_x003E_k__BackingField>57d8a8e1-390a-49fb-be9c-071c2948d5aa</_x003C_DocumentId_x003E_k__BackingField>
    <_x003C_DocumentTypeId_x003E_k__BackingField>4</_x003C_DocumentTypeId_x003E_k__BackingField>
    <_x003C_DocumentTypeName_x003E_k__BackingField>sample string 5</_x003C_DocumentTypeName_x003E_k__BackingField>
    <_x003C_FreeAmount_x003E_k__BackingField>15</_x003C_FreeAmount_x003E_k__BackingField>
    <_x003C_HasOffers_x003E_k__BackingField>true</_x003C_HasOffers_x003E_k__BackingField>
    <_x003C_NetAmount_x003E_k__BackingField>13</_x003C_NetAmount_x003E_k__BackingField>
    <_x003C_Number_x003E_k__BackingField>6</_x003C_Number_x003E_k__BackingField>
    <_x003C_ReceiverCode_x003E_k__BackingField>sample string 10</_x003C_ReceiverCode_x003E_k__BackingField>
    <_x003C_ReceiverId_x003E_k__BackingField>3be007df-7031-466e-a8f4-cde697de48c8</_x003C_ReceiverId_x003E_k__BackingField>
    <_x003C_ReceiverName_x003E_k__BackingField>sample string 11</_x003C_ReceiverName_x003E_k__BackingField>
    <_x003C_SenderCode_x003E_k__BackingField>sample string 8</_x003C_SenderCode_x003E_k__BackingField>
    <_x003C_SenderId_x003E_k__BackingField>917c1c20-a556-4175-a724-f66cc5546def</_x003C_SenderId_x003E_k__BackingField>
    <_x003C_SenderName_x003E_k__BackingField>sample string 9</_x003C_SenderName_x003E_k__BackingField>
    <_x003C_Series_x003E_k__BackingField>sample string 7</_x003C_Series_x003E_k__BackingField>
    <_x003C_TaxAmount_x003E_k__BackingField>14</_x003C_TaxAmount_x003E_k__BackingField>
    <_x003C_TotalAmount_x003E_k__BackingField>16</_x003C_TotalAmount_x003E_k__BackingField>
  </Document>
</ArrayOfDocument>