Skip to main content
POST
/
coa
/
api
/
entity
Create Chart Entity
curl --request POST \
  --url https://api.meetcampfire.com/coa/api/entity \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "currency": "<string>",
  "invoice_name": "<string>",
  "invoice_email": "<string>",
  "address_1": "<string>",
  "address_2": "<string>",
  "city": "<string>",
  "state": "<string>",
  "zip_code": "<string>",
  "country": "<string>",
  "invoice_message": "<string>",
  "invoice_email_body": "<string>",
  "invoice_prefix": "<string>",
  "invoice_address": "<string>",
  "logo_url": "<string>",
  "active": true,
  "fiscal_year_month": -1,
  "fiscal_year_day": -1,
  "parent": 123
}'
{
  "id": 123,
  "is_deleted": false,
  "deleted_at": "2023-11-07T05:31:56Z",
  "last_modified_at": "2023-11-07T05:31:56Z",
  "name": "<string>",
  "description": "<string>",
  "currency": "<string>",
  "invoice_name": "<string>",
  "invoice_email": "<string>",
  "address_1": "<string>",
  "address_2": "<string>",
  "city": "<string>",
  "state": "<string>",
  "zip_code": "<string>",
  "country": "<string>",
  "invoice_message": "<string>",
  "invoice_email_body": "<string>",
  "invoice_prefix": "<string>",
  "invoice_address": "<string>",
  "logo_url": "<string>",
  "active": true,
  "fiscal_year_month": -1,
  "fiscal_year_day": -1,
  "created_at": "2023-11-07T05:31:56Z",
  "customer": 123,
  "parent": 123
}

Authorizations

Authorization
string
header
required

Token-based authentication with required prefix "Token"

Body

name
string | null
Maximum length: 250
description
string | null
currency
string
Maximum length: 3
invoice_name
string | null
Maximum length: 120
invoice_email
string | null
Maximum length: 120
address_1
string | null
Maximum length: 120
address_2
string | null
Maximum length: 120
city
string | null
Maximum length: 120
state
string | null
Maximum length: 120
zip_code
string | null
Maximum length: 120
country
string | null
Maximum length: 120
invoice_message
string | null
invoice_email_body
string | null
invoice_prefix
string | null
Maximum length: 120
invoice_address
string | null
logo_url
string<uri> | null
Maximum length: 500
active
boolean
fiscal_year_month
integer
Required range: -2147483648 <= x <= 2147483647
fiscal_year_day
integer
Required range: -2147483648 <= x <= 2147483647
parent
integer | null

Response

201 - application/json
id
integer
required
is_deleted
boolean
default:false
required
deleted_at
string<date-time> | null
required
last_modified_at
string<date-time>
required
created_at
string<date-time> | null
required
customer
integer
required
name
string | null
Maximum length: 250
description
string | null
currency
string
Maximum length: 3
invoice_name
string | null
Maximum length: 120
invoice_email
string | null
Maximum length: 120
address_1
string | null
Maximum length: 120
address_2
string | null
Maximum length: 120
city
string | null
Maximum length: 120
state
string | null
Maximum length: 120
zip_code
string | null
Maximum length: 120
country
string | null
Maximum length: 120
invoice_message
string | null
invoice_email_body
string | null
invoice_prefix
string | null
Maximum length: 120
invoice_address
string | null
logo_url
string<uri> | null
Maximum length: 500
active
boolean
fiscal_year_month
integer
Required range: -2147483648 <= x <= 2147483647
fiscal_year_day
integer
Required range: -2147483648 <= x <= 2147483647
parent
integer | null
I