Sanctions Search API: v2

<back to all web services

RegisterAccountTemplate

Account
The following routes are available for this service:
GET/account/register/templateGet a template to create a new account
import java.math.*
import java.util.*
import net.servicestack.client.*
import com.google.gson.annotations.*
import com.google.gson.reflect.*


@DataContract
open class RegisterAccountTemplate
{
}

@DataContract
open class RegisterAccountTemplateResponse
{
    /**
    * The response data
    */
    @DataMember
    @ApiMember(Description="The response data")
    @SerializedName("data") var Data:RegisterAccountTemplateData? = null
}

open class RegisterAccountTemplateData : BaseResponse()
{
    /**
    * The request body of the RegisterAccount endpoint
    */
    @ApiMember(Description="The request body of the RegisterAccount endpoint")
    var request:RegisterAccountRequest? = null

    /**
    * Reference data to fill out the RegisterAccount body
    */
    @ApiMember(Description="Reference data to fill out the RegisterAccount body")
    var referenceData:ReferenceData? = null
}

open class BaseResponse : IBaseDataResponse, IHasResponseStatus
{
    /**
    * The status of the response
    */
    @ApiMember(Description="The status of the response")
    var responseStatus:ResponseStatus? = null
}

open class ArrayOfResponseError : ArrayList<ResponseError>()
{
}

open class RegisterAccountRequest
{
    /**
    * The desired login username for the account
    */
    @ApiMember(Description="The desired login username for the account", IsRequired=true)
    var username:String? = null

    /**
    * The password for account login
    */
    @ApiMember(Description="The password for account login", IsRequired=true)
    var password:String? = null

    /**
    * The contact email address for the account holder
    */
    @ApiMember(Description="The contact email address for the account holder", IsRequired=true)
    var email:String? = null

    /**
    * The full legal name of the account holder
    */
    @ApiMember(Description="The full legal name of the account holder", IsRequired=true)
    var fullName:String? = null

    /**
    * The registered name of the company associated with this account
    */
    @ApiMember(Description="The registered name of the company associated with this account", IsRequired=true)
    var companyName:String? = null

    /**
    * The primary contact phone number of the company
    */
    @ApiMember(Description="The primary contact phone number of the company", IsRequired=true)
    var companyPhone:String? = null

    /**
    * The first line of the company’s address (e.g., street name and number)
    */
    @ApiMember(Description="The first line of the company’s address (e.g., street name and number)", IsRequired=true)
    var address1:String? = null

    /**
    * The second line of the company’s address (optional)
    */
    @ApiMember(Description="The second line of the company’s address (optional)")
    var address2:String? = null

    /**
    * The third line of the company’s address (optional)
    */
    @ApiMember(Description="The third line of the company’s address (optional)")
    var address3:String? = null

    /**
    * The city where the company is located (optional)
    */
    @ApiMember(Description="The city where the company is located (optional)")
    var city:String? = null

    /**
    * The postal or ZIP code of the company’s address
    */
    @ApiMember(Description="The postal or ZIP code of the company’s address", IsRequired=true)
    var postcode:String? = null

    /**
    * The country where the company is registered
    */
    @ApiMember(Description="The country where the company is registered", IsRequired=true)
    var country:String? = null

    /**
    * The classification of the company (e.g., LLC, Corporation, Sole Proprietorship)
    */
    @ApiMember(Description="The classification of the company (e.g., LLC, Corporation, Sole Proprietorship)", IsRequired=true)
    var companyType:String? = null

    /**
    * The industry sector the company operates in
    */
    @ApiMember(Description="The industry sector the company operates in", IsRequired=true)
    var companyIndustry:String? = null

    /**
    * The trade body, network, or affiliation the company is a member of (if applicable)
    */
    @ApiMember(Description="The trade body, network, or affiliation the company is a member of (if applicable)")
    var companyNetwork:String? = null

    /**
    * Indicates agreement to the terms and conditions (required)
    */
    @ApiMember(Description="Indicates agreement to the terms and conditions (required)", IsRequired=true)
    var agreeToTerms:Boolean? = null

    /**
    * Indicates agreement to the data protection statement (required)
    */
    @ApiMember(Description="Indicates agreement to the data protection statement (required)", IsRequired=true)
    var agreeToDataProtection:Boolean? = null

    /**
    * Indicates consent to be contacted (optional)
    */
    @ApiMember(Description="Indicates consent to be contacted (optional)")
    var agreeToContact:Boolean? = null

    /**
    * Indicates agreement to the privacy policy (required)
    */
    @ApiMember(Description="Indicates agreement to the privacy policy (required)", IsRequired=true)
    var agreeToPrivacy:Boolean? = null

    /**
    * An optional voucher code for discounts or promotions
    */
    @ApiMember(Description="An optional voucher code for discounts or promotions")
    var voucherCode:String? = null

    /**
    * An optional code that grants access to certain features or subscriptions
    */
    @ApiMember(Description="An optional code that grants access to certain features or subscriptions")
    var accountActivationCode:String? = null

    /**
    * The company's VAT registration number (if applicable)
    */
    @ApiMember(Description="The company's VAT registration number (if applicable)")
    var vatNumber:String? = null

    /**
    * The country where the company is VAT-registered
    */
    @ApiMember(Description="The country where the company is VAT-registered")
    var vatCountry:String? = null
}

open class ReferenceData
{
    /**
    * A list of supported country values
    */
    @ApiMember(Description="A list of supported country values")
    var countries:ArrayOfCountry? = null

    /**
    * A list of valid industry classifications for companies
    */
    @ApiMember(Description="A list of valid industry classifications for companies")
    var companyIndustries:ArrayOfCompanyIndustry? = null

    /**
    * A list of accepted company types
    */
    @ApiMember(Description="A list of accepted company types")
    var companyTypes:ArrayOfCompanyType? = null

    /**
    * A list of countries where VAT registration is recognized
    */
    @ApiMember(Description="A list of countries where VAT registration is recognized")
    var vatCountries:ArrayOfVATCountry? = null

    /**
    * A URL linking to the terms and conditions document
    */
    @ApiMember(Description="A URL linking to the terms and conditions document")
    var termsAndConditionsLink:String? = null

    /**
    * A URL linking to the privacy policy
    */
    @ApiMember(Description="A URL linking to the privacy policy")
    var privacyPolicyLink:String? = null

    /**
    * The statement regarding contact preferences
    */
    @ApiMember(Description="The statement regarding contact preferences")
    var contactStatement:String? = null

    /**
    * The statement outlining data protection policies
    */
    @ApiMember(Description="The statement outlining data protection policies")
    var dataProtectionStatement:String? = null
}

open class ArrayOfCountry : ArrayList<String>()
{
}

open class ArrayOfCompanyIndustry : ArrayList<String>()
{
}

open class ArrayOfCompanyType : ArrayList<String>()
{
}

open class ArrayOfVATCountry : ArrayList<String>()
{
}

Kotlin RegisterAccountTemplate 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.

GET /account/register/template HTTP/1.1 
Host: api.sanctionssearch.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"data":{"request":{"username":"String","password":"String","email":"String","fullName":"String","companyName":"String","companyPhone":"String","address1":"String","address2":"String","address3":"String","city":"String","postcode":"String","country":"String","companyType":"String","companyIndustry":"String","companyNetwork":"String","agreeToTerms":false,"agreeToDataProtection":false,"agreeToContact":false,"agreeToPrivacy":false,"voucherCode":"String","accountActivationCode":"String","vatNumber":"String","vatCountry":"String"},"referenceData":{"countries":["String"],"companyIndustries":["String"],"companyTypes":["String"],"vatCountries":["String"],"termsAndConditionsLink":"String","privacyPolicyLink":"String","contactStatement":"String","dataProtectionStatement":"String"},"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}}