POST api/Public/CancelInvoice

Request Information

URI Parameters

None.

Body Parameters

CancelTerminalInvoiceRequest
NameDescriptionTypeAdditional information
Token

string

None.

InvoiceUuid

string

None.

CancelTime

date

None.

Request Formats

application/json, text/json

Sample:
{
  "Token": "sample string 1",
  "InvoiceUuid": "sample string 2",
  "CancelTime": "2025-01-30T13:30:53.652721+03:00"
}

application/xml, text/xml

Sample:
<CancelTerminalInvoiceRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Shams.Api.Model.Invoice">
  <CancelTime>2025-01-30T13:30:53.652721+03:00</CancelTime>
  <InvoiceUuid>sample string 2</InvoiceUuid>
  <Token>sample string 1</Token>
</CancelTerminalInvoiceRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CancelTerminalInvoiceResponse
NameDescriptionTypeAdditional information
InvoiceUuid

string

None.

InvoiceId

string

None.

CancelTime

date

None.

ErrorCode

string

None.

ErrorMessage

string

None.

ErrorCategory

string

None.

Result

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "InvoiceUuid": "sample string 1",
  "InvoiceId": "sample string 2",
  "CancelTime": "2025-01-30T13:30:53.652721+03:00",
  "ErrorCode": "sample string 4",
  "ErrorMessage": "sample string 5",
  "ErrorCategory": "sample string 6",
  "Result": true
}

application/xml, text/xml

Sample:
<CancelTerminalInvoiceResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Shams.Api.Model.Invoice">
  <ErrorCategory xmlns="http://schemas.datacontract.org/2004/07/Shams.Api.Model.Base">sample string 6</ErrorCategory>
  <ErrorCode xmlns="http://schemas.datacontract.org/2004/07/Shams.Api.Model.Base">sample string 4</ErrorCode>
  <ErrorMessage xmlns="http://schemas.datacontract.org/2004/07/Shams.Api.Model.Base">sample string 5</ErrorMessage>
  <Result xmlns="http://schemas.datacontract.org/2004/07/Shams.Api.Model.Base">true</Result>
  <CancelTime>2025-01-30T13:30:53.652721+03:00</CancelTime>
  <InvoiceId>sample string 2</InvoiceId>
  <InvoiceUuid>sample string 1</InvoiceUuid>
</CancelTerminalInvoiceResponse>