POST
/
accounts
{
  "name": "GoJo",
  "aliases": ["JoGo"],
  "currency": "USD",
  "billingAddress": {
    "line1": "123 Main St",
    "line2": "Suite 100",
    "city": "New York",
    "state": "NY",
    "postalCode": "10001"
  },
  "contacts": [
    {
      "email": "[email protected]",
      "firstName": "Henry",
      "lastName": "Sules",
      "isPrimary": true,
      "emailPreferences": ["updates"]
    },
    {
      "email": "[email protected]",
      "firstName": "Accounts",
      "lastName": "Receivable",
      "isPrimary": false,
      "emailPreferences": ["billing"]
    }
  ]
}
{
  "id": "ywgWhtGp",
  "name": "GoJo",
  "aliases": ["JoGo"],
  "currency": "USD",
  "billingAddress": {
    "line1": "123 Main St",
    "line2": "Suite 100",
    "city": "New York",
    "state": "NY",
    "postalCode": "10001"
  },
  "contacts": [
    {
      "id": "OLgPyqFF",
      "email": "[email protected]",
      "firstName": "Henry",
      "lastName": "Sules",
      "isPrimary": true,
      "emailPreferences": ["updates"]
    },
    {
      "id": "FdqPzqFG",
      "email": "[email protected]",
      "firstName": "Accounts",
      "lastName": "Receivable",
      "isPrimary": false,
      "emailPreferences": ["billing"]
    }
  ],
  "createdAt": "2023-09-05T21:54:54.609688Z",
  "updatedAt": "2023-09-05T21:54:54.609689Z"
}
{
  "name": "GoJo",
  "aliases": ["JoGo"],
  "currency": "USD",
  "billingAddress": {
    "line1": "123 Main St",
    "line2": "Suite 100",
    "city": "New York",
    "state": "NY",
    "postalCode": "10001"
  },
  "contacts": [
    {
      "email": "[email protected]",
      "firstName": "Henry",
      "lastName": "Sules",
      "isPrimary": true,
      "emailPreferences": ["updates"]
    },
    {
      "email": "[email protected]",
      "firstName": "Accounts",
      "lastName": "Receivable",
      "isPrimary": false,
      "emailPreferences": ["billing"]
    }
  ]
}

Request

name
string
required
The name of the account.
aliases
[]string
The list of alternative or external IDs for the account. These can be used to identify the account in place of the Alguna id.
contacts
[]Contact
The contacts associated with the account.
billingAddress
Address
required
The billing address for the account.
currency
string
required
The currency in which the account will be billed. This must be a valid ISO 4217 currency code.

Response

{
  "id": "ywgWhtGp",
  "name": "GoJo",
  "aliases": ["JoGo"],
  "currency": "USD",
  "billingAddress": {
    "line1": "123 Main St",
    "line2": "Suite 100",
    "city": "New York",
    "state": "NY",
    "postalCode": "10001"
  },
  "contacts": [
    {
      "id": "OLgPyqFF",
      "email": "[email protected]",
      "firstName": "Henry",
      "lastName": "Sules",
      "isPrimary": true,
      "emailPreferences": ["updates"]
    },
    {
      "id": "FdqPzqFG",
      "email": "[email protected]",
      "firstName": "Accounts",
      "lastName": "Receivable",
      "isPrimary": false,
      "emailPreferences": ["billing"]
    }
  ],
  "createdAt": "2023-09-05T21:54:54.609688Z",
  "updatedAt": "2023-09-05T21:54:54.609689Z"
}
id
string
The Alguna ID of the account.
name
string
The name of the account.
aliases
[]string
The list of alternative or external IDs for the account. These can be used to identify the account in place of the Alguna id.
contacts
[]Contact
The contacts associated with the account.
billingAddress
Address
The billing address for the account.
currency
string
The ISO 4217 currency in which the account is billed.
createdAt
datetime
The date and time at which the account was created.
updatedAt
datetime
The date and time at which the account was last updated.