POST api/Business/GetVoidReasons

Request Information

URI Parameters

None.

Body Parameters

GetBaseReasonRequest
NameDescriptionTypeAdditional information
businessId

integer

None.

listofsync

Collection of Storedata

None.

Id

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "businessId": 1,
  "listofsync": [
    {
      "TableName": "sample string 1",
      "LastSync": "2026-03-20T14:31:06.2394735+00:00"
    },
    {
      "TableName": "sample string 1",
      "LastSync": "2026-03-20T14:31:06.2394735+00:00"
    }
  ],
  "Id": 1
}

application/xml, text/xml

Sample:
<GetBaseReasonRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TAG.ReqResp">
  <Id>1</Id>
  <businessId>1</businessId>
  <listofsync>
    <Storedata>
      <LastSync>2026-03-20T14:31:06.2394735+00:00</LastSync>
      <TableName>sample string 1</TableName>
    </Storedata>
    <Storedata>
      <LastSync>2026-03-20T14:31:06.2394735+00:00</LastSync>
      <TableName>sample string 1</TableName>
    </Storedata>
  </listofsync>
</GetBaseReasonRequest>

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 'GetBaseReasonRequest'.

Response Information

Resource Description

GetBaseReasonResponse
NameDescriptionTypeAdditional information
Status

boolean

None.

Message

string

None.

Token

globally unique identifier

None.

BaseObjects

Collection of BaseReasonModel

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": true,
  "Message": "sample string 2",
  "Token": "a21fec05-d2a6-4d1f-bfec-83923c6ba626",
  "BaseObjects": [
    {
      "BusinessId": 1,
      "Description": "sample string 1",
      "LinkedTo": "sample string 2",
      "Sector": "sample string 3",
      "DateCreated": "2026-03-20T14:31:06.2550425+00:00",
      "DateModified": "2026-03-20T14:31:06.2550425+00:00",
      "CreatedBy": 1,
      "ModifiedBy": 1,
      "CreatedDate": "2026-03-20T14:31:06.2550425+00:00",
      "LastUpdated": "2026-03-20T14:31:06.2550425+00:00",
      "Id": 1
    },
    {
      "BusinessId": 1,
      "Description": "sample string 1",
      "LinkedTo": "sample string 2",
      "Sector": "sample string 3",
      "DateCreated": "2026-03-20T14:31:06.2550425+00:00",
      "DateModified": "2026-03-20T14:31:06.2550425+00:00",
      "CreatedBy": 1,
      "ModifiedBy": 1,
      "CreatedDate": "2026-03-20T14:31:06.2550425+00:00",
      "LastUpdated": "2026-03-20T14:31:06.2550425+00:00",
      "Id": 1
    }
  ]
}

application/xml, text/xml

Sample:
<GetBaseReasonResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TAG.ReqResp">
  <BaseObjects xmlns:d2p1="http://schemas.datacontract.org/2004/07/TAG.DataModels">
    <d2p1:BaseReasonModel>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:CreatedDate>2026-03-20T14:31:06.2550425+00:00</d2p1:CreatedDate>
      <d2p1:LastUpdated>2026-03-20T14:31:06.2550425+00:00</d2p1:LastUpdated>
      <d2p1:CreatedBy>1</d2p1:CreatedBy>
      <d2p1:ModifiedBy>1</d2p1:ModifiedBy>
      <d2p1:BusinessId>1</d2p1:BusinessId>
      <d2p1:DateCreated>2026-03-20T14:31:06.2550425+00:00</d2p1:DateCreated>
      <d2p1:DateModified>2026-03-20T14:31:06.2550425+00:00</d2p1:DateModified>
      <d2p1:Description>sample string 1</d2p1:Description>
      <d2p1:LinkedTo>sample string 2</d2p1:LinkedTo>
      <d2p1:Sector>sample string 3</d2p1:Sector>
    </d2p1:BaseReasonModel>
    <d2p1:BaseReasonModel>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:CreatedDate>2026-03-20T14:31:06.2550425+00:00</d2p1:CreatedDate>
      <d2p1:LastUpdated>2026-03-20T14:31:06.2550425+00:00</d2p1:LastUpdated>
      <d2p1:CreatedBy>1</d2p1:CreatedBy>
      <d2p1:ModifiedBy>1</d2p1:ModifiedBy>
      <d2p1:BusinessId>1</d2p1:BusinessId>
      <d2p1:DateCreated>2026-03-20T14:31:06.2550425+00:00</d2p1:DateCreated>
      <d2p1:DateModified>2026-03-20T14:31:06.2550425+00:00</d2p1:DateModified>
      <d2p1:Description>sample string 1</d2p1:Description>
      <d2p1:LinkedTo>sample string 2</d2p1:LinkedTo>
      <d2p1:Sector>sample string 3</d2p1:Sector>
    </d2p1:BaseReasonModel>
  </BaseObjects>
  <Message>sample string 2</Message>
  <Status>true</Status>
  <Token>a21fec05-d2a6-4d1f-bfec-83923c6ba626</Token>
</GetBaseReasonResponse>