POST api/providers/{pid}/tickets/{ticketId}/cancel
Cancela o atendimento
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| pid |
Id da empresa |
integer |
Required |
| ticketId |
Id do atendimento |
integer |
Required |
Body Parameters
ServiceCancellationCommand| Name | Description | Type | Additional information |
|---|---|---|---|
| Reason | string |
None. |
|
| ChannelType | SchedulingChannelType |
None. |
|
| OperatorId | string |
None. |
|
| TicketId | integer |
None. |
|
| TenantId | integer |
None. |
|
| CustomData | Collection of CustomDataCommand |
None. |
|
| Payment | PaymentCommand |
None. |
Request Formats
application/json, text/json
Sample:
{
"reason": "sample string 1",
"channelType": 0,
"operatorId": "sample string 2",
"ticketId": 3,
"tenantId": 4,
"customData": [
{
"customFieldId": 1,
"value": "sample string 2"
},
{
"customFieldId": 1,
"value": "sample string 2"
}
],
"payment": {
"gateway": 0,
"method": 0,
"type": 0,
"autoPayment": true,
"data": {}
}
}
application/xml, text/xml
Sample:
<ServiceCancellationCommand xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Filazero.Core.ServicingBoundedContext.Application.Commands.Lifecycle">
<CustomData xmlns="http://schemas.datacontract.org/2004/07/Filazero.Core.ServicingBoundedContext.Application.Commands">
<CustomDataCommand>
<CustomFieldId>1</CustomFieldId>
<Value>sample string 2</Value>
</CustomDataCommand>
<CustomDataCommand>
<CustomFieldId>1</CustomFieldId>
<Value>sample string 2</Value>
</CustomDataCommand>
</CustomData>
<Payment xmlns="http://schemas.datacontract.org/2004/07/Filazero.Core.ServicingBoundedContext.Application.Commands">
<AutoPayment>true</AutoPayment>
<Data />
<Gateway>PAGGCERTO</Gateway>
<Method>MONEY</Method>
<Type>EXTERNAL</Type>
</Payment>
<TenantId xmlns="http://schemas.datacontract.org/2004/07/Filazero.Core.ServicingBoundedContext.Application.Commands">4</TenantId>
<OperatorId i:nil="true" />
<TicketId>3</TicketId>
<ChannelType>BACKOFFICE</ChannelType>
<OperatorId>sample string 2</OperatorId>
<Reason>sample string 1</Reason>
</ServiceCancellationCommand>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Informações do atendimento
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.