POST
/
core
/
syncs
curl --request POST \
  --url https://api.rootfi.dev/v3/core/syncs \
  --header 'Content-Type: application/json' \
  --header 'api_key: <api-key>' \
  --data '{
  "company_id": 1,
  "data_models_to_sync": ["ACCOUNTS"],
  "integration_type": "ZOHO_BOOKS",
  "full_sync": true
}'
{
  "data": {
    "config_mode": "READ",
    "end_time": "2021-08-31T18:00:00Z",
    "failed_count": 0,
    "full_sync": true,
    "integration_type": "XERO",
    "pending_count": 0,
    "rootfi_company_id": 1,
    "rootfi_created_at": "2021-08-31T18:00:00Z",
    "rootfi_id": 1,
    "rootfi_updated_at": "2021-08-31T18:00:00Z",
    "running_count": 0,
    "start_time": "2021-08-31T18:00:00Z",
    "status": "SUCCESS",
    "success_count": 100,
    "sync_data_models": [
      "ACCOUNTS",
      "CONTACTS"
    ],
    "sync_id": "VmaVgKMaiygMzTK1",
    "sync_type": "AUTO_SYNC",
    "total_count": 100
  }
}

Authorizations

api_key
string
headerrequired

Body

application/json
company_id
integer
required

The ID of the company

data_models_to_sync
enum<string>[]
required

The sync data models of the sync.

Available options:
CUSTOM_DATA_MODELS,
CUSTOM_ACCOUNT_TRANSACTIONS,
ACCOUNTS,
BANK_ACCOUNTS,
BILLS,
BILL_PAYMENTS,
COMPANY_INFO,
CONTACTS,
BILL_CREDIT_NOTES,
INVOICE_CREDIT_NOTES,
DOCUMENTS,
EXPENSES,
INVOICES,
INVOICE_PAYMENTS,
ITEMS,
LINE_ITEMS,
TAX_RATES,
JOURNAL_ENTRIES,
BANK_TRANSACTIONS,
JOURNAL_LINES,
PURCHASE_ORDERS,
SALES_ORDERS,
PHONE_NUMBERS,
ADDRESSES,
EXTERNAL_LINKS,
CONTACT_PERSONS,
INCOME_STATEMENT,
BALANCE_SHEET,
TRACKING_CATEGORIES,
CASH_FLOW_STATEMENT,
CURRENCIES,
PAYMENT_CUSTOMERS,
PAYMENT_INVOICES,
PAYMENT_LINE_ITEMS,
PAYMENT_ITEMS,
PAYMENT_ORDERS,
PAYMENT_TAX_RATES,
PAYMENT_DISPUTES,
PAYMENT_PAYMENTS,
PAYMENT_REFUNDS,
PAYMENT_PAYMENT_LINKS,
PAYMENT_PAYOUTS,
PAYMENT_ADDRESSES,
PAYMENT_PHONE_NUMBERS,
PAYMENT_EXTERNAL_LINKS,
PAYMENT_TRANSACTIONS,
PAYMENT_BALANCES,
ECOMMERCE_ORDERS,
ECOMMERCE_CUSTOMERS,
ECOMMERCE_PRODUCTS,
ECOMMERCE_LINE_ITEMS,
CRM_CONTACTS,
CRM_ACCOUNTS,
CRM_DEALS
full_sync
boolean
required

Whether the sync is a full sync

integration_type
enum<string>
required
Available options:
ZOHO_BOOKS,
QUICKBOOKS_SANDBOX,
QUICKBOOKS,
XERO,
TALLY,
ROOTFI_SANDBOX,
SAGE_CLOUD_ACCOUNTING,
MS_DYNAMICS_365,
SAGE_ZA_CLOUD_ACCOUNTING,
MYOB_BUSINESS,
NETSUITE,
WAVE,
ODOO_ACCOUNTING,
WAFEQ,
MEKARI_JURNAL,
BUSY,
QOYOD,
SHOPIFY,
STRIPE,
RAZORPAY,
PAYPAL,
HUBSPOT,
ZOHO_CRM,
PIPEDRIVE

Response

200 - application/json
data
object
required

The data of the invite link endpoint