Creates a new ShipStation account and generates an apiKey and apiSecret to be used by the newly created account.
To become a direct partner with ShipStation, or to request more information on becoming a direct partner, we recommend that you contact our Partners and Integrations team.
POST /accounts/registeraccount HTTP/1.1
Host: ssapi.shipstation.com
Content-Type: application/json
{
"firstName": "John",
"lastName": "Smith",
"email": "[email protected]",
"password": "testpw1234",
"shippingOriginCountryCode": "US",
"companyName": "Droid Repair LLC",
"addr1": "542 Midichlorian Rd.",
"addr2": "",
"city": "Austin",
"state": "TX",
"zip": "78703",
"countryCode": "US",
"phone": "5124111234"
}
curl -iX POST https://ssapi.shipstation.com/accounts/registeraccount \
-H 'Content-Type: application/json' \
-d '{
"firstName": "John",
"lastName": "Smith",
"email": "[email protected]",
"password": "testpw1234",
"shippingOriginCountryCode": "US",
"companyName": "Droid Repair LLC",
"addr1": "542 Midichlorian Rd.",
"addr2": "",
"city": "Austin",
"state": "TX",
"zip": "78703",
"countryCode": "US",
"phone": "5124111234"
}'
$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"
$headers.Add("Host", "ssapi.shipstation.com")
$headers.Add("Content-Type", "application/json")
$body = "{`n `"firstName`": `"John`",`n `"lastName`": `"Smith`",`n `"email`": `"[email protected]`",`n `"password`": `"testpw1234`",`n `"shippingOriginCountryCode`": `"US`",`n `"companyName`": `"Droid Repair LLC`",`n `"addr1`": `"542 Midichlorian Rd.`",`n `"addr2`": `"`",`n `"city`": `"Austin`",`n `"state`": `"TX`",`n `"zip`": `"78703`",`n `"countryCode`": `"US`",`n `"phone`": `"5124111234`"`n}"
$response = Invoke-RestMethod 'https://ssapi.shipstation.com/accounts/registeraccount' -Method 'POST' -Headers $headers -Body $body
$response | ConvertTo-Json
var myHeaders = new Headers();
myHeaders.append("Host", "ssapi.shipstation.com");
myHeaders.append("Content-Type", "application/json");
var raw = JSON.stringify({"firstName":"John","lastName":"Smith","email":"[email protected]","password":"testpw1234","shippingOriginCountryCode":"US","companyName":"Droid Repair LLC","addr1":"542 Midichlorian Rd.","addr2":"","city":"Austin","state":"TX","zip":"78703","countryCode":"US","phone":"5124111234"});
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://ssapi.shipstation.com/accounts/registeraccount", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://ssapi.shipstation.com/accounts/registeraccount',
'headers': {
'Host': 'ssapi.shipstation.com',
'Content-Type': 'application/json'
},
body: JSON.stringify({"firstName":"John","lastName":"Smith","email":"[email protected]","password":"testpw1234","shippingOriginCountryCode":"US","companyName":"Droid Repair LLC","addr1":"542 Midichlorian Rd.","addr2":"","city":"Austin","state":"TX","zip":"78703","countryCode":"US","phone":"5124111234"})
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://ssapi.shipstation.com/accounts/registeraccount",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS =>"{\n \"firstName\": \"John\",\n \"lastName\": \"Smith\",\n \"email\": \"[email protected]\",\n \"password\": \"testpw1234\",\n \"shippingOriginCountryCode\": \"US\",\n \"companyName\": \"Droid Repair LLC\",\n \"addr1\": \"542 Midichlorian Rd.\",\n \"addr2\": \"\",\n \"city\": \"Austin\",\n \"state\": \"TX\",\n \"zip\": \"78703\",\n \"countryCode\": \"US\",\n \"phone\": \"5124111234\"\n}",
CURLOPT_HTTPHEADER => array(
"Host: ssapi.shipstation.com",
"Content-Type: application/json"
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
import requests
url = "https://ssapi.shipstation.com/accounts/registeraccount"
payload = "{\n \"firstName\": \"John\",\n \"lastName\": \"Smith\",\n \"email\": \"[email protected]\",\n \"password\": \"testpw1234\",\n \"shippingOriginCountryCode\": \"US\",\n \"companyName\": \"Droid Repair LLC\",\n \"addr1\": \"542 Midichlorian Rd.\",\n \"addr2\": \"\",\n \"city\": \"Austin\",\n \"state\": \"TX\",\n \"zip\": \"78703\",\n \"countryCode\": \"US\",\n \"phone\": \"5124111234\"\n}"
headers = {
'Host': 'ssapi.shipstation.com',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data = payload)
print(response.text.encode('utf8'))
require "uri"
require "net/http"
url = URI("https://ssapi.shipstation.com/accounts/registeraccount")
https = Net::HTTP.new(url.host, url.port);
https.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Host"] = "ssapi.shipstation.com"
request["Content-Type"] = "application/json"
request.body = "{\n \"firstName\": \"John\",\n \"lastName\": \"Smith\",\n \"email\": \"[email protected]\",\n \"password\": \"testpw1234\",\n \"shippingOriginCountryCode\": \"US\",\n \"companyName\": \"Droid Repair LLC\",\n \"addr1\": \"542 Midichlorian Rd.\",\n \"addr2\": \"\",\n \"city\": \"Austin\",\n \"state\": \"TX\",\n \"zip\": \"78703\",\n \"countryCode\": \"US\",\n \"phone\": \"5124111234\"\n}"
response = https.request(request)
puts response.read_body
var client = new RestClient("https://ssapi.shipstation.com/accounts/registeraccount");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Host", "ssapi.shipstation.com");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n \"firstName\": \"John\",\n \"lastName\": \"Smith\",\n \"email\": \"[email protected]\",\n \"password\": \"testpw1234\",\n \"shippingOriginCountryCode\": \"US\",\n \"companyName\": \"Droid Repair LLC\",\n \"addr1\": \"542 Midichlorian Rd.\",\n \"addr2\": \"\",\n \"city\": \"Austin\",\n \"state\": \"TX\",\n \"zip\": \"78703\",\n \"countryCode\": \"US\",\n \"phone\": \"5124111234\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"firstName\": \"John\",\n \"lastName\": \"Smith\",\n \"email\": \"[email protected]\",\n \"password\": \"testpw1234\",\n \"shippingOriginCountryCode\": \"US\",\n \"companyName\": \"Droid Repair LLC\",\n \"addr1\": \"542 Midichlorian Rd.\",\n \"addr2\": \"\",\n \"city\": \"Austin\",\n \"state\": \"TX\",\n \"zip\": \"78703\",\n \"countryCode\": \"US\",\n \"phone\": \"5124111234\"\n}");
Request request = new Request.Builder()
.url("https://ssapi.shipstation.com/accounts/registeraccount")
.method("POST", body)
.addHeader("Host", "ssapi.shipstation.com")
.addHeader("Content-Type", "application/json")
.build();
Response response = client.newCall(request).execute();
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://ssapi.shipstation.com/accounts/registeraccount"
method := "POST"
payload := strings.NewReader("{\n \"firstName\": \"John\",\n \"lastName\": \"Smith\",\n \"email\": \"[email protected]\",\n \"password\": \"testpw1234\",\n \"shippingOriginCountryCode\": \"US\",\n \"companyName\": \"Droid Repair LLC\",\n \"addr1\": \"542 Midichlorian Rd.\",\n \"addr2\": \"\",\n \"city\": \"Austin\",\n \"state\": \"TX\",\n \"zip\": \"78703\",\n \"countryCode\": \"US\",\n \"phone\": \"5124111234\"\n}")
client := &http.Client {
}
req, err := http.NewRequest(method, url, payload)
if err != nil {
fmt.Println(err)
}
req.Header.Add("Host", "ssapi.shipstation.com")
req.Header.Add("Content-Type", "application/json")
res, err := client.Do(req)
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
fmt.Println(string(body))
}
#import <Foundation/Foundation.h>
dispatch_semaphore_t sema = dispatch_semaphore_create(0);
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://ssapi.shipstation.com/accounts/registeraccount"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
NSDictionary *headers = @{
@"Host": @"ssapi.shipstation.com",
@"Content-Type": @"application/json"
};
[request setAllHTTPHeaderFields:headers];
NSData *postData = [[NSData alloc] initWithData:[@"{\n \"firstName\": \"John\",\n \"lastName\": \"Smith\",\n \"email\": \"[email protected]\",\n \"password\": \"testpw1234\",\n \"shippingOriginCountryCode\": \"US\",\n \"companyName\": \"Droid Repair LLC\",\n \"addr1\": \"542 Midichlorian Rd.\",\n \"addr2\": \"\",\n \"city\": \"Austin\",\n \"state\": \"TX\",\n \"zip\": \"78703\",\n \"countryCode\": \"US\",\n \"phone\": \"5124111234\"\n}" dataUsingEncoding:NSUTF8StringEncoding]];
[request setHTTPBody:postData];
[request setHTTPMethod:@"POST"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSError *parseError = nil;
NSDictionary *responseDictionary = [NSJSONSerialization JSONObjectWithData:data options:0 error:&parseError];
NSLog(@"%@",responseDictionary);
dispatch_semaphore_signal(sema);
}
}];
[dataTask resume];
dispatch_semaphore_wait(sema, DISPATCH_TIME_FOREVER);
import Foundation
var semaphore = DispatchSemaphore (value: 0)
let parameters = "{\n \"firstName\": \"John\",\n \"lastName\": \"Smith\",\n \"email\": \"[email protected]\",\n \"password\": \"testpw1234\",\n \"shippingOriginCountryCode\": \"US\",\n \"companyName\": \"Droid Repair LLC\",\n \"addr1\": \"542 Midichlorian Rd.\",\n \"addr2\": \"\",\n \"city\": \"Austin\",\n \"state\": \"TX\",\n \"zip\": \"78703\",\n \"countryCode\": \"US\",\n \"phone\": \"5124111234\"\n}"
let postData = parameters.data(using: .utf8)
var request = URLRequest(url: URL(string: "https://ssapi.shipstation.com/accounts/registeraccount")!,timeoutInterval: Double.infinity)
request.addValue("ssapi.shipstation.com", forHTTPHeaderField: "Host")
request.addValue("application/json", forHTTPHeaderField: "Content-Type")
request.httpMethod = "POST"
request.httpBody = postData
let task = URLSession.shared.dataTask(with: request) { data, response, error in
guard let data = data else {
print(String(describing: error))
return
}
print(String(data: data, encoding: .utf8)!)
semaphore.signal()
}
task.resume()
semaphore.wait()