POST
/
coa
/
api
/
v1
/
bill
/
{bill_id}
/
reopen
/
Reopen Voided Bill
curl --request POST \
  --url https://api.meetcampfire.com/coa/api/v1/bill/{bill_id}/reopen/ \
  --header 'Authorization: <api-key>'
{
  "id": 123,
  "lines": [
    {
      "id": 123,
      "account_number": "<string>",
      "account_name": "<string>",
      "department_name": "<string>",
      "bill_customer_name": "<string>",
      "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
        }
      ],
      "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
        }
      ],
      "description": "<string>",
      "amount": 0,
      "tax": 0,
      "tax_description": "<string>",
      "source": "<string>",
      "source_id": "<string>",
      "currency": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "last_modified_at": "2023-11-07T05:31:56Z",
      "customer": 123,
      "account": 123,
      "bill_customer": 123,
      "department": 123
    }
  ],
  "payments": [
    {
      "id": 123,
      "payment_transaction_bank_description": "<string>",
      "payment_journal_entry_order": "<string>",
      "voided_journal_entry_order": "<string>",
      "currency": "<string>",
      "amount": 0,
      "payment_date": "2023-12-25",
      "source": "<string>",
      "source_id": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "voided_date": "2023-12-25",
      "last_modified_at": "2023-11-07T05:31:56Z",
      "customer": 123,
      "bill": 123,
      "payment_journal_entry": 123,
      "payment_transaction": 123,
      "voided_journal_entry": 123
    }
  ],
  "payment_journal_entries": [
    123
  ],
  "status": "<string>",
  "past_due_days": 123,
  "entity_name": "<string>",
  "entity_currency": "<string>",
  "vendor_name": "<string>",
  "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>"
    }
  ],
  "total_amount": "<string>",
  "amount_due": "<string>",
  "amount_paid": "<string>",
  "item_date": "2023-12-25",
  "voided_date": "2023-12-25",
  "voided_journal_entry_order": "<string>",
  "amortizations": "<string>",
  "search_vector": "<string>",
  "search_text": "<string>",
  "mailing_address": "<string>",
  "terms": "net_7",
  "bill_number": "<string>",
  "bill_date": "2023-12-25",
  "due_date": "2023-12-25",
  "paid_date": "2023-12-25",
  "message_on_bill": "<string>",
  "source_id": "<string>",
  "source": "<string>",
  "payment_status": "partial",
  "currency": "<string>",
  "exchange_rate": 0,
  "exchange_rate_book": 0,
  "created_at": "2023-11-07T05:31:56Z",
  "last_modified_at": "2023-11-07T05:31:56Z",
  "customer": 123,
  "entity": 123,
  "vendor": 123,
  "journal_entry": 123,
  "source_file": 123,
  "tax_rate": 123,
  "voided_journal_entry": 123
}

Authorizations

Authorization
string
header
required

Token-based authentication with required prefix "Token"

Path Parameters

bill_id
integer
required

ID of the voided bill to reopen

Response

200 - application/json

The response is of type object.