POST api/cico/cashOut

Request Information

URI Parameters

None.

Body Parameters

CashOutRequest
NameDescriptionTypeAdditional information
vaucherCode

string

None.

fiscalCode

string

Required

Matching regular expression pattern: ^[A-Z0-9]{16}$

transferAmount

decimal number

Required

notes

string

None.

dui

string

Required

Request Formats

application/json, text/json

Sample:
{
  "vaucherCode": "sample string 1",
  "fiscalCode": "sample string 2",
  "transferAmount": 3.0,
  "notes": "sample string 4",
  "dui": "sample string 5"
}

application/xml, text/xml

Sample:
<CashOutRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Buffetti.Cico.Api.Dto">
  <DUI>sample string 5</DUI>
  <FiscalCode>sample string 2</FiscalCode>
  <Notes>sample string 4</Notes>
  <TransferAmount>3</TransferAmount>
  <VaucherCode>sample string 1</VaucherCode>
</CashOutRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CashOutResponse
NameDescriptionTypeAdditional information
PaymentId

integer

None.

Success

boolean

None.

message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "PaymentId": 1,
  "Success": true,
  "message": "sample string 3"
}

application/xml, text/xml

Sample:
<CashOutResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Buffetti.Cico.Api.Dto">
  <Message xmlns="http://schemas.datacontract.org/2004/07/Buffetti.Api.HTTP">sample string 3</Message>
  <OutcomeMessage xmlns:d2p1="http://schemas.datacontract.org/2004/07/System" xmlns="http://schemas.datacontract.org/2004/07/Buffetti.Api.HTTP">
    <ClassName xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">System.Exception</ClassName>
    <Message i:nil="true" xmlns="" />
    <Data i:nil="true" xmlns="" />
    <InnerException i:nil="true" xmlns="" />
    <HelpURL xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 1</HelpURL>
    <StackTraceString i:nil="true" xmlns="" />
    <RemoteStackTraceString i:nil="true" xmlns="" />
    <RemoteStackIndex xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:int" xmlns="">0</RemoteStackIndex>
    <ExceptionMethod i:nil="true" xmlns="" />
    <HResult xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:int" xmlns="">3</HResult>
    <Source xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 2</Source>
    <WatsonBuckets i:nil="true" xmlns="" />
  </OutcomeMessage>
  <Success xmlns="http://schemas.datacontract.org/2004/07/Buffetti.Api.HTTP">true</Success>
  <PaymentId>1</PaymentId>
</CashOutResponse>