Trendsic Platform Service

<back to all web services

AdditionalServiceListRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/additionalservice
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class AdditionalServiceRequestPhoto:
    additional_service_request_photo_i_d: int = 0
    url: Optional[str] = None
    mime_type: Optional[str] = None
    created_at: Optional[datetime.datetime] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class AdditionalServiceRequest:
    additional_service_request_i_d: int = 0
    additional_service_request_u_i_d: Optional[str] = None
    tenant_id: Optional[str] = None
    branch_id: Optional[str] = None
    branch_name: Optional[str] = None
    project_i_d: int = 0
    project_name: Optional[str] = None
    project_u_i_d: Optional[str] = None
    job_i_d: Optional[int] = None
    agreement_job_i_d: Optional[int] = None
    requested_by_contact_i_d: Optional[int] = None
    requested_by_name: Optional[str] = None
    customer_contact_i_d: Optional[int] = None
    customer_name: Optional[str] = None
    customer_email: Optional[str] = None
    customer_phone: Optional[str] = None
    customer_sms_opt_in: bool = False
    description: Optional[str] = None
    status: Optional[str] = None
    quote_i_d: Optional[int] = None
    quote_u_i_d: Optional[str] = None
    quote_status: Optional[str] = None
    quote_total: Optional[Decimal] = None
    final_price_after_completion: bool = False
    quote_approved_by_name: Optional[str] = None
    quote_approved_at: Optional[datetime.datetime] = None
    converted_job_i_d: Optional[int] = None
    photo_count: int = 0
    created_by: Optional[str] = None
    created_at: Optional[datetime.datetime] = None
    updated_by: Optional[str] = None
    updated_at: Optional[datetime.datetime] = None
    photos: List[AdditionalServiceRequestPhoto] = field(default_factory=list)


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class AdditionalServiceListResponse:
    response_status: Optional[ResponseStatus] = None
    requests: List[AdditionalServiceRequest] = field(default_factory=list)


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class AdditionalServiceListRequest:
    status: Optional[str] = None

Python AdditionalServiceListRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/additionalservice HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	Requests: 
	[
		{
			AdditionalServiceRequestID: 0,
			AdditionalServiceRequestUID: 00000000000000000000000000000000,
			TenantId: 00000000000000000000000000000000,
			BranchId: 00000000000000000000000000000000,
			BranchName: String,
			ProjectID: 0,
			ProjectName: String,
			ProjectUID: 00000000000000000000000000000000,
			JobID: 0,
			AgreementJobID: 0,
			RequestedByContactID: 0,
			RequestedByName: String,
			CustomerContactID: 0,
			CustomerName: String,
			CustomerEmail: String,
			CustomerPhone: String,
			CustomerSmsOptIn: False,
			Description: String,
			Status: String,
			QuoteID: 0,
			QuoteUID: 00000000000000000000000000000000,
			QuoteStatus: String,
			QuoteTotal: 0,
			FinalPriceAfterCompletion: False,
			QuoteApprovedByName: String,
			QuoteApprovedAt: 0001-01-01,
			ConvertedJobID: 0,
			PhotoCount: 0,
			CreatedBy: String,
			CreatedAt: 0001-01-01,
			UpdatedBy: String,
			UpdatedAt: 0001-01-01,
			Photos: 
			[
				{
					AdditionalServiceRequestPhotoID: 0,
					Url: String,
					MimeType: String,
					CreatedAt: 0001-01-01
				}
			]
		}
	]
}