{
  "rootfi_id": 157,
  "rootfi_created_at": "2024-01-22T05:07:31.465Z",
  "rootfi_updated_at": "2024-01-22T05:07:31.000Z",
  "rootfi_company_id": 1089,
  "platform_id": "123456",
  "contact_id": "123456",
  "currency_id": "USD",
  "document_number": "123456",
  "posted_date": "2024-01-22T05:07:31.000Z",
  "due_date": "2024-01-22T05:07:31.000Z",
  "status": "ACTIVE",
  "total_discount": 100.0,
  "sub_total": 100.0,
  "tax_amount": 100.0,
  "total_amount": 100.0,
  "amount_due": 100.0,
  "line_items": [
    {
      "line_item_type_id": "123456",
      "item_id": "123456",
      "tax_id": "123456",
      "description": "This is a description",
      "quantity": 1,
      "unit_amount": 100,
      "line_item_type": "PAYMENT_INVOICES",
      "sub_total": 100,
      "tax_amount": 100,
      "total_amount": 100,
      "total_discount": 100,
      "updated_at": "2024-01-22T05:07:31.000Z"
    }
  ]
}

The Invoice Data Model simplifies the handling and retrieval of invoices from different payment gateways. The model provides a unified representation of invoices, enabling you to easily access and manage invoice data from different platforms.

  • Unified invoice properties: The model provides a unified representation of invoices, enabling you to easily access and manage invoice data from different platforms.
  • Comprehensive invoices information: The model provides a comprehensive representation of invoices, enabling you to easily access and manage invoice data from different platforms.

Properties Supported

PropertyTypeDescription
platform_idstringThe Platform’s ID for the invoice
contact_idstringThe contact id of the invoice
currency_idstringThe currency id of the invoice
document_numberstringThe document number of the invoice
posted_datestringThe posted date of the invoice
due_datestringThe due date of the invoice
statusstringThe status of the invoice
total_discountnumberThe total discount of the invoice
sub_totalnumberThe sub total of the invoice
tax_amountnumberThe tax amount of the invoice
total_amountnumberThe total amount of the invoice
amount_duenumberThe amount due of the invoice
line_itemsobject[]The line items of the invoice
{
  "rootfi_id": 157,
  "rootfi_created_at": "2024-01-22T05:07:31.465Z",
  "rootfi_updated_at": "2024-01-22T05:07:31.000Z",
  "rootfi_company_id": 1089,
  "platform_id": "123456",
  "contact_id": "123456",
  "currency_id": "USD",
  "document_number": "123456",
  "posted_date": "2024-01-22T05:07:31.000Z",
  "due_date": "2024-01-22T05:07:31.000Z",
  "status": "ACTIVE",
  "total_discount": 100.0,
  "sub_total": 100.0,
  "tax_amount": 100.0,
  "total_amount": 100.0,
  "amount_due": 100.0,
  "line_items": [
    {
      "line_item_type_id": "123456",
      "item_id": "123456",
      "tax_id": "123456",
      "description": "This is a description",
      "quantity": 1,
      "unit_amount": 100,
      "line_item_type": "PAYMENT_INVOICES",
      "sub_total": 100,
      "tax_amount": 100,
      "total_amount": 100,
      "total_discount": 100,
      "updated_at": "2024-01-22T05:07:31.000Z"
    }
  ]
}