GET api/v1/LastDocumentsNumbers?token={token}

Get the last document numbers of all the TrxTypes in Caspit
Last is based on the max Document id (and not date, not biggest number)

Request Information

URI Parameters

NameDescriptionType/Additional information
token

string

Body Parameters

None.

Response Description

LastDocumentsNumbers

A list of ApiGlobals.TrxTypes and the last document number of each

Response Formats

application/json, text/json

Sample:
{
  "LastNumbers": [
    {
      "TrxTypeId": 1,
      "DocumentId": "sample string 2",
      "Number": "sample string 3",
      "Date": "2022-10-06T22:25:07.1635977+03:00",
      "DateCreated": "2022-10-06T22:25:07.1635977+03:00",
      "UserCreated": "sample string 5",
      "DateUpdated": "2022-10-06T22:25:07.1635977+03:00",
      "UserUpdated": "sample string 6"
    },
    {
      "TrxTypeId": 1,
      "DocumentId": "sample string 2",
      "Number": "sample string 3",
      "Date": "2022-10-06T22:25:07.1635977+03:00",
      "DateCreated": "2022-10-06T22:25:07.1635977+03:00",
      "UserCreated": "sample string 5",
      "DateUpdated": "2022-10-06T22:25:07.1635977+03:00",
      "UserUpdated": "sample string 6"
    }
  ],
  "DateCreated": "2022-10-06T22:25:07.1635977+03:00",
  "UserCreated": "sample string 1",
  "DateUpdated": "2022-10-06T22:25:07.1635977+03:00",
  "UserUpdated": "sample string 2"
}

application/xml, text/xml

Sample:
<LastDocumentsNumbers xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.caspit.biz/2013/03">
  <DateCreated>2022-10-06T22:25:07.1635977+03:00</DateCreated>
  <DateUpdated>2022-10-06T22:25:07.1635977+03:00</DateUpdated>
  <UserCreated>sample string 1</UserCreated>
  <UserUpdated>sample string 2</UserUpdated>
  <LastNumbers>
    <LastDocumentsNumbersData>
      <DateCreated>2022-10-06T22:25:07.1635977+03:00</DateCreated>
      <DateUpdated>2022-10-06T22:25:07.1635977+03:00</DateUpdated>
      <UserCreated>sample string 5</UserCreated>
      <UserUpdated>sample string 6</UserUpdated>
      <Date>2022-10-06T22:25:07.1635977+03:00</Date>
      <DocumentId>sample string 2</DocumentId>
      <Number>sample string 3</Number>
      <TrxTypeId>1</TrxTypeId>
    </LastDocumentsNumbersData>
    <LastDocumentsNumbersData>
      <DateCreated>2022-10-06T22:25:07.1635977+03:00</DateCreated>
      <DateUpdated>2022-10-06T22:25:07.1635977+03:00</DateUpdated>
      <UserCreated>sample string 5</UserCreated>
      <UserUpdated>sample string 6</UserUpdated>
      <Date>2022-10-06T22:25:07.1635977+03:00</Date>
      <DocumentId>sample string 2</DocumentId>
      <Number>sample string 3</Number>
      <TrxTypeId>1</TrxTypeId>
    </LastDocumentsNumbersData>
  </LastNumbers>
</LastDocumentsNumbers>