Skip to main content
Vindicia Knowledge Center

Create an Account

Create an Account

Creates a new Account.

inlinepopup

Route (URL) Parameters

None.

Query Parameters

None.

Accepts

JSON A full Account object.

Returns

JSON A full Account object.

  • cURL
  • Java
Example Request
curl -X POST \
-u acaff38d462f9430d5cbcbaf:a575771fc679b9de \
-d '{
"id": "cust_2234",
"name": "Charlie Brown",
"company": "Peanuts",
"shipping_address": {
"object": "Address",
"name": "Charlie Brown",
"line1": "123 Main Street",
"city": "San Francisco",
"district": "CA",
"postal_code": "94105",
"country": "US",
"phone": "415-555-3212"
},
"email": "cbrown@example.com",
"email_type": "html",
"language" : "en-US",
"default_currency" : "USD",
"notify_before_billing" : true,
"metadata" : {
"favorite activity" : "flying kites",
"favorite dog" : "Snoopy"
}
}' "https://api.prodtest.vindicia.com/accounts"
The above command returns JSON structured like this:
{
    "object": "Account",
    "id": "cust_1234",
    "vid": "f147870b2c86a00fb1264fb64c0a8b58fcd95b4d",
    "created": "2016-05-18T13:39:03-07:00",
    "default_currency": "USD",
    "email": "cbrown@example.com",
    "email_type": "html",
    "language": "EN-U",
    "notify_before_billing": true,
    "company": "Peanuts",
    "name": "Charlie Brown",
    "shipping_address": {
        "object": "Address",
        "vid": "dad524f59d1bd72f10a9162b7d7790caa39678dc",
        "name": "Charlie Brown",
        "line1": "123 Main Street",
        "city": "San Francisco",
        "district": "CA",
        "postal_code": "94105",
        "country": "US",
        "phone": "415-555-3212"
    },
    "metadata": {
        "favorite dog": "Snoopy",
        "favorite activity": "flying kites"
    }
}
import com.vindicia.client.CashBox;
CashBox.apiKey = "acaff38d462f9430d5cbcbafa575771fc679b9de";
Map<string,> params = new HashMap<string,>();
params.put("name",  "Charlie Brown");
params.put("email", "cbrown@example.com");
params.put("id",    "cust_1234");
Account.create(params);
The above command returns JSON structured like this:
{
    "object": "Account",
    "id": "cust_1234",
    "vid": "f147870b2c86a00fb1264fb64c0a8b58fcd95b4d",
    "created": "2016-05-18T13:39:03-07:00",
    "default_currency": "USD",
    "email": "cbrown@example.com",
    "email_type": "html",
    "language": "EN-U",
    "notify_before_billing": true,
    "company": "Peanuts",
    "name": "Charlie Brown",
    "shipping_address": {
        "object": "Address",
        "vid": "dad524f59d1bd72f10a9162b7d7790caa39678dc",
        "name": "Charlie Brown",
        "line1": "123 Main Street",
        "city": "San Francisco",
        "district": "CA",
        "postal_code": "94105",
        "country": "US",
        "phone": "415-555-3212"
    },
    "metadata": {
        "favorite dog": "Snoopy",
        "favorite activity": "flying kites"
    }
}

For Users

Learn More
For Users

Cashbox Features

Learn More
Cashbox Features
Back to Top