AIM Web Services

<back to all web services

C2BPostContractRequest

C2BPostContract
Requires active-e Contracts Service.

The following routes are available for this service:
POST, GET/api/C2BPostContract
namespace AIM.WebService

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

    [<DataContract>]
    [<AllowNullLiteral>]
    type BaseResponseResult() = 
        ///<summary>
        ///
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="string", Description="", Name="StatusCode", ParameterType="body")>]
        member val StatusCode:String = null with get,set

        ///<summary>
        ///
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="string", Description="", Name="Login", ParameterType="body")>]
        member val Login:String = null with get,set

        ///<summary>
        ///
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="string", Description="", Name="ErrorCode", ParameterType="body")>]
        member val ErrorCode:String = null with get,set

        ///<summary>
        ///
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="string", Description="", Name="ErrorDisplayText", ParameterType="body")>]
        member val ErrorDisplayText:String = null with get,set

        ///<summary>
        ///
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="string", Description="", Name="ErrorMessage", ParameterType="body")>]
        member val ErrorMessage:String = null with get,set

        ///<summary>
        ///
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="string", Description="", ExcludeInSchema=true, Name="DomainName", ParameterType="body")>]
        member val DomainName:String = null with get,set

        ///<summary>
        ///
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="string", Description="", ExcludeInSchema=true, Name="IPAddress", ParameterType="body")>]
        member val IpAddress:String = null with get,set

    [<DataContract>]
    [<AllowNullLiteral>]
    type BaseResponse() = 
        ///<summary>
        ///
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="BaseResponseResult", Description="", Name="Status", ParameterType="body")>]
        member val Status:BaseResponseResult = null with get,set

    [<DataContract>]
    [<AllowNullLiteral>]
    type C2BPostContractResponse() = 
        inherit BaseResponse()
        [<DataMember>]
        member val PaymentRequired:Boolean = new Boolean() with get,set

        [<DataMember>]
        member val Topic:String = null with get,set

        [<DataMember>]
        member val WebRef:String = null with get,set

        [<DataMember>]
        member val BaseUrl:String = null with get,set

    [<DataContract>]
    [<AllowNullLiteral>]
    type BaseRequest() = 
        ///<summary>
        ///This is your AIM API Key provided by Tri-Tech
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="string", Description="This is your AIM API Key provided by Tri-Tech", IsRequired=true, Name="ApiKey", ParameterType="Header")>]
        member val ApiKey:String = null with get,set

        ///<summary>
        ///The OAuthToken token return by AeServices30
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="string", Description="The OAuthToken token return by AeServices30", IsRequired=true, Name="OAuthToken", ParameterType="Header")>]
        member val OAuthToken:String = null with get,set

        ///<summary>
        ///The Device ID of the Mobile Device. Not used for non-mobile devices.
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="string", Description="The Device ID of the Mobile Device. Not used for non-mobile devices.", Name="DeviceId", ParameterType="Header")>]
        member val DeviceId:String = null with get,set

        ///<summary>
        ///An identifier for your integration
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="string", Description="An identifier for your integration", IsRequired=true, Name="AppId", ParameterType="Header")>]
        member val AppId:String = null with get,set

    [<DataContract>]
    [<AllowNullLiteral>]
    type BaseSecureRequest() = 
        inherit BaseRequest()
        ///<summary>
        ///The Login Token return by the Security API. Required for secured calls.
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="string", Description="The Login Token return by the Security API. Required for secured calls.", Name="Token", ParameterType="Header")>]
        member val Token:String = null with get,set

    [<DataContract(Name="Rate")>]
    [<AllowNullLiteral>]
    type Rate() = 
        ///<summary>
        ///Plan Code to be used for the contract
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="string", Description="Plan Code to be used for the contract", Name="PlanCode", ParameterType="body")>]
        member val PlanCode:String = null with get,set

        ///<summary>
        ///Level to be used for the contract
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="int", Description="Level to be used for the contract", Name="Level", ParameterType="body")>]
        member val Level:Nullable<Int32> = new Nullable<Int32>() with get,set

        ///<summary>
        ///Grade to be used for the contract
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="string", Description="Grade to be used for the contract", Name="Grade", ParameterType="body")>]
        member val Grade:String = null with get,set

        ///<summary>
        ///Down Payment to be collected. Does not include maintenance or lease fees.
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="decimal", Description="Down Payment to be collected. Does not include maintenance or lease fees.", Name="DownPay", ParameterType="body")>]
        member val DownPay:Nullable<Decimal> = new Nullable<Decimal>() with get,set

        ///<summary>
        ///Monthly amount to be collected for the contract. Does not include maintenance or lease fees.
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="decimal", Description="Monthly amount to be collected for the contract. Does not include maintenance or lease fees.", Name="MoPay", ParameterType="body")>]
        member val MoPay:Nullable<Decimal> = new Nullable<Decimal>() with get,set

        ///<summary>
        ///Down Payment to be collected for maintenance.
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="decimal", Description="Down Payment to be collected for maintenance.", Name="DownMaint", ParameterType="body")>]
        member val DownMaint:Nullable<Decimal> = new Nullable<Decimal>() with get,set

        ///<summary>
        ///Monthly amount to be collected for the maintenance.
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="decimal", Description="Monthly amount to be collected for the maintenance.", Name="MoMaint", ParameterType="body")>]
        member val MoMaint:Nullable<Decimal> = new Nullable<Decimal>() with get,set

        ///<summary>
        ///If sent, the first Contract Default with this rental type will be used. Not used if ContractDefaultId is sent. Valid values are EW: Extended Warranty, RO: Rent to Rent, RF: Rent to Own, SF: Sales Contract, RV: Simple Intrst: Rent, SV: Simple Intrst: Sales
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="int64", Description="If sent, the first Contract Default with this rental type will be used. Not used if ContractDefaultId is sent. Valid values are EW: Extended Warranty, RO: Rent to Rent, RF: Rent to Own, SF: Sales Contract, RV: Simple Intrst: Rent, SV: Simple Intrst: Sales", Name="RdfType", ParameterType="body")>]
        member val RdfType:String = null with get,set

        ///<summary>
        ///The ID of the contract default to be used for this contract.
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="int64", Description="The ID of the contract default to be used for this contract.", Name="ContractDefaultId", ParameterType="body")>]
        member val ContractDefaultId:Nullable<Int64> = new Nullable<Int64>() with get,set

        ///<summary>
        ///The Number of Months covered by the downpayment
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="int", Description="The Number of Months covered by the downpayment", Name="Months", ParameterType="body")>]
        member val Months:Nullable<Int32> = new Nullable<Int32>() with get,set

        ///<summary>
        ///Down Payment to be collected for Lease Fees.
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="decimal", Description="Down Payment to be collected for Lease Fees.", Name="DownMaint", ParameterType="body")>]
        member val DownLease:Nullable<Decimal> = new Nullable<Decimal>() with get,set

        ///<summary>
        ///Monthly amount to be collected for lease fees.
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="decimal", Description="Monthly amount to be collected for lease fees.", Name="MoLease", ParameterType="body")>]
        member val MoLease:Nullable<Decimal> = new Nullable<Decimal>() with get,set

    [<DataContract(Name="Accessory")>]
    [<AllowNullLiteral>]
    type Accessory() = 
        ///<summary>
        ///The description to be used for the Accessory
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="string", Description="The description to be used for the Accessory", IsRequired=true, Name="Desc", ParameterType="body")>]
        member val Desc:String = null with get,set

        ///<summary>
        ///The price to be used for the Accessory
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="decimal", Description="The price to be used for the Accessory", Name="Price", ParameterType="body")>]
        member val Price:Decimal = new Decimal() with get,set

        ///<summary>
        ///The type of Accessory. A is Accessory, D is Delivery Option, and M is Maintenance
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="string", Description="The type of Accessory. A is Accessory, D is Delivery Option, and M is Maintenance", Name="Type", ParameterType="body")>]
        member val Type:String = null with get,set

        ///<summary>
        ///The category # in AIM to be linked to this accessory.
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="int", Description="The category # in AIM to be linked to this accessory.", Name="CatNum", ParameterType="body")>]
        member val CatNum:Int32 = new Int32() with get,set

        ///<summary>
        ///A SKU or Package Deal package SKU can be sent here to link the accessory to that SKU or package.
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="string", Description="A SKU or Package Deal package SKU can be sent here to link the accessory to that SKU or package.", Name="Sku", ParameterType="body")>]
        member val Sku:String = null with get,set

        ///<summary>
        ///Internal Use Only
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="bool", Description="Internal Use Only", Name="Report", ParameterType="body")>]
        member val Report:Nullable<Boolean> = new Nullable<Boolean>() with get,set

    [<DataContract(Name="FormInput")>]
    [<AllowNullLiteral>]
    type FormInput() = 
        ///<summary>
        ///Field name of the Input Field. If linking to an Attribute, this should match the Tag value.
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="string", Description="Field name of the Input Field. If linking to an Attribute, this should match the Tag value.", IsRequired=true, Name="Key", ParameterType="body")>]
        member val Key:String = null with get,set

        ///<summary>
        ///Value of the Input Field.
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="string", Description="Value of the Input Field.", IsRequired=true, Name="Value", ParameterType="body")>]
        member val Value:String = null with get,set

        ///<summary>
        ///Whether or not the field is encryped with the C2B encryption key.
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="boolean", Description="Whether or not the field is encryped with the C2B encryption key.", Name="Encrypted", ParameterType="body")>]
        member val Encrypted:Boolean = new Boolean() with get,set

    [<DataContract(Name="CCInfo")>]
    [<AllowNullLiteral>]
    type CcInfo() = 
        ///<summary>
        ///Token returned from processor
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="string", Description="Token returned from processor", IsRequired=true, Name="TokenStr", ParameterType="body")>]
        member val TokenStr:String = null with get,set

        ///<summary>
        ///Card Type (VISA, MCARD, AMEX, DSCVR)
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="string", Description="Card Type (VISA, MCARD, AMEX, DSCVR)", IsRequired=true, Name="CardType", ParameterType="body")>]
        member val CardType:String = null with get,set

        ///<summary>
        ///Last four of the card
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="string", Description="Last four of the card", IsRequired=true, Name="LastFour", ParameterType="body")>]
        member val LastFour:String = null with get,set

        ///<summary>
        ///Expiration Date of the Card. (MM/YY)
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="string", Description="Expiration Date of the Card. (MM/YY)", Name="Expiration", ParameterType="body")>]
        member val Expiration:String = null with get,set

        ///<summary>
        ///Reason the card is on file.
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="string", Description="Reason the card is on file.", Name="ReasonOnFile", ParameterType="body")>]
        member val ReasonOnFile:String = null with get,set

        ///<summary>
        ///ID of the existing Token Record in AIM, if applicable
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="integer", Description="ID of the existing Token Record in AIM, if applicable", Format="int64", Name="TokenPk", ParameterType="body")>]
        member val TokenPk:Nullable<Int64> = new Nullable<Int64>() with get,set

        ///<summary>
        ///Is this the customer's primary card? Defaults to false.
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="boolean", Description="Is this the customer's primary card? Defaults to false.", Name="Primary", ParameterType="body")>]
        member val Primary:Nullable<Boolean> = new Nullable<Boolean>() with get,set

    [<DataContract(Name="CustomerInfo")>]
    [<AllowNullLiteral>]
    type CustomerInfo() = 
        ///<summary>
        ///The WebId of the customer. Optional.
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="integer", Description="The WebId of the customer. Optional.", Format="int32", Name="WebId", ParameterType="body")>]
        member val WebId:Nullable<Int32> = new Nullable<Int32>() with get,set

        ///<summary>
        ///Name of the customer.
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="string", Description="Name of the customer.", IsRequired=true, Name="Name", ParameterType="body")>]
        member val Name:String = null with get,set

        ///<summary>
        ///Address line 1 of the customer
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="string", Description="Address line 1 of the customer", Name="Addr1", ParameterType="body")>]
        member val Addr1:String = null with get,set

        ///<summary>
        ///Address line 2 of the customer
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="string", Description="Address line 2 of the customer", Name="Addr2", ParameterType="body")>]
        member val Addr2:String = null with get,set

        ///<summary>
        ///City of the customer
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="string", Description="City of the customer", Name="City", ParameterType="body")>]
        member val City:String = null with get,set

        ///<summary>
        ///State/Province of the customer
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="string", Description="State/Province of the customer", Name="St", ParameterType="body")>]
        member val St:String = null with get,set

        ///<summary>
        ///Zip code of the customer
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="string", Description="Zip code of the customer", Name="Zip", ParameterType="body")>]
        member val Zip:String = null with get,set

        ///<summary>
        ///Country of the customer
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="string", Description="Country of the customer", Name="Country", ParameterType="body")>]
        member val Country:String = null with get,set

        ///<summary>
        ///Phone number of the customer
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="string", Description="Phone number of the customer", Name="Phone", ParameterType="body")>]
        member val Phone:String = null with get,set

        ///<summary>
        ///Email address of the customer. Required.
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="string", Description="Email address of the customer. Required.", IsRequired=true, Name="Email", ParameterType="body")>]
        member val Email:String = null with get,set

    ///<summary>
    ///C2BPostContractRequires active-e Contracts Service.
    ///</summary>
    [<DataContract>]
    [<AllowNullLiteral>]
    type C2BPostContractRequest() = 
        inherit BaseSecureRequest()
        ///<summary>
        ///ID of the teacher to associate the contract with.
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="integer", Description="ID of the teacher to associate the contract with.", Format="int64", Name="TeacherId", ParameterType="body")>]
        member val TeacherId:Nullable<Int64> = new Nullable<Int64>() with get,set

        ///<summary>
        ///Used to associate the contract with a school by school name.
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="string", Description="Used to associate the contract with a school by school name.", Name="SchoolName", ParameterType="body")>]
        member val SchoolName:String = null with get,set

        ///<summary>
        ///Used to associate the contract with a school by the AIM School ID
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="string", Description="Used to associate the contract with a school by the AIM School ID", Name="AIMSchoolId", ParameterType="body")>]
        member val AIMSchoolId:Nullable<Int64> = new Nullable<Int64>() with get,set

        ///<summary>
        ///Used to associate the contract with a location by location code.
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="string", Description="Used to associate the contract with a location by location code.", Name="Stloc", ParameterType="body")>]
        member val Stloc:String = null with get,set

        ///<summary>
        ///ID of the instrument to associate the contract with.
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="integer", Description="ID of the instrument to associate the contract with.", Format="int64", Name="InstrumentId", ParameterType="body")>]
        member val InstrumentId:Nullable<Int64> = new Nullable<Int64>() with get,set

        ///<summary>
        ///SKU to associate the contract with. Don't send if you send InstrumentId.
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="string", Description="SKU to associate the contract with. Don't send if you send InstrumentId.", Name="Sku", ParameterType="body")>]
        member val Sku:String = null with get,set

        ///<summary>
        ///Description to associate the contract with if a SKU is sent. Don't send if you send InstrumentId.
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="string", Description="Description to associate the contract with if a SKU is sent. Don't send if you send InstrumentId.", Name="Desc", ParameterType="body")>]
        member val Desc:String = null with get,set

        ///<summary>
        ///The ID from the C2BGradeGeneric object
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="integer", Description="The ID from the C2BGradeGeneric object", Format="int64", Name="RateId", ParameterType="body")>]
        member val RateId:Nullable<Int64> = new Nullable<Int64>() with get,set

        ///<summary>
        ///Rate object if you're not sending RateId. Don't send both.
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="object", Description="Rate object if you're not sending RateId. Don't send both.", Name="Rate", ParameterType="body")>]
        member val Rate:Rate = null with get,set

        ///<summary>
        ///List of Accessory/Delivery/Maintenance IDs.
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="array", Description="List of Accessory/Delivery/Maintenance IDs.", Name="AccessoryIdList", ParameterType="body")>]
        member val AccessoryIdList:ResizeArray<Int64> = new ResizeArray<Int64>() with get,set

        ///<summary>
        ///List of Accessory/Delivery/Maintenance objects. This is for items not defined in AIM.
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="array", Description="List of Accessory/Delivery/Maintenance objects. This is for items not defined in AIM.", Name="AccessoryList", ParameterType="body")>]
        member val AccessoryList:ResizeArray<Accessory> = new ResizeArray<Accessory>() with get,set

        ///<summary>
        ///List of Key/Value pairs containing additional information about the customer. If the Key matches an attribute tag within AIM it will populate that attribute. The following Keys are also handled specially: RENTALNOTES, ONLINESIGNATURE, ATTENTION, EMPLOYER, SOCIALSECURITY, WORKPHONE, EXTENSION, EXTENSION2, CELLPHONE, FAX, BANKROUTINGNUMBER, BANKACCOUNTNUMBER, BANKTRANSACTIONTYPE, DRIVERSLICENSENUMBER, DRIVERSLICENSESTATE, BIRTHDAY, SIGCAPTURE, WORKPHONE_EXT, CELLPHONE_EXT, FAX_EXT, CREDITCHECKNAMEOVERRIDE, DELIVERYDATE
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="array", Description="List of Key/Value pairs containing additional information about the customer. If the Key matches an attribute tag within AIM it will populate that attribute. The following Keys are also handled specially: RENTALNOTES, ONLINESIGNATURE, ATTENTION, EMPLOYER, SOCIALSECURITY, WORKPHONE, EXTENSION, EXTENSION2, CELLPHONE, FAX, BANKROUTINGNUMBER, BANKACCOUNTNUMBER, BANKTRANSACTIONTYPE, DRIVERSLICENSENUMBER, DRIVERSLICENSESTATE, BIRTHDAY, SIGCAPTURE, WORKPHONE_EXT, CELLPHONE_EXT, FAX_EXT, CREDITCHECKNAMEOVERRIDE, DELIVERYDATE", Name="FormInputList", ParameterType="body")>]
        member val FormInputList:ResizeArray<FormInput> = new ResizeArray<FormInput>() with get,set

        ///<summary>
        ///Credit Card Information
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="object", Description="Credit Card Information", Name="CcInfo", ParameterType="body")>]
        member val CcInfo:CcInfo = null with get,set

        ///<summary>
        ///Customer Information if the a CusAcct is not being passed in.
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="object", Description="Customer Information if the a CusAcct is not being passed in.", Name="CustomerInfo", ParameterType="body")>]
        member val CustomerInfo:CustomerInfo = null with get,set

        ///<summary>
        ///AIM Customer Acct# to be linked to this contract. Do not pass in CustomerInfo if using CusAcct.
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="integer", Description="AIM Customer Acct# to be linked to this contract. Do not pass in CustomerInfo if using CusAcct.", Format="int32", Name="CusAcct", ParameterType="body")>]
        member val CusAcct:Nullable<Int32> = new Nullable<Int32>() with get,set

        ///<summary>
        ///Used to associate a contract with a Cat/Sub rather then a SKU. Don't send if you send InstrumentId or SKU.
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="int", Description="Used to associate a contract with a Cat/Sub rather then a SKU. Don't send if you send InstrumentId or SKU.", Name="Cat", ParameterType="body")>]
        member val Cat:Nullable<Int32> = new Nullable<Int32>() with get,set

        ///<summary>
        ///Used to associate a contract with a Cat/Sub rather then a SKU. Don't send if you send InstrumentId or SKU.
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="int", Description="Used to associate a contract with a Cat/Sub rather then a SKU. Don't send if you send InstrumentId or SKU.", Name="Sub", ParameterType="body")>]
        member val Sub:Nullable<Int32> = new Nullable<Int32>() with get,set

        ///<summary>
        ///If TRUE is sent, a Topic will be returned with information from AIM. Usually not used.
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="bool", Description="If TRUE is sent, a Topic will be returned with information from AIM. Usually not used.", Name="ReturnTopic", ParameterType="body")>]
        member val ReturnTopic:Nullable<Boolean> = new Nullable<Boolean>() with get,set

        ///<summary>
        ///If sent, the Contract will have the specified status in AIM upon creation. Use ContractStatusListing to get the desired Id. Usually not used.
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="int", Description="If sent, the Contract will have the specified status in AIM upon creation. Use ContractStatusListing to get the desired Id. Usually not used.", Name="StatusId", ParameterType="body")>]
        member val StatusId:Nullable<Int64> = new Nullable<Int64>() with get,set

        ///<summary>
        ///Internal Use Only. Do not use.
        ///</summary>
        [<DataMember>]
        [<ApiMember(DataType="string", Description="Internal Use Only. Do not use.", Name="CardTerminalId", ParameterType="body")>]
        member val CardTerminalId:String = null with get,set

F# C2BPostContractRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /api/C2BPostContract HTTP/1.1 
Host: active-ewebservice.biz 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"TeacherId":0,"SchoolName":"String","AIMSchoolId":0,"Stloc":"String","InstrumentId":0,"Sku":"String","Desc":"String","RateId":0,"Rate":{"PlanCode":"String","Level":0,"Grade":"String","DownPay":0,"MoPay":0,"DownMaint":0,"MoMaint":0,"RdfType":"String","ContractDefaultId":0,"Months":0,"DownLease":0,"MoLease":0},"AccessoryIdList":[0],"AccessoryList":[{"Desc":"String","Price":0,"Type":"String","CatNum":0,"Sku":"String","Report":false}],"FormInputList":[{"Key":"String","Value":"String","Encrypted":false}],"CcInfo":{"TokenStr":"String","CardType":"String","LastFour":"String","Expiration":"String","ReasonOnFile":"String","TokenPk":0,"Primary":false},"CustomerInfo":{"WebId":0,"Name":"String","Addr1":"String","Addr2":"String","City":"String","St":"String","Zip":"String","Country":"String","Phone":"String","Email":"String"},"CusAcct":0,"Cat":0,"Sub":0,"ReturnTopic":false,"StatusId":0,"CardTerminalId":"String","Token":"String","ApiKey":"String","OAuthToken":"String","DeviceId":"String","AppId":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"PaymentRequired":false,"Topic":"String","WebRef":"String","BaseUrl":"String","Status":{"StatusCode":"String","Login":"String","ErrorCode":"String","ErrorDisplayText":"String","ErrorMessage":"String","DomainName":"String","IpAddress":"String"}}