POST api/v1/CancelDocument/{id}?token={token}&documentNumber={documentNumber}&trxTypeId={trxTypeId}&inCaseOfErrorReturnHttpCode={inCaseOfErrorReturnHttpCode}

Cancel a document. Example:
curl.exe --verbose -X POST "http://app.caspit.biz/api/v1/CancelDocument/doc14245?token=zzzz"

Request Information

URI Parameters

NameDescriptionType/Additional information
token

The access token

string
documentNumber

The document's number. E.g.: "02/200130"

string
trxTypeId

Optional. The document TrxTypeId.
If not specified then Caspit will fetch the documennt based only on its Number.
Send an int. For values see the ApiGlobals.TrxTypes enumeration in the SDK

TrxTypes

id

The document's id. If specified then it takes precedence over the document number and over the document's type

string
inCaseOfErrorReturnHttpCode

HttpStatusCode

Default value is BadRequest

Body Parameters

None.

Response Description

The canceled document

HttpResponseMessage