Customers

Create new Account

Creates a new account.

post/accounts/public

Request

Request body

namestring

(Required) Account Name (must be non-null and non-blank)

credit_linenumber nullable

An account's credit line

erp_codestring nullable

Erp code for the account

notesstring nullable

Account notes

payment_termsstring nullable

Payment terms; required if payment_terms_period are included

payment_terms_periodstring nullable

Payment terms period in days; required if payment_terms are included, but can be null

phonestring nullable

Account phone number

phone_extstring nullable

Account phone number extension

purchase_orders_enabledboolean

When true any contact associated with this account will be allowed to check out with a purchase order.

tax_exemptboolean

When true, sales tax will not be added to a quote

tax_ratenumber nullable

Sales tax rate for this Account

typestring

Type of this Account, either customer or vendor

urlstring nullable

Example request

{
  "name": "Paperless Parts, Inc.",
  "credit_line": 10000,
  "erp_code": "PPI",
  "payment_terms": "Net 30",
  "phone": "6176354500",
  "purchase_orders_enabled": true,
  "salesperson": {
    "email": "careers@paperlessparts.com"
  },
  "sold_to_address": {
    "address1": "137 Portland St.",
    "address2": "Unit 1",
    "city": "Boston",
    "country": "USA",
    "postal_code": "02114",
    "state": "MA",
    "erp_code": "B1234"
  },
  "tax_exempt": true,
  "tax_rate": 6.25,
  "type": "customer",
  "url": "https://paperlessparts.com"
}

Response

Successful response

country_codestring nullable
credit_cards_enabledboolean
metadataobject nullable
namestring

(Required) The name of the account

createdstring
credit_linenumber nullable

credit line (dollars)

erp_codestring nullable

The ERP code of the account

idinteger

the ID of the account

notesstring nullable

Account notes

payment_termsstring nullable

Payment terms; required if payment_terms_period are included

payment_terms_periodinteger nullable

Payment terms period in days; required if payment_terms are included, but can be null

phonestring nullable

Account phone number

phone_extstring nullable

Account phone number extension

purchase_orders_enabledboolean

When true this account can check out with a purchase order

tax_exemptboolean

When true, sales tax will not be added to a quote

tax_ratenumber nullable

Sales tax rate for this account

typestring

Type of account, either customer or vendor

urlstring nullable

Example response

{
  "billing_addresses": [
    {
      "address1": "1 City Hall Sq.",
      "city": "Boston",
      "state": "MA",
      "postal_code": "02114",
      "country": "USA",
      "erp_code": "B1234"
    }
  ],
  "name": "Paperless Parts, Inc.",
  "created": "2020-08-25T18:00:53+00:00",
  "credit_line": 10000,
  "erp_code": "PPI",
  "id": 17,
  "payment_terms": "Net 30",
  "payment_terms_period": 30,
  "phone": "6176354500",
  "purchase_orders_enabled": true,
  "sold_to_address": {
    "address1": "1 City Hall Sq.",
    "city": "Boston",
    "state": "MA",
    "postal_code": "02114",
    "country": "USA",
    "erp_code": "B1234"
  },
  "tax_exempt": true,
  "tax_rate": 6.25,
  "type": "customer",
  "url": "https://www.paperlessparts.com"
}

Changes

No recorded changes to this operation across all 1 revision of this API.