| GET,OPTIONS | /v1/project/{ProjectID}/agreement-prefill |
|---|
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using CRM.AgencyPlatform.API.Internal;
namespace CRM.AgencyPlatform.API.Internal
{
public partial class AgreementPrefillRequest
{
public virtual int ProjectID { get; set; }
}
public partial class ServiceAgreement
{
public virtual int AgreementID { get; set; }
public virtual Guid AgreementUID { get; set; }
public virtual Guid TenantId { get; set; }
public virtual Guid BranchId { get; set; }
public virtual string BranchName { get; set; }
public virtual int ProjectID { get; set; }
public virtual string ProjectName { get; set; }
public virtual int? ProjectLocationID { get; set; }
public virtual string ProjectLocationName { get; set; }
public virtual string Name { get; set; }
public virtual string Status { get; set; }
public virtual string PricingShape { get; set; }
public virtual decimal? MonthlyAmount { get; set; }
public virtual decimal? PerVisitAmount { get; set; }
public virtual string SkipPolicy { get; set; }
public virtual int? SeasonStartMonth { get; set; }
public virtual int? SeasonStartDay { get; set; }
public virtual int? SeasonEndMonth { get; set; }
public virtual int? SeasonEndDay { get; set; }
public virtual string RecurrenceFrequency { get; set; }
public virtual string RecurrenceBy { get; set; }
public virtual string RecurrenceByValue { get; set; }
public virtual int? RecurrenceInterval { get; set; }
public virtual string WeeklyDayMode { get; set; }
public virtual DateTime? EffectiveStartDate { get; set; }
public virtual DateTime? EndDate { get; set; }
public virtual bool? CompletionAnchored { get; set; }
public virtual int? PreferredCrewID { get; set; }
public virtual string PreferredCrewName { get; set; }
public virtual int? BackingJobID { get; set; }
public virtual string ExternalRef { get; set; }
public virtual int? EstimatedDurationMinutes { get; set; }
public virtual int? ActualDurationMinutes { get; set; }
public virtual string CreatedBy { get; set; }
public virtual DateTime? CreatedAt { get; set; }
public virtual string UpdatedBy { get; set; }
public virtual DateTime? UpdatedAt { get; set; }
public virtual DateTime? NextVisitDate { get; set; }
public virtual int VisitsThisPeriod { get; set; }
}
public partial class ServiceAgreementResponse
{
public virtual ResponseStatus ResponseStatus { get; set; }
public virtual List<ServiceAgreement> ServiceAgreement { get; set; } = [];
}
}
C# AgreementPrefillRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/project/{ProjectID}/agreement-prefill HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ServiceAgreementResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
<ServiceAgreement>
<ServiceAgreement>
<ActualDurationMinutes>0</ActualDurationMinutes>
<AgreementID>0</AgreementID>
<AgreementUID>00000000-0000-0000-0000-000000000000</AgreementUID>
<BackingJobID>0</BackingJobID>
<BranchId>00000000-0000-0000-0000-000000000000</BranchId>
<BranchName>String</BranchName>
<CompletionAnchored>false</CompletionAnchored>
<CreatedAt>0001-01-01T00:00:00</CreatedAt>
<CreatedBy>String</CreatedBy>
<EffectiveStartDate>0001-01-01T00:00:00</EffectiveStartDate>
<EndDate>0001-01-01T00:00:00</EndDate>
<EstimatedDurationMinutes>0</EstimatedDurationMinutes>
<ExternalRef>String</ExternalRef>
<MonthlyAmount>0</MonthlyAmount>
<Name>String</Name>
<NextVisitDate>0001-01-01T00:00:00</NextVisitDate>
<PerVisitAmount>0</PerVisitAmount>
<PreferredCrewID>0</PreferredCrewID>
<PreferredCrewName>String</PreferredCrewName>
<PricingShape>String</PricingShape>
<ProjectID>0</ProjectID>
<ProjectLocationID>0</ProjectLocationID>
<ProjectLocationName>String</ProjectLocationName>
<ProjectName>String</ProjectName>
<RecurrenceBy>String</RecurrenceBy>
<RecurrenceByValue>String</RecurrenceByValue>
<RecurrenceFrequency>String</RecurrenceFrequency>
<RecurrenceInterval>0</RecurrenceInterval>
<SeasonEndDay>0</SeasonEndDay>
<SeasonEndMonth>0</SeasonEndMonth>
<SeasonStartDay>0</SeasonStartDay>
<SeasonStartMonth>0</SeasonStartMonth>
<SkipPolicy>String</SkipPolicy>
<Status>String</Status>
<TenantId>00000000-0000-0000-0000-000000000000</TenantId>
<UpdatedAt>0001-01-01T00:00:00</UpdatedAt>
<UpdatedBy>String</UpdatedBy>
<VisitsThisPeriod>0</VisitsThisPeriod>
<WeeklyDayMode>String</WeeklyDayMode>
</ServiceAgreement>
</ServiceAgreement>
</ServiceAgreementResponse>