Orders
Orders record transfer of money between accounts. Every order in Nuflow is created using a Workflow.
Just like accounts, orders can also have two different identifiers associated with them. Nulfow supports queries with either identifier for its orders APIs.
This is a required identifier which must be provided while creating an order. It's recommended to keep this same or similar to the unique identifier for the entity in your database for easy identification.
PO Identifier, short for purchase order identifier, is the secondary identifier which Nuflow associates with an order. If a value is not provided for this identifier then po_identifieris saved as the value provided for client_order_identifier.
An order can have the following values as it status:
- Created
- Confirmed
- Delivered
- Cancelled
When a new order is created is status is set to Created. The order status can be updated either from the dashboard or using the Update Order Status API. When the order status is changed to the trigger status of the workflow it uses, the money is moved to the accounts involved.
The base URL for all orders API requests is /api/v1/ops/orders/.
All requests must be authenticated using an API key.
Make sure that the respective accounts have been created before trying out these examples.