AlbaApi

<back to all web services

PublicContactUsPostRequest

The following routes are available for this service:
POST/public/contactus
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 PublicContactUsDetails:
    name: Optional[str] = None
    cpr_number: Optional[str] = None
    email_address: Optional[str] = None
    phone_number: Optional[str] = None
    product_id: Optional[str] = None
    subject: Optional[str] = None
    message: Optional[str] = None
    address: Optional[str] = None
    to_recipients: Optional[str] = None
    cc_recipients: Optional[str] = None
    bcc_recipients: Optional[str] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class PublicContactUsPostRequest:
    contact_details: Optional[PublicContactUsDetails] = None

Python PublicContactUsPostRequest 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.

POST /public/contactus HTTP/1.1 
Host: hcbtas-q-albamfs-api.azurewebsites.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	contactDetails: 
	{
		name: String,
		cprNumber: String,
		emailAddress: String,
		phoneNumber: String,
		productId: String,
		subject: String,
		message: String,
		address: String,
		toRecipients: String,
		ccRecipients: String,
		bccRecipients: String
	}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

False