curl --request POST \
--url https://api.meetcampfire.com/coa/api/transaction \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"account": 123,
"debit_amount": 0,
"credit_amount": 0,
"debit_amount_book": 0,
"credit_amount_book": 0,
"debit_amount_native": 0,
"credit_amount_native": 0,
"currency": "<string>",
"exchange_rate": 0,
"exchange_rate_book": 0,
"posted_at": "2023-12-25",
"merchant_name": "<string>",
"bank_description": "<string>",
"note": "<string>",
"external_id": "<string>",
"needs_review": true,
"draft_matches": "<any>",
"entity": 123,
"parent_bank_transaction": 123,
"vendor": 123,
"department": 123,
"last_modified_by": 123
}'
{
"id": 123,
"entity_name": "<string>",
"entity_currency": "<string>",
"account_name": "<string>",
"account_number": "<string>",
"vendor_name": "<string>",
"vendor_id": "<string>",
"department_name": "<string>",
"parent_department_name": "<string>",
"parent_department": 123,
"tags": [
{
"id": 123,
"group_name": "<string>",
"parent_name": "<string>",
"parent": 123,
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"last_modified_at": "2023-11-07T05:31:56Z",
"customer": 123,
"group": 123
}
],
"journal": 123,
"journal_order": "<string>",
"journal_memo": "<string>",
"journal_type": "<string>",
"intercompany_journal": 123,
"created_automatically": true,
"journal_attachments": [
{
"id": 123,
"customer": 123,
"created_at": "2023-11-07T05:31:56Z",
"created_by": 123,
"created_by_name": "<string>",
"created_by_email": "<string>",
"last_modified_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"url": "<string>",
"s3_content_type": "<string>",
"s3_content_length": 1073741823,
"s3_path": "<string>",
"object_id": 1073741823,
"app": "<string>",
"model": "<string>"
}
],
"journal_type_name": "<string>",
"invoice": "<string>",
"bill": "<string>",
"date_month": "<string>",
"date_year": "<string>",
"balance_after_transaction": 123,
"bank_account": "<string>",
"bank_account_name": "<string>",
"account": 123,
"last_modified_by_name": "<string>",
"account_type": "<string>",
"account_subtype": "<string>",
"parent_account_name": "<string>",
"files": "<string>",
"invoice_id": 123,
"invoice_number": "<string>",
"bill_id": 123,
"bill_number": "<string>",
"file_names": "<string>",
"amount": 0,
"amount_native": 0,
"amount_book": 0,
"amortization_schedule": [
{
"id": 123,
"journal_entry_order": "<string>",
"date": "2023-12-25",
"amount": 0,
"posted": true,
"amortization": 123,
"customer": 123,
"transaction": 123,
"bill_line": 123,
"journal_entry": 123
}
],
"created_fixed_assets": "<string>",
"transaction_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"debit_amount": 0,
"credit_amount": 0,
"debit_amount_book": 0,
"credit_amount_book": 0,
"debit_amount_native": 0,
"credit_amount_native": 0,
"currency": "<string>",
"exchange_rate": 0,
"exchange_rate_book": 0,
"posted_at": "2023-12-25",
"merchant_name": "<string>",
"bank_description": "<string>",
"note": "<string>",
"balance_before_transaction": 0,
"created_at": "2023-11-07T05:31:56Z",
"external_id": "<string>",
"needs_review": true,
"last_modified_at": "2023-11-07T05:31:56Z",
"draft_matches": "<any>",
"customer": 123,
"entity": 123,
"parent_bank_transaction": 123,
"vendor": 123,
"department": 123,
"last_modified_by": 123
}
curl --request POST \
--url https://api.meetcampfire.com/coa/api/transaction \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"account": 123,
"debit_amount": 0,
"credit_amount": 0,
"debit_amount_book": 0,
"credit_amount_book": 0,
"debit_amount_native": 0,
"credit_amount_native": 0,
"currency": "<string>",
"exchange_rate": 0,
"exchange_rate_book": 0,
"posted_at": "2023-12-25",
"merchant_name": "<string>",
"bank_description": "<string>",
"note": "<string>",
"external_id": "<string>",
"needs_review": true,
"draft_matches": "<any>",
"entity": 123,
"parent_bank_transaction": 123,
"vendor": 123,
"department": 123,
"last_modified_by": 123
}'
{
"id": 123,
"entity_name": "<string>",
"entity_currency": "<string>",
"account_name": "<string>",
"account_number": "<string>",
"vendor_name": "<string>",
"vendor_id": "<string>",
"department_name": "<string>",
"parent_department_name": "<string>",
"parent_department": 123,
"tags": [
{
"id": 123,
"group_name": "<string>",
"parent_name": "<string>",
"parent": 123,
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"last_modified_at": "2023-11-07T05:31:56Z",
"customer": 123,
"group": 123
}
],
"journal": 123,
"journal_order": "<string>",
"journal_memo": "<string>",
"journal_type": "<string>",
"intercompany_journal": 123,
"created_automatically": true,
"journal_attachments": [
{
"id": 123,
"customer": 123,
"created_at": "2023-11-07T05:31:56Z",
"created_by": 123,
"created_by_name": "<string>",
"created_by_email": "<string>",
"last_modified_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"url": "<string>",
"s3_content_type": "<string>",
"s3_content_length": 1073741823,
"s3_path": "<string>",
"object_id": 1073741823,
"app": "<string>",
"model": "<string>"
}
],
"journal_type_name": "<string>",
"invoice": "<string>",
"bill": "<string>",
"date_month": "<string>",
"date_year": "<string>",
"balance_after_transaction": 123,
"bank_account": "<string>",
"bank_account_name": "<string>",
"account": 123,
"last_modified_by_name": "<string>",
"account_type": "<string>",
"account_subtype": "<string>",
"parent_account_name": "<string>",
"files": "<string>",
"invoice_id": 123,
"invoice_number": "<string>",
"bill_id": 123,
"bill_number": "<string>",
"file_names": "<string>",
"amount": 0,
"amount_native": 0,
"amount_book": 0,
"amortization_schedule": [
{
"id": 123,
"journal_entry_order": "<string>",
"date": "2023-12-25",
"amount": 0,
"posted": true,
"amortization": 123,
"customer": 123,
"transaction": 123,
"bill_line": 123,
"journal_entry": 123
}
],
"created_fixed_assets": "<string>",
"transaction_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"debit_amount": 0,
"credit_amount": 0,
"debit_amount_book": 0,
"credit_amount_book": 0,
"debit_amount_native": 0,
"credit_amount_native": 0,
"currency": "<string>",
"exchange_rate": 0,
"exchange_rate_book": 0,
"posted_at": "2023-12-25",
"merchant_name": "<string>",
"bank_description": "<string>",
"note": "<string>",
"balance_before_transaction": 0,
"created_at": "2023-11-07T05:31:56Z",
"external_id": "<string>",
"needs_review": true,
"last_modified_at": "2023-11-07T05:31:56Z",
"draft_matches": "<any>",
"customer": 123,
"entity": 123,
"parent_bank_transaction": 123,
"vendor": 123,
"department": 123,
"last_modified_by": 123
}
Token-based authentication with required prefix "Token"
The response is of type object
.