ServiceStack Home (Live)

<back to all web services

AccountSettings

Requires Authentication
The following routes are available for this service:
All Verbs/account/settings
GET POST/AccountSettings
"use strict";
export class AccountSettings {
    /** @param {{displayName?:string,firstName?:string,lastName?:string,company?:string,phoneNumber?:string,showCard?:boolean,brand?:string,last4?:string,cardNumber?:string,cvc?:string,expMonth?:number,expYear?:number}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    displayName;
    /** @type {string} */
    firstName;
    /** @type {string} */
    lastName;
    /** @type {string} */
    company;
    /** @type {string} */
    phoneNumber;
    /** @type {boolean} */
    showCard;
    /** @type {string} */
    brand;
    /** @type {string} */
    last4;
    /** @type {string} */
    cardNumber;
    /** @type {string} */
    cvc;
    /** @type {number} */
    expMonth;
    /** @type {number} */
    expYear;
}

JavaScript AccountSettings DTOs

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

HTTP + XML

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

POST /account/settings HTTP/1.1 
Host: account.servicestack.net 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<AccountSettings xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MyApp.ServiceModel">
  <Brand>String</Brand>
  <CardNumber>String</CardNumber>
  <Company>String</Company>
  <Cvc>String</Cvc>
  <DisplayName>String</DisplayName>
  <ExpMonth>0</ExpMonth>
  <ExpYear>0</ExpYear>
  <FirstName>String</FirstName>
  <Last4>String</Last4>
  <LastName>String</LastName>
  <PhoneNumber>String</PhoneNumber>
  <ShowCard>false</ShowCard>
</AccountSettings>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<AccountSettings xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MyApp.ServiceModel">
  <Brand>String</Brand>
  <CardNumber>String</CardNumber>
  <Company>String</Company>
  <Cvc>String</Cvc>
  <DisplayName>String</DisplayName>
  <ExpMonth>0</ExpMonth>
  <ExpYear>0</ExpYear>
  <FirstName>String</FirstName>
  <Last4>String</Last4>
  <LastName>String</LastName>
  <PhoneNumber>String</PhoneNumber>
  <ShowCard>false</ShowCard>
</AccountSettings>