Typescript (SDK)
import { Crevio } from "@crevio/sdk";
const crevio = new Crevio({
apiKey: process.env["CREVIO_API_KEY"] ?? "",
});
async function run() {
const result = await crevio.formations.submit({
entityType: "LLC",
state: "Oklahoma",
naicsCode: "<value>",
description: "hippodrome emphasize ferociously eulogise through gadzooks phew reschedule beyond",
nameOptions: [
{
name: "<value>",
entityTypeEnding: "Limited Liability Company",
},
],
members: [
{
legalFirstName: "<value>",
legalLastName: "<value>",
contactFullName: "<value>",
ownershipPercent: 1306.42,
address: {
line1: "<value>",
city: "Lindsaychester",
state: "Ohio",
postalCode: "26472",
country: "China",
},
},
],
responsibleParty: {
legalFirstName: "<value>",
legalLastName: "<value>",
address: {
line1: "<value>",
city: "Elmoreworth",
state: "Delaware",
postalCode: "30968-7847",
country: "Liechtenstein",
},
},
mailingAddress: {
line1: "<value>",
city: "Flatleystad",
state: "Vermont",
postalCode: "95160",
country: "Russian Federation",
},
});
console.log(result);
}
run();curl --request POST \
--url https://api.crevio.co/v1/formations \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"entity_type": "LLC",
"state": "<string>",
"naics_code": "<string>",
"description": "<string>",
"name_options": [
{
"name": "<string>"
}
],
"members": [
{
"legal_first_name": "<string>",
"legal_last_name": "<string>",
"contact_full_name": "<string>",
"ownership_percent": 123,
"address": {
"line1": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>",
"line2": "<string>",
"phone": "<string>"
},
"is_natural_person": true,
"ssn": "<string>"
}
],
"responsible_party": {
"legal_first_name": "<string>",
"legal_last_name": "<string>",
"address": {
"line1": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>",
"line2": "<string>",
"phone": "<string>"
},
"email": "<string>",
"ssn": "<string>"
},
"mailing_address": {
"line1": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>",
"line2": "<string>",
"phone": "<string>"
},
"phone_number": "<string>",
"verification_id": "<string>"
}
'import requests
url = "https://api.crevio.co/v1/formations"
payload = {
"entity_type": "LLC",
"state": "<string>",
"naics_code": "<string>",
"description": "<string>",
"name_options": [{ "name": "<string>" }],
"members": [
{
"legal_first_name": "<string>",
"legal_last_name": "<string>",
"contact_full_name": "<string>",
"ownership_percent": 123,
"address": {
"line1": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>",
"line2": "<string>",
"phone": "<string>"
},
"is_natural_person": True,
"ssn": "<string>"
}
],
"responsible_party": {
"legal_first_name": "<string>",
"legal_last_name": "<string>",
"address": {
"line1": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>",
"line2": "<string>",
"phone": "<string>"
},
"email": "<string>",
"ssn": "<string>"
},
"mailing_address": {
"line1": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>",
"line2": "<string>",
"phone": "<string>"
},
"phone_number": "<string>",
"verification_id": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
entity_type: 'LLC',
state: '<string>',
naics_code: '<string>',
description: '<string>',
name_options: [{name: '<string>'}],
members: [
{
legal_first_name: '<string>',
legal_last_name: '<string>',
contact_full_name: '<string>',
ownership_percent: 123,
address: {
line1: '<string>',
city: '<string>',
state: '<string>',
postal_code: '<string>',
country: '<string>',
line2: '<string>',
phone: '<string>'
},
is_natural_person: true,
ssn: '<string>'
}
],
responsible_party: {
legal_first_name: '<string>',
legal_last_name: '<string>',
address: {
line1: '<string>',
city: '<string>',
state: '<string>',
postal_code: '<string>',
country: '<string>',
line2: '<string>',
phone: '<string>'
},
email: '<string>',
ssn: '<string>'
},
mailing_address: {
line1: '<string>',
city: '<string>',
state: '<string>',
postal_code: '<string>',
country: '<string>',
line2: '<string>',
phone: '<string>'
},
phone_number: '<string>',
verification_id: '<string>'
})
};
fetch('https://api.crevio.co/v1/formations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.crevio.co/v1/formations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'entity_type' => 'LLC',
'state' => '<string>',
'naics_code' => '<string>',
'description' => '<string>',
'name_options' => [
[
'name' => '<string>'
]
],
'members' => [
[
'legal_first_name' => '<string>',
'legal_last_name' => '<string>',
'contact_full_name' => '<string>',
'ownership_percent' => 123,
'address' => [
'line1' => '<string>',
'city' => '<string>',
'state' => '<string>',
'postal_code' => '<string>',
'country' => '<string>',
'line2' => '<string>',
'phone' => '<string>'
],
'is_natural_person' => true,
'ssn' => '<string>'
]
],
'responsible_party' => [
'legal_first_name' => '<string>',
'legal_last_name' => '<string>',
'address' => [
'line1' => '<string>',
'city' => '<string>',
'state' => '<string>',
'postal_code' => '<string>',
'country' => '<string>',
'line2' => '<string>',
'phone' => '<string>'
],
'email' => '<string>',
'ssn' => '<string>'
],
'mailing_address' => [
'line1' => '<string>',
'city' => '<string>',
'state' => '<string>',
'postal_code' => '<string>',
'country' => '<string>',
'line2' => '<string>',
'phone' => '<string>'
],
'phone_number' => '<string>',
'verification_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.crevio.co/v1/formations"
payload := strings.NewReader("{\n \"entity_type\": \"LLC\",\n \"state\": \"<string>\",\n \"naics_code\": \"<string>\",\n \"description\": \"<string>\",\n \"name_options\": [\n {\n \"name\": \"<string>\"\n }\n ],\n \"members\": [\n {\n \"legal_first_name\": \"<string>\",\n \"legal_last_name\": \"<string>\",\n \"contact_full_name\": \"<string>\",\n \"ownership_percent\": 123,\n \"address\": {\n \"line1\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"line2\": \"<string>\",\n \"phone\": \"<string>\"\n },\n \"is_natural_person\": true,\n \"ssn\": \"<string>\"\n }\n ],\n \"responsible_party\": {\n \"legal_first_name\": \"<string>\",\n \"legal_last_name\": \"<string>\",\n \"address\": {\n \"line1\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"line2\": \"<string>\",\n \"phone\": \"<string>\"\n },\n \"email\": \"<string>\",\n \"ssn\": \"<string>\"\n },\n \"mailing_address\": {\n \"line1\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"line2\": \"<string>\",\n \"phone\": \"<string>\"\n },\n \"phone_number\": \"<string>\",\n \"verification_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.crevio.co/v1/formations")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"entity_type\": \"LLC\",\n \"state\": \"<string>\",\n \"naics_code\": \"<string>\",\n \"description\": \"<string>\",\n \"name_options\": [\n {\n \"name\": \"<string>\"\n }\n ],\n \"members\": [\n {\n \"legal_first_name\": \"<string>\",\n \"legal_last_name\": \"<string>\",\n \"contact_full_name\": \"<string>\",\n \"ownership_percent\": 123,\n \"address\": {\n \"line1\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"line2\": \"<string>\",\n \"phone\": \"<string>\"\n },\n \"is_natural_person\": true,\n \"ssn\": \"<string>\"\n }\n ],\n \"responsible_party\": {\n \"legal_first_name\": \"<string>\",\n \"legal_last_name\": \"<string>\",\n \"address\": {\n \"line1\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"line2\": \"<string>\",\n \"phone\": \"<string>\"\n },\n \"email\": \"<string>\",\n \"ssn\": \"<string>\"\n },\n \"mailing_address\": {\n \"line1\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"line2\": \"<string>\",\n \"phone\": \"<string>\"\n },\n \"phone_number\": \"<string>\",\n \"verification_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.crevio.co/v1/formations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"entity_type\": \"LLC\",\n \"state\": \"<string>\",\n \"naics_code\": \"<string>\",\n \"description\": \"<string>\",\n \"name_options\": [\n {\n \"name\": \"<string>\"\n }\n ],\n \"members\": [\n {\n \"legal_first_name\": \"<string>\",\n \"legal_last_name\": \"<string>\",\n \"contact_full_name\": \"<string>\",\n \"ownership_percent\": 123,\n \"address\": {\n \"line1\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"line2\": \"<string>\",\n \"phone\": \"<string>\"\n },\n \"is_natural_person\": true,\n \"ssn\": \"<string>\"\n }\n ],\n \"responsible_party\": {\n \"legal_first_name\": \"<string>\",\n \"legal_last_name\": \"<string>\",\n \"address\": {\n \"line1\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"line2\": \"<string>\",\n \"phone\": \"<string>\"\n },\n \"email\": \"<string>\",\n \"ssn\": \"<string>\"\n },\n \"mailing_address\": {\n \"line1\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"line2\": \"<string>\",\n \"phone\": \"<string>\"\n },\n \"phone_number\": \"<string>\",\n \"verification_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"object": "<string>",
"entity_type": "LLC",
"state": "<string>",
"naics_code": "<string>",
"description": "<string>",
"name_options": "<array>",
"members": "<array>",
"responsible_party": {},
"mailing_address": {},
"ein": "<string>",
"formation_filing_date": "<string>",
"admin_notes": "<array>",
"doola_error": "<string>",
"stripe_checkout_session_id": "<string>",
"submitted_at": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"doola_company_id": "<string>",
"verification_id": "<string>",
"documents": [
{
"id": "<string>",
"object": "<string>",
"name": "<string>",
"content_type": "<string>",
"doola_created_at": "<string>",
"doola_last_modified_at": "<string>",
"doola_company_id": "<string>",
"download_url": "<string>"
}
],
"checkout_url": "<string>",
"charged_inline": true
}{
"error": {
"type": "invalid_request_error",
"code": "bad_request",
"message": "The request was malformed or contained invalid parameters"
}
}{
"error": {
"type": "invalid_request_error",
"code": "authentication_required",
"message": "You did not provide an API key."
}
}{
"error": {
"type": "invalid_request_error",
"code": "forbidden",
"message": "You do not have permission to perform this action"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"param": "<string>",
"errors": {}
}
}{
"error": {
"type": "api_error",
"code": "internal_error",
"message": "An unexpected error occurred"
}
}Formations
Submit formation
Create a draft formation and start payment. Returns a Stripe checkout_url unless the account has a saved card, in which case the charge happens inline and charged_inline is true.
POST
/
formations
Typescript (SDK)
import { Crevio } from "@crevio/sdk";
const crevio = new Crevio({
apiKey: process.env["CREVIO_API_KEY"] ?? "",
});
async function run() {
const result = await crevio.formations.submit({
entityType: "LLC",
state: "Oklahoma",
naicsCode: "<value>",
description: "hippodrome emphasize ferociously eulogise through gadzooks phew reschedule beyond",
nameOptions: [
{
name: "<value>",
entityTypeEnding: "Limited Liability Company",
},
],
members: [
{
legalFirstName: "<value>",
legalLastName: "<value>",
contactFullName: "<value>",
ownershipPercent: 1306.42,
address: {
line1: "<value>",
city: "Lindsaychester",
state: "Ohio",
postalCode: "26472",
country: "China",
},
},
],
responsibleParty: {
legalFirstName: "<value>",
legalLastName: "<value>",
address: {
line1: "<value>",
city: "Elmoreworth",
state: "Delaware",
postalCode: "30968-7847",
country: "Liechtenstein",
},
},
mailingAddress: {
line1: "<value>",
city: "Flatleystad",
state: "Vermont",
postalCode: "95160",
country: "Russian Federation",
},
});
console.log(result);
}
run();curl --request POST \
--url https://api.crevio.co/v1/formations \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"entity_type": "LLC",
"state": "<string>",
"naics_code": "<string>",
"description": "<string>",
"name_options": [
{
"name": "<string>"
}
],
"members": [
{
"legal_first_name": "<string>",
"legal_last_name": "<string>",
"contact_full_name": "<string>",
"ownership_percent": 123,
"address": {
"line1": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>",
"line2": "<string>",
"phone": "<string>"
},
"is_natural_person": true,
"ssn": "<string>"
}
],
"responsible_party": {
"legal_first_name": "<string>",
"legal_last_name": "<string>",
"address": {
"line1": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>",
"line2": "<string>",
"phone": "<string>"
},
"email": "<string>",
"ssn": "<string>"
},
"mailing_address": {
"line1": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>",
"line2": "<string>",
"phone": "<string>"
},
"phone_number": "<string>",
"verification_id": "<string>"
}
'import requests
url = "https://api.crevio.co/v1/formations"
payload = {
"entity_type": "LLC",
"state": "<string>",
"naics_code": "<string>",
"description": "<string>",
"name_options": [{ "name": "<string>" }],
"members": [
{
"legal_first_name": "<string>",
"legal_last_name": "<string>",
"contact_full_name": "<string>",
"ownership_percent": 123,
"address": {
"line1": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>",
"line2": "<string>",
"phone": "<string>"
},
"is_natural_person": True,
"ssn": "<string>"
}
],
"responsible_party": {
"legal_first_name": "<string>",
"legal_last_name": "<string>",
"address": {
"line1": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>",
"line2": "<string>",
"phone": "<string>"
},
"email": "<string>",
"ssn": "<string>"
},
"mailing_address": {
"line1": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>",
"line2": "<string>",
"phone": "<string>"
},
"phone_number": "<string>",
"verification_id": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
entity_type: 'LLC',
state: '<string>',
naics_code: '<string>',
description: '<string>',
name_options: [{name: '<string>'}],
members: [
{
legal_first_name: '<string>',
legal_last_name: '<string>',
contact_full_name: '<string>',
ownership_percent: 123,
address: {
line1: '<string>',
city: '<string>',
state: '<string>',
postal_code: '<string>',
country: '<string>',
line2: '<string>',
phone: '<string>'
},
is_natural_person: true,
ssn: '<string>'
}
],
responsible_party: {
legal_first_name: '<string>',
legal_last_name: '<string>',
address: {
line1: '<string>',
city: '<string>',
state: '<string>',
postal_code: '<string>',
country: '<string>',
line2: '<string>',
phone: '<string>'
},
email: '<string>',
ssn: '<string>'
},
mailing_address: {
line1: '<string>',
city: '<string>',
state: '<string>',
postal_code: '<string>',
country: '<string>',
line2: '<string>',
phone: '<string>'
},
phone_number: '<string>',
verification_id: '<string>'
})
};
fetch('https://api.crevio.co/v1/formations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.crevio.co/v1/formations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'entity_type' => 'LLC',
'state' => '<string>',
'naics_code' => '<string>',
'description' => '<string>',
'name_options' => [
[
'name' => '<string>'
]
],
'members' => [
[
'legal_first_name' => '<string>',
'legal_last_name' => '<string>',
'contact_full_name' => '<string>',
'ownership_percent' => 123,
'address' => [
'line1' => '<string>',
'city' => '<string>',
'state' => '<string>',
'postal_code' => '<string>',
'country' => '<string>',
'line2' => '<string>',
'phone' => '<string>'
],
'is_natural_person' => true,
'ssn' => '<string>'
]
],
'responsible_party' => [
'legal_first_name' => '<string>',
'legal_last_name' => '<string>',
'address' => [
'line1' => '<string>',
'city' => '<string>',
'state' => '<string>',
'postal_code' => '<string>',
'country' => '<string>',
'line2' => '<string>',
'phone' => '<string>'
],
'email' => '<string>',
'ssn' => '<string>'
],
'mailing_address' => [
'line1' => '<string>',
'city' => '<string>',
'state' => '<string>',
'postal_code' => '<string>',
'country' => '<string>',
'line2' => '<string>',
'phone' => '<string>'
],
'phone_number' => '<string>',
'verification_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.crevio.co/v1/formations"
payload := strings.NewReader("{\n \"entity_type\": \"LLC\",\n \"state\": \"<string>\",\n \"naics_code\": \"<string>\",\n \"description\": \"<string>\",\n \"name_options\": [\n {\n \"name\": \"<string>\"\n }\n ],\n \"members\": [\n {\n \"legal_first_name\": \"<string>\",\n \"legal_last_name\": \"<string>\",\n \"contact_full_name\": \"<string>\",\n \"ownership_percent\": 123,\n \"address\": {\n \"line1\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"line2\": \"<string>\",\n \"phone\": \"<string>\"\n },\n \"is_natural_person\": true,\n \"ssn\": \"<string>\"\n }\n ],\n \"responsible_party\": {\n \"legal_first_name\": \"<string>\",\n \"legal_last_name\": \"<string>\",\n \"address\": {\n \"line1\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"line2\": \"<string>\",\n \"phone\": \"<string>\"\n },\n \"email\": \"<string>\",\n \"ssn\": \"<string>\"\n },\n \"mailing_address\": {\n \"line1\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"line2\": \"<string>\",\n \"phone\": \"<string>\"\n },\n \"phone_number\": \"<string>\",\n \"verification_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.crevio.co/v1/formations")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"entity_type\": \"LLC\",\n \"state\": \"<string>\",\n \"naics_code\": \"<string>\",\n \"description\": \"<string>\",\n \"name_options\": [\n {\n \"name\": \"<string>\"\n }\n ],\n \"members\": [\n {\n \"legal_first_name\": \"<string>\",\n \"legal_last_name\": \"<string>\",\n \"contact_full_name\": \"<string>\",\n \"ownership_percent\": 123,\n \"address\": {\n \"line1\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"line2\": \"<string>\",\n \"phone\": \"<string>\"\n },\n \"is_natural_person\": true,\n \"ssn\": \"<string>\"\n }\n ],\n \"responsible_party\": {\n \"legal_first_name\": \"<string>\",\n \"legal_last_name\": \"<string>\",\n \"address\": {\n \"line1\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"line2\": \"<string>\",\n \"phone\": \"<string>\"\n },\n \"email\": \"<string>\",\n \"ssn\": \"<string>\"\n },\n \"mailing_address\": {\n \"line1\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"line2\": \"<string>\",\n \"phone\": \"<string>\"\n },\n \"phone_number\": \"<string>\",\n \"verification_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.crevio.co/v1/formations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"entity_type\": \"LLC\",\n \"state\": \"<string>\",\n \"naics_code\": \"<string>\",\n \"description\": \"<string>\",\n \"name_options\": [\n {\n \"name\": \"<string>\"\n }\n ],\n \"members\": [\n {\n \"legal_first_name\": \"<string>\",\n \"legal_last_name\": \"<string>\",\n \"contact_full_name\": \"<string>\",\n \"ownership_percent\": 123,\n \"address\": {\n \"line1\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"line2\": \"<string>\",\n \"phone\": \"<string>\"\n },\n \"is_natural_person\": true,\n \"ssn\": \"<string>\"\n }\n ],\n \"responsible_party\": {\n \"legal_first_name\": \"<string>\",\n \"legal_last_name\": \"<string>\",\n \"address\": {\n \"line1\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"line2\": \"<string>\",\n \"phone\": \"<string>\"\n },\n \"email\": \"<string>\",\n \"ssn\": \"<string>\"\n },\n \"mailing_address\": {\n \"line1\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"line2\": \"<string>\",\n \"phone\": \"<string>\"\n },\n \"phone_number\": \"<string>\",\n \"verification_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"object": "<string>",
"entity_type": "LLC",
"state": "<string>",
"naics_code": "<string>",
"description": "<string>",
"name_options": "<array>",
"members": "<array>",
"responsible_party": {},
"mailing_address": {},
"ein": "<string>",
"formation_filing_date": "<string>",
"admin_notes": "<array>",
"doola_error": "<string>",
"stripe_checkout_session_id": "<string>",
"submitted_at": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"doola_company_id": "<string>",
"verification_id": "<string>",
"documents": [
{
"id": "<string>",
"object": "<string>",
"name": "<string>",
"content_type": "<string>",
"doola_created_at": "<string>",
"doola_last_modified_at": "<string>",
"doola_company_id": "<string>",
"download_url": "<string>"
}
],
"checkout_url": "<string>",
"charged_inline": true
}{
"error": {
"type": "invalid_request_error",
"code": "bad_request",
"message": "The request was malformed or contained invalid parameters"
}
}{
"error": {
"type": "invalid_request_error",
"code": "authentication_required",
"message": "You did not provide an API key."
}
}{
"error": {
"type": "invalid_request_error",
"code": "forbidden",
"message": "You do not have permission to perform this action"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"param": "<string>",
"errors": {}
}
}{
"error": {
"type": "api_error",
"code": "internal_error",
"message": "An unexpected error occurred"
}
}Authorizations
API key in the format: Bearer {api_token}
Body
application/json
Today doola only supports LLC
Available options:
LLC Two-letter US state code (e.g. WY)
6-digit NAICS code (from GET /v1/formations/naics_codes)
Maximum string length:
250Required array length:
1 - 3 elementsShow child attributes
Show child attributes
LLC members. Ownership percentages must sum to exactly 100.
Minimum array length:
1Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
KYC verification id from the active KYC provider. Optional — omitted means auto-resolve via the configured provider.
Response
Formation created
Available options:
awaiting_payment, pending, submitted, completed, failed Available options:
LLC Available options:
unpaid, paid, refunded Show child attributes
Show child attributes
Present when hosted checkout is needed
True when card-on-file charged inline without redirect
Was this page helpful?
⌘I

