POST api/providers/{pid}/sessions/{sessionId}/tickets

Agenda atendimento

Request Information

URI Parameters

NameDescriptionTypeAdditional information
pid

Id da empresa

integer

Required

sessionId

Id da sessão de atendimento

integer

Required

Body Parameters

Informações do agendamento

CreateTicketScheduleData
NameDescriptionTypeAdditional information
Customer

CustomerCreateTicketScheduleData

Required

Priority

Priorities

None.

ProviderId

integer

Required

ServiceId

integer

Required

AutoCheckIn

boolean

None.

Metadata

Collection of Dictionary of string [key] and string [value]

None.

CustomData

Collection of CustomDataModel

None.

schedulingChannel

SchedulingChannelType

None.

AttendanceType

AttendanceType

None.

OperatorId

string

None.

TenantId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "customer": {
    "id": 1,
    "name": "sample string 1",
    "email": "sample string 2",
    "phone": "sample string 3",
    "cpf": "sample string 4"
  },
  "priority": 0,
  "providerId": 1,
  "serviceId": 2,
  "autoCheckIn": true,
  "metadata": [
    {
      "sample string 1": "sample string 2",
      "sample string 3": "sample string 4"
    },
    {
      "sample string 1": "sample string 2",
      "sample string 3": "sample string 4"
    }
  ],
  "customData": [
    {
      "customFieldId": 1,
      "value": "sample string 2"
    },
    {
      "customFieldId": 1,
      "value": "sample string 2"
    }
  ],
  "schedulingChannel": 0,
  "attendanceType": 0,
  "operatorId": "sample string 4",
  "tenantId": 5
}

application/xml, text/xml

Sample:
<CreateTicketScheduleData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Filazero.Core.ServicingBoundedContext.Domain.Dtos">
  <AttendanceType>PRESENTIAL</AttendanceType>
  <AutoCheckIn>true</AutoCheckIn>
  <CustomData>
    <CustomDataModel>
      <CustomFieldId>1</CustomFieldId>
      <Value>sample string 2</Value>
    </CustomDataModel>
    <CustomDataModel>
      <CustomFieldId>1</CustomFieldId>
      <Value>sample string 2</Value>
    </CustomDataModel>
  </CustomData>
  <Customer>
    <Cpf>sample string 4</Cpf>
    <Email>sample string 2</Email>
    <Id>1</Id>
    <Name>sample string 1</Name>
    <Phone>sample string 3</Phone>
  </Customer>
  <Metadata xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:ArrayOfKeyValueOfstringstring>
      <d2p1:KeyValueOfstringstring>
        <d2p1:Key>sample string 1</d2p1:Key>
        <d2p1:Value>sample string 2</d2p1:Value>
      </d2p1:KeyValueOfstringstring>
      <d2p1:KeyValueOfstringstring>
        <d2p1:Key>sample string 3</d2p1:Key>
        <d2p1:Value>sample string 4</d2p1:Value>
      </d2p1:KeyValueOfstringstring>
    </d2p1:ArrayOfKeyValueOfstringstring>
    <d2p1:ArrayOfKeyValueOfstringstring>
      <d2p1:KeyValueOfstringstring>
        <d2p1:Key>sample string 1</d2p1:Key>
        <d2p1:Value>sample string 2</d2p1:Value>
      </d2p1:KeyValueOfstringstring>
      <d2p1:KeyValueOfstringstring>
        <d2p1:Key>sample string 3</d2p1:Key>
        <d2p1:Value>sample string 4</d2p1:Value>
      </d2p1:KeyValueOfstringstring>
    </d2p1:ArrayOfKeyValueOfstringstring>
  </Metadata>
  <OperatorId>sample string 4</OperatorId>
  <Priority>NORMAL</Priority>
  <ProviderId>1</ProviderId>
  <ServiceId>2</ServiceId>
  <TenantId>5</TenantId>
  <schedulingChannel>BACKOFFICE</schedulingChannel>
</CreateTicketScheduleData>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Informações sobre o agendamento

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.