PATCH
/
coa
/
api
/
journal_entry
/
{id}
Partial Update Journal Entry
curl --request PATCH \
  --url https://api.meetcampfire.com/coa/api/journal_entry/{id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "reversal_date": "2023-12-25",
  "order": "<string>",
  "revenue_transactions": [
    123
  ],
  "bulk_upload": true,
  "chat_uuid": "<string>",
  "type": "bill",
  "journal_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "memo": "<string>",
  "currency": "<string>",
  "exchange_rate": 0,
  "exchange_rate_book": 0,
  "created_automatically": true,
  "date": "2023-12-25",
  "ref_number": "<string>",
  "source": "<string>",
  "source_id": "<string>",
  "recurrent_journal_entry": 123,
  "entity": 123,
  "reversal_of": 123,
  "intercompany_journal": 123,
  "source_file": 123,
  "chat": 123
}'
{
  "id": 123,
  "transactions": [
    {
      "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
    }
  ],
  "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>"
    }
  ],
  "invoice": 123,
  "reversal_of_order": "<string>",
  "reversals": [
    123
  ],
  "entity_name": "<string>",
  "entity_currency": "<string>",
  "order": "<string>",
  "revenue_transactions": [
    123
  ],
  "chat_uuid": "<string>",
  "search_vector": "<string>",
  "search_text": "<string>",
  "type": "bill",
  "journal_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "memo": "<string>",
  "currency": "<string>",
  "exchange_rate": 0,
  "exchange_rate_book": 0,
  "created_automatically": true,
  "date": "2023-12-25",
  "ref_number": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "source": "<string>",
  "source_id": "<string>",
  "last_modified_at": "2023-11-07T05:31:56Z",
  "customer": 123,
  "recurrent_journal_entry": 123,
  "entity": 123,
  "reversal_of": 123,
  "intercompany_journal": 123,
  "source_file": 123,
  "chat": 123
}

Authorizations

Authorization
string
header
required

Token-based authentication with required prefix "Token"

Path Parameters

id
integer
required

Body

Response

200 - application/json

The response is of type object.