Skip to main content

Fluent Commerce Connector

Fluent Commerce Fluent Commerce is an order management system for tracking customers, orders and inventory.

This component allows creating customers and products, looking up a customer by email address, retrieving the authenticated user, and sending custom GraphQL queries and mutations. A polling trigger reports new and updated orders on a schedule.

API Documentation​

This component was built using the Fluent Commerce GraphQL API.

Connections​

Fluent Commerce OAuth 2.0 Password Grant​

Authenticate requests to Fluent Commerce using a username and password

Fluent uses OAuth 2.0 password grant type for authentication. Authenticating with Fluent requires a Client ID and Client Secret from Fluent, and end users must enter their username and password.

Prerequisites​

  • A Fluent Commerce retailer account with a username and password
  • The Fluent API host URL for the retailer
  • An OAuth 2.0 Client ID and Client Secret issued by Fluent

Setup Steps​

  1. Contact Fluent support to request an OAuth 2.0 Client ID and Client Secret for the retailer.
  2. Gather the Fluent API host URL, the retailer username, and the retailer password.

Configure the Connection​

Create a connection of type Fluent Commerce OAuth 2.0 Password Grant and enter the following:

  • Fluent Host: Enter the retailer's Fluent API endpoint, for example https://REPLACE-ME.api.fluentretail.com.
  • Retailer Username: Enter the retailer's username.
  • Retailer Password: Enter the retailer's password.
  • OAuth 2.0 Client ID: Enter the client ID obtained from Fluent support.
  • OAuth 2.0 Client Secret: Enter the client secret obtained from Fluent support.
InputCommentsDefault
Fluent HostThe retailer's Fluent API endpoint
Retailer UsernameThe retailer's username
Retailer PasswordThe retailer's password
OAuth 2.0 Client IDA client ID obtained from Fluent support
OAuth 2.0 Client SecretA client secret obtained from Fluent support

Triggers​

New and Updated Records​

Retrieves existing and ongoing orders from Fluent Commerce. Load history once, check for changes on a schedule, or both.

InputCommentsDefault
ConnectionThe Fluent Commerce connection to use.
Look-back DateThe date the initial sync starts from, in YYYY-MM-DD format. Cannot be a future date. Leave empty to start from the first recurrence with no backfill. When set, the initial sync seeds each record modified on or after this date once, ignoring the field and visibility filters.
Retailer IDOptional Fluent retailer ID to scope the polling query. When omitted, the connection's default tenant scope applies.
Show New RecordsWhen enabled, orders whose createdOn falls after the last poll will be emitted in the created array.true
Show Updated RecordsWhen enabled, orders whose updatedOn falls after the last poll but were created earlier will be emitted in the updated array.true

Actions​

Create Customer​

Create a new customer

InputCommentsDefault
ConnectionThe Fluent Commerce connection to use.
Retailer IDThe ID of the retailer (a number)
Customer EmailThe email address of the customer
First NameThe first name of the customer (required)
Promotion Opt InWhen true, the customer is opted in to receive promotional communications.false
Last NameThe last name of the customer
Phone NumberThe customer's phone number
CountryThe customer's country
Time ZoneThe customer's time zone
AttributesCustom attributes to apply to the customer. Each key becomes the attribute name, and each value is stored as a STRING attribute.[]

Create Product​

Create a new standard product

InputCommentsDefault
ConnectionThe Fluent Commerce connection to use.
Product Catalogue Ref (ID)The reference ID (ref) of an existing product catalog
Product Ref IDThe reference ID (ref) of the new product (must be unique)
Product TypeThe type of the productSTANDARD
Product NameThe name of the product (not required to be unique)
Product Summary / DescriptionA short description of the product, stored as the product's summary.
Global Trade Item Number (GTIN)The global trade number of the product
Price CurrencyType of currency the price is in (USD, YEN, GBP, etc)
Price ValueThe price of the product (must be a floating-point number)

Generic GraphQL Request​

Issue any GraphQL query or mutation with variables

InputCommentsDefault
ConnectionThe Fluent Commerce connection to use.
Query or MutationThe GraphQL query or mutation to send to the Fluent Commerce API.
{
me {
id
username
primaryEmail
}
}
VariablesKey-value pairs passed to the query as GraphQL variables.[]
Variables ObjectA JSON object of GraphQL variables, for values that are not strings. Merged with Variables; on a shared key, this value wins.

Get Current User​

Get information about the currently authenticated user

InputCommentsDefault
ConnectionThe Fluent Commerce connection to use.

Get Customer by Email​

Find a customer by their email address

InputCommentsDefault
ConnectionThe Fluent Commerce connection to use.
Customer Email AddressThe customer's email address