| GET,OPTIONS | /portal/{Token} |
|---|
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 PortalLandingResponse:
response_status: Optional[ResponseStatus] = None
status: Optional[str] = None
resource_type: Optional[str] = None
title: Optional[str] = None
can_view: bool = False
message: Optional[str] = None
stripe_publishable_key: Optional[str] = None
amount_due: Decimal = decimal.Decimal(0)
is_paid: bool = False
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class PortalLandingRequest:
token: Optional[str] = None
Python PortalLandingRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /portal/{Token} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Status":"String","ResourceType":"String","Title":"String","CanView":false,"Message":"String","StripePublishableKey":"String","AmountDue":0,"IsPaid":false}