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
| Name | Description | Type/Additional information |
|---|---|---|
| token |
The access token |
string |
| documentNumber |
The document's number. E.g.: "02/200130" |
string |
| trxTypeId |
Optional. The document TrxTypeId.
|
|
| id |
The document's id. If specified then it takes precedence over the document number and over the document's type |
string |
| inCaseOfErrorReturnHttpCode |
Default value is BadRequest |
Body Parameters
None.
Response Description
The canceled document