Create an avalara account

How to create an avalara account via API

To create a new avalara account, send a POST request to the /api/avalara_accounts endpoint, passing the resource arguments in the request body.

Request

POST https://yourdomain.commercelayer.io/api/avalara_accounts

Arguments

Body Parameter
Type
Required

type

string

Required

attributes.name

string

Required

attributes.reference

string

Optional

attributes.reference_origin

string

Optional

attributes.metadata

object

Optional

attributes.username

string

Required

attributes.password

string

Required

attributes.company_code

string

Required

attributes.commit_invoice

boolean

Optional

attributes.ddp

boolean

Optional

relationships.tax_categories

array

Optional

Example

The following request creates a new avalara account:

curl -g -X POST \
  'https://yourdomain.commercelayer.io/api/avalara_accounts' \
  -H 'Accept: application/vnd.api+json' \
  -H 'Authorization: Bearer your-access-token' \
  -H 'Content-Type: application/vnd.api+json' \
  -d '{
  "data": {
    "type": "avalara_accounts",
    "attributes": {
      "name": "Personal tax calculator",
      "username": "user@mydomain.com",
      "password": "secret",
      "company_code": "MYCOMPANY"
    }
  }
}'

Last updated