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": "2024-11-18T20:50:31.9043615+02:00",
      "DateCreated": "2024-11-18T20:50:31.9043615+02:00",
      "UserCreated": "sample string 5",
      "DateUpdated": "2024-11-18T20:50:31.9043615+02:00",
      "UserUpdated": "sample string 6"
    },
    {
      "TrxTypeId": 1,
      "DocumentId": "sample string 2",
      "Number": "sample string 3",
      "Date": "2024-11-18T20:50:31.9043615+02:00",
      "DateCreated": "2024-11-18T20:50:31.9043615+02:00",
      "UserCreated": "sample string 5",
      "DateUpdated": "2024-11-18T20:50:31.9043615+02:00",
      "UserUpdated": "sample string 6"
    }
  ],
  "DateCreated": "2024-11-18T20:50:31.9043615+02:00",
  "UserCreated": "sample string 1",
  "DateUpdated": "2024-11-18T20:50:31.9043615+02: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>2024-11-18T20:50:31.9043615+02:00</DateCreated>
  <DateUpdated>2024-11-18T20:50:31.9043615+02:00</DateUpdated>
  <UserCreated>sample string 1</UserCreated>
  <UserUpdated>sample string 2</UserUpdated>
  <LastNumbers>
    <LastDocumentsNumbersData>
      <DateCreated>2024-11-18T20:50:31.9043615+02:00</DateCreated>
      <DateUpdated>2024-11-18T20:50:31.9043615+02:00</DateUpdated>
      <UserCreated>sample string 5</UserCreated>
      <UserUpdated>sample string 6</UserUpdated>
      <Date>2024-11-18T20:50:31.9043615+02:00</Date>
      <DocumentId>sample string 2</DocumentId>
      <Number>sample string 3</Number>
      <TrxTypeId>1</TrxTypeId>
    </LastDocumentsNumbersData>
    <LastDocumentsNumbersData>
      <DateCreated>2024-11-18T20:50:31.9043615+02:00</DateCreated>
      <DateUpdated>2024-11-18T20:50:31.9043615+02:00</DateUpdated>
      <UserCreated>sample string 5</UserCreated>
      <UserUpdated>sample string 6</UserUpdated>
      <Date>2024-11-18T20:50:31.9043615+02:00</Date>
      <DocumentId>sample string 2</DocumentId>
      <Number>sample string 3</Number>
      <TrxTypeId>1</TrxTypeId>
    </LastDocumentsNumbersData>
  </LastNumbers>
</LastDocumentsNumbers>