Billhighway Cloud API

<back to all web services

StoredAccountDetail

The following routes are available for this service:
POST, PUT, DELETE/api/SalesForce/StoredAccountDetail
POST, PUT, DELETE/members/storedaccountdetail
namespace BH.CloudAPI.Common4.DTO.SalesForce

open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type BaseClass() = 
        member val ClassName:String = null with get,set
        member val UniqueId:String = null with get,set
        member val CreatedDateTime:DateTime = new DateTime() with get,set
        member val Version:Int32 = new Int32() with get,set

    [<AllowNullLiteral>]
    type StoredAccountDetail() = 
        inherit BaseClass()
        member val StoredAccountId:Int32 = new Int32() with get,set
        member val NameOnCard:String = null with get,set
        member val ClientId:Int32 = new Int32() with get,set
        member val GroupId:String = null with get,set
        member val ClientUserId:String = null with get,set
        member val BhUserId:Int32 = new Int32() with get,set
        member val CardNumber:String = null with get,set
        member val ExpMonth:Int32 = new Int32() with get,set
        member val ExpYear:Int32 = new Int32() with get,set
        member val Cvv:String = null with get,set
        member val CardType:String = null with get,set
        member val BillingAddress:String = null with get,set
        member val BillingCity:String = null with get,set
        member val BillingState:String = null with get,set
        member val BillingPostalCode:String = null with get,set
        member val BillingCountry:String = null with get,set
        member val ErrorCode:String = null with get,set
        member val Message:String = null with get,set

F# StoredAccountDetail 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 /api/SalesForce/StoredAccountDetail HTTP/1.1 
Host: devapi.billhighway.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<StoredAccountDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BH.CloudAPI.Common4.DTO.SalesForce">
  <ClassName>String</ClassName>
  <CreatedDateTime>0001-01-01T00:00:00</CreatedDateTime>
  <UniqueId>String</UniqueId>
  <Version>0</Version>
  <BhUserId>0</BhUserId>
  <BillingAddress>String</BillingAddress>
  <BillingCity>String</BillingCity>
  <BillingCountry>String</BillingCountry>
  <BillingPostalCode>String</BillingPostalCode>
  <BillingState>String</BillingState>
  <CardNumber>String</CardNumber>
  <CardType>String</CardType>
  <ClientId>0</ClientId>
  <ClientUserId>String</ClientUserId>
  <Cvv>String</Cvv>
  <ErrorCode>String</ErrorCode>
  <ExpMonth>0</ExpMonth>
  <ExpYear>0</ExpYear>
  <GroupId>String</GroupId>
  <Message>String</Message>
  <NameOnCard>String</NameOnCard>
  <StoredAccountId>0</StoredAccountId>
</StoredAccountDetail>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<StoredAccountDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BH.CloudAPI.Common4.DTO.SalesForce">
  <ClassName>String</ClassName>
  <CreatedDateTime>0001-01-01T00:00:00</CreatedDateTime>
  <UniqueId>String</UniqueId>
  <Version>0</Version>
  <BhUserId>0</BhUserId>
  <BillingAddress>String</BillingAddress>
  <BillingCity>String</BillingCity>
  <BillingCountry>String</BillingCountry>
  <BillingPostalCode>String</BillingPostalCode>
  <BillingState>String</BillingState>
  <CardNumber>String</CardNumber>
  <CardType>String</CardType>
  <ClientId>0</ClientId>
  <ClientUserId>String</ClientUserId>
  <Cvv>String</Cvv>
  <ErrorCode>String</ErrorCode>
  <ExpMonth>0</ExpMonth>
  <ExpYear>0</ExpYear>
  <GroupId>String</GroupId>
  <Message>String</Message>
  <NameOnCard>String</NameOnCard>
  <StoredAccountId>0</StoredAccountId>
</StoredAccountDetail>