POST api/Cost/ReverseCost

Request Information

URI Parameters

None.

Body Parameters

CostModel
NameDescriptionTypeAdditional information
CostID

integer

None.

EntityID

integer

None.

AccountID

integer

None.

InvoiceID

integer

None.

Reversed_CostID

integer

None.

InternalCost

decimal number

None.

AccountCost

decimal number

None.

EntityCost

decimal number

None.

InternalTax

decimal number

None.

AccountTax

decimal number

None.

EntityTax

decimal number

None.

InternalTaxRate

decimal number

None.

AccountTaxRate

decimal number

None.

EntityTaxRate

decimal number

None.

InternalReference

string

None.

EntityReference

string

None.

AccountReference

string

None.

CostDate

date

None.

CurrencyID

integer

None.

CurrencyRate

decimal number

None.

ForeignInternalCost

decimal number

None.

ForeignInternalTax

decimal number

None.

Supplier_ContactID

integer

None.

NonClientVisible

boolean

None.

RemoveAtLegalIssue

boolean

None.

ToHost

boolean

None.

Deferred

boolean

None.

IncursInterest

boolean

None.

Recoverable

boolean

None.

LoadID

integer

None.

CreateID

integer

None.

CreateSessionID

integer

None.

CreateTS

date

None.

ModifyID

integer

None.

ModifySessionID

integer

None.

ModifyTS

date

None.

InactiveID

integer

None.

InactiveSessionID

integer

None.

InactiveTS

date

None.

StatusID

integer

None.

Z_DB

integer

None.

Z_ID

integer

None.

Reversed

boolean

None.

AccountingBatchID

integer

None.

MasterCostID

integer

None.

CostTypeID

integer

None.

UnDeferredTS

date

None.

Z_IDSTR

string

None.

Z_REF

string

None.

Z_REF2

string

None.

Z_REF3

string

None.

CostCategoryID

integer

None.

Source_AccountID

integer

None.

Source_CostID

integer

None.

MasterCostChargeID

integer

None.

RecoveredCostToEntity_CostID

integer

None.

ChargeRecoveredCostToEntity

boolean

None.

RecoveredCostToEntity_PaymentID

integer

None.

PaymentFees_PaymentID

integer

None.

DishonourFees_PaymentID

integer

None.

Supplier

string

None.

ClientTransactionReference

string

None.

ClientTransactionID

integer

None.

LUPPaidByCredit

boolean

None.

Deferred_Legal_Approval

boolean

None.

UndeferredTS_Legal_Approval

date

None.

Solicitor_ContactID

integer

None.

SolicitorInvoiceNo

string

None.

SolicitorInvoiceNoUpdatedBy

integer

None.

SolicitorInvoiceNoUpdatedTS

date

None.

WorkflowLineID

integer

None.

InternalDescription

string

None.

AccountDescription

string

None.

EntityDescription

string

None.

EnforceableTS

date

None.

ReverseReason

string

None.

PresetReversalReasonID

integer

None.

PresetReversalType

string

None.

PresetReverseReason

string

None.

PresetReverseCode

string

None.

ReviewID

integer

None.

IsEnforceable

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "CostID": 1,
  "EntityID": 1,
  "AccountID": 1,
  "InvoiceID": 1,
  "Reversed_CostID": 1,
  "InternalCost": 1.0,
  "AccountCost": 1.0,
  "EntityCost": 1.0,
  "InternalTax": 1.0,
  "AccountTax": 1.0,
  "EntityTax": 1.0,
  "InternalTaxRate": 1.0,
  "AccountTaxRate": 1.0,
  "EntityTaxRate": 1.0,
  "InternalReference": "sample string 1",
  "EntityReference": "sample string 2",
  "AccountReference": "sample string 3",
  "CostDate": "2025-09-02T23:07:15.4256052+00:00",
  "CurrencyID": 1,
  "CurrencyRate": 1.0,
  "ForeignInternalCost": 1.0,
  "ForeignInternalTax": 1.0,
  "Supplier_ContactID": 1,
  "NonClientVisible": true,
  "RemoveAtLegalIssue": true,
  "ToHost": true,
  "Deferred": true,
  "IncursInterest": true,
  "Recoverable": true,
  "LoadID": 1,
  "CreateID": 1,
  "CreateSessionID": 1,
  "CreateTS": "2025-09-02T23:07:15.4256052+00:00",
  "ModifyID": 1,
  "ModifySessionID": 1,
  "ModifyTS": "2025-09-02T23:07:15.4256052+00:00",
  "InactiveID": 1,
  "InactiveSessionID": 1,
  "InactiveTS": "2025-09-02T23:07:15.4256052+00:00",
  "StatusID": 1,
  "Z_DB": 1,
  "Z_ID": 1,
  "Reversed": true,
  "AccountingBatchID": 1,
  "MasterCostID": 1,
  "CostTypeID": 1,
  "UnDeferredTS": "2025-09-02T23:07:15.4256052+00:00",
  "Z_IDSTR": "sample string 4",
  "Z_REF": "sample string 5",
  "Z_REF2": "sample string 6",
  "Z_REF3": "sample string 7",
  "CostCategoryID": 1,
  "Source_AccountID": 1,
  "Source_CostID": 1,
  "MasterCostChargeID": 1,
  "RecoveredCostToEntity_CostID": 1,
  "ChargeRecoveredCostToEntity": true,
  "RecoveredCostToEntity_PaymentID": 1,
  "PaymentFees_PaymentID": 1,
  "DishonourFees_PaymentID": 1,
  "Supplier": "sample string 8",
  "ClientTransactionReference": "sample string 9",
  "ClientTransactionID": 1,
  "LUPPaidByCredit": true,
  "Deferred_Legal_Approval": true,
  "UndeferredTS_Legal_Approval": "2025-09-02T23:07:15.4256052+00:00",
  "Solicitor_ContactID": 1,
  "SolicitorInvoiceNo": "sample string 10",
  "SolicitorInvoiceNoUpdatedBy": 1,
  "SolicitorInvoiceNoUpdatedTS": "2025-09-02T23:07:15.4256052+00:00",
  "WorkflowLineID": 1,
  "InternalDescription": "sample string 11",
  "AccountDescription": "sample string 12",
  "EntityDescription": "sample string 13",
  "EnforceableTS": "2025-09-02T23:07:15.4256052+00:00",
  "ReverseReason": "sample string 14",
  "PresetReversalReasonID": 1,
  "PresetReversalType": "sample string 15",
  "PresetReverseReason": "sample string 16",
  "PresetReverseCode": "sample string 17",
  "ReviewID": 1,
  "IsEnforceable": true
}

application/xml, text/xml

Sample:
<CostModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Debtrak.BusinessObjects.Models.Cost">
  <AccountCost>1</AccountCost>
  <AccountDescription>sample string 12</AccountDescription>
  <AccountID>1</AccountID>
  <AccountReference>sample string 3</AccountReference>
  <AccountTax>1</AccountTax>
  <AccountTaxRate>1</AccountTaxRate>
  <AccountingBatchID>1</AccountingBatchID>
  <ChargeRecoveredCostToEntity>true</ChargeRecoveredCostToEntity>
  <ClientTransactionID>1</ClientTransactionID>
  <ClientTransactionReference>sample string 9</ClientTransactionReference>
  <CostCategoryID>1</CostCategoryID>
  <CostDate>2025-09-02T23:07:15.4256052+00:00</CostDate>
  <CostID>1</CostID>
  <CostTypeID>1</CostTypeID>
  <CreateID>1</CreateID>
  <CreateSessionID>1</CreateSessionID>
  <CreateTS>2025-09-02T23:07:15.4256052+00:00</CreateTS>
  <CurrencyID>1</CurrencyID>
  <CurrencyRate>1</CurrencyRate>
  <Deferred>true</Deferred>
  <Deferred_Legal_Approval>true</Deferred_Legal_Approval>
  <DishonourFees_PaymentID>1</DishonourFees_PaymentID>
  <EnforceableTS>2025-09-02T23:07:15.4256052+00:00</EnforceableTS>
  <EntityCost>1</EntityCost>
  <EntityDescription>sample string 13</EntityDescription>
  <EntityID>1</EntityID>
  <EntityReference>sample string 2</EntityReference>
  <EntityTax>1</EntityTax>
  <EntityTaxRate>1</EntityTaxRate>
  <ForeignInternalCost>1</ForeignInternalCost>
  <ForeignInternalTax>1</ForeignInternalTax>
  <InactiveID>1</InactiveID>
  <InactiveSessionID>1</InactiveSessionID>
  <InactiveTS>2025-09-02T23:07:15.4256052+00:00</InactiveTS>
  <IncursInterest>true</IncursInterest>
  <InternalCost>1</InternalCost>
  <InternalDescription>sample string 11</InternalDescription>
  <InternalReference>sample string 1</InternalReference>
  <InternalTax>1</InternalTax>
  <InternalTaxRate>1</InternalTaxRate>
  <InvoiceID>1</InvoiceID>
  <IsEnforceable>true</IsEnforceable>
  <LUPPaidByCredit>true</LUPPaidByCredit>
  <LoadID>1</LoadID>
  <MasterCostChargeID>1</MasterCostChargeID>
  <MasterCostID>1</MasterCostID>
  <ModifyID>1</ModifyID>
  <ModifySessionID>1</ModifySessionID>
  <ModifyTS>2025-09-02T23:07:15.4256052+00:00</ModifyTS>
  <NonClientVisible>true</NonClientVisible>
  <PaymentFees_PaymentID>1</PaymentFees_PaymentID>
  <PresetReversalReasonID>1</PresetReversalReasonID>
  <PresetReversalType>sample string 15</PresetReversalType>
  <PresetReverseCode>sample string 17</PresetReverseCode>
  <PresetReverseReason>sample string 16</PresetReverseReason>
  <Recoverable>true</Recoverable>
  <RecoveredCostToEntity_CostID>1</RecoveredCostToEntity_CostID>
  <RecoveredCostToEntity_PaymentID>1</RecoveredCostToEntity_PaymentID>
  <RemoveAtLegalIssue>true</RemoveAtLegalIssue>
  <ReverseReason>sample string 14</ReverseReason>
  <Reversed>true</Reversed>
  <Reversed_CostID>1</Reversed_CostID>
  <ReviewID>1</ReviewID>
  <SolicitorInvoiceNo>sample string 10</SolicitorInvoiceNo>
  <SolicitorInvoiceNoUpdatedBy>1</SolicitorInvoiceNoUpdatedBy>
  <SolicitorInvoiceNoUpdatedTS>2025-09-02T23:07:15.4256052+00:00</SolicitorInvoiceNoUpdatedTS>
  <Solicitor_ContactID>1</Solicitor_ContactID>
  <Source_AccountID>1</Source_AccountID>
  <Source_CostID>1</Source_CostID>
  <StatusID>1</StatusID>
  <Supplier>sample string 8</Supplier>
  <Supplier_ContactID>1</Supplier_ContactID>
  <ToHost>true</ToHost>
  <UnDeferredTS>2025-09-02T23:07:15.4256052+00:00</UnDeferredTS>
  <UndeferredTS_Legal_Approval>2025-09-02T23:07:15.4256052+00:00</UndeferredTS_Legal_Approval>
  <WorkflowLineID>1</WorkflowLineID>
  <Z_DB>1</Z_DB>
  <Z_ID>1</Z_ID>
  <Z_IDSTR>sample string 4</Z_IDSTR>
  <Z_REF>sample string 5</Z_REF>
  <Z_REF2>sample string 6</Z_REF2>
  <Z_REF3>sample string 7</Z_REF3>
</CostModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ActionResultVM
NameDescriptionTypeAdditional information
Response

IResponse

None.

Response Formats

application/json, text/json

Sample:
{
  "Response": null
}

application/xml, text/xml

Sample:
<ActionResultVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Debtrak.BusinessObjects.ViewModels">
  <Response i:nil="true" />
</ActionResultVM>