Sanctions Search API: v2

<back to all web services

RegisterAccount

Account
The following routes are available for this service:
POST/account/registerCreate a new account
RegisterAccount Parameters:
NameParameterData TypeRequiredDescription
RequestbodyRegisterAccountRequestNo
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
Authenticationheader, bodyAuthenticationYesThe authentication credentials
Authentication Parameters:
NameParameterData TypeRequiredDescription
ApiUserIdheader, bodystringYesThe API User ID provided by us when you signed up to use our API
ApiUserKeyheader, bodystringYesThe API User Key provided by us when you signed up to use our API
RegisterAccountRequest Parameters:
NameParameterData TypeRequiredDescription
UsernameformstringYesThe desired login username for the account
PasswordformstringYesThe password for account login
EmailformstringYesThe contact email address for the account holder
FullNameformstringYesThe full legal name of the account holder
CompanyNameformstringYesThe registered name of the company associated with this account
CompanyPhoneformstringYesThe primary contact phone number of the company
Address1formstringYesThe first line of the company’s address (e.g., street name and number)
Address2formstringNoThe second line of the company’s address (optional)
Address3formstringNoThe third line of the company’s address (optional)
CityformstringNoThe city where the company is located (optional)
PostcodeformstringYesThe postal or ZIP code of the company’s address
CountryformstringYesThe country where the company is registered
CompanyTypeformstringYesThe classification of the company (e.g., LLC, Corporation, Sole Proprietorship)
CompanyIndustryformstringYesThe industry sector the company operates in
CompanyNetworkformstringNoThe trade body, network, or affiliation the company is a member of (if applicable)
AgreeToTermsformboolYesIndicates agreement to the terms and conditions (required)
AgreeToDataProtectionformboolYesIndicates agreement to the data protection statement (required)
AgreeToContactformboolNoIndicates consent to be contacted (optional)
AgreeToPrivacyformboolYesIndicates agreement to the privacy policy (required)
VoucherCodeformstringNoAn optional voucher code for discounts or promotions
AccountActivationCodeformstringNoAn optional code that grants access to certain features or subscriptions
VATNumberformstringNoThe company's VAT registration number (if applicable)
VATCountryformstringNoThe country where the company is VAT-registered
RegisterAccountResponse Parameters:
NameParameterData TypeRequiredDescription
DataformRegisterAccountDataNoThe response data
RegisterAccountData Parameters:
NameParameterData TypeRequiredDescription
ApiUserIdformstringNoA unique identifier for the users API access
ApiUserKeyformstringNoA secure, randomly generated key used for API authentication
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNoThe status of the response
ResponseStatus Parameters:
NameParameterData TypeRequiredDescription
ErrorCodeformstringNo
MessageformstringNo
StackTraceformstringNo
ErrorsformArrayOfResponseErrorNo
MetaformDictionary<string, string>No
ResponseError Parameters:
NameParameterData TypeRequiredDescription
ErrorCodeformstringNo
FieldNameformstringNo
MessageformstringNo
MetaformDictionary<string, string>No

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 /account/register HTTP/1.1 
Host: api.sanctionssearch.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"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"},"authentication":{"apiUserId":"String","apiUserKey":"String"}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"data":{"apiUserId":"String","apiUserKey":"String","responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}}