OFN API Handbook
  • Welcome!
  • Quick Start
  • OFN API V1
    • Overview
    • Authentication
    • Customers
  • OFN API V0 - unsupported
    • Overview
    • Reports
    • Products
  • N8N - integrations server
    • Introduction
    • How to import/use a workflow from a file or API handbook
    • Authenticating Apps
    • Email a Stock Report
  • Adding Customer List to Airtable
  • Adding Product List to Airtable
  • Tips, Tricks, and Common Issues
  • Postgres Database
  • Creating Customers (with Tags) on OFN using V1 API with data from a CSV/XLSX file
  • Common SQL Queries (on-going)
  • Global Metrics Dashboard
  • DFC - n8n experiment
  • Product List Export
  • Product List Export (OFN Product Upload CSV format)
  • Import customers contacts from OFN to newsletter
  • Invite OFN customers to subscribe to a newsletter
  • Automated Quickbooks Customer Invoicing
  • Low Stock Alert for Producers
  • Enterprise Dashboard for Customers
  • Connecting Square POS with OFN for updating stock values, sales analytics etc.
  • Webhooks
    • Overview
    • Setup
    • Event types
Powered by GitBook
On this page
  1. Webhooks

Event types

order_cycle.opened

This event occurs at the opening time for each order cycle. It fires for each user that is an owner of an enterprise that is either coordinator or distributor for the order cycle.

Example:

{
  "id": "374e0a40-f1d4-410c-9dc3-965baddde66b",
  "at": "2023-02-07 17:12:45 +1100",
  "event": "order_cycle.opened",
  "data": {
    "id": 3813,
    "name": "Another test order cycle",
    "orders_open_at": "2023-02-07T17:10:00.000+11:00",
    "orders_close_at": "2023-02-08T12:00:00.000+11:00",
    "coordinator_id": 2515,
    "coordinator_name": "David's Dev Shop"
  }
}
PreviousSetup

Last updated 2 years ago