Fluid Company APIs (1.0)

The Fluid Company APIs provide a comprehensive set of APIs designed to integrate Fluid's powerful services into your applications seamlessly. These APIs use Company API tokens for authentication and provide full access to manage your company's resources including users, orders, products, media, and more.

For APIs that authenticate with User tokens, see the Rep APIs documentation.

Download OpenAPI description
Overview
E-mail support@fluid.app
License MIT
Languages
Servers
Mock server
https://docs.fluid.app/_mock/docs/apis/company.api/
Production server with company subdomain
https://{company}.fluid.app/
Local development server
http://fluid.lvh.me:{port}/

Activities

Operations

Admins

Operations

Agreements

Operations

Announcements

Operations

ApplePay

Operations

Application Theme Resources

Operations

Application Theme Templates

Operations

Application Themes

Operations

Authentication

Operations

Bank Accounts

Operations

Brand Guidelines

Operations

Business Types

Operations

Callback Definitions

Operations

Callback Registrations

Operations

Callback Schemas

Operations

Carts

Operations

Catch Ups

Operations

Categories

Operations

Checkout

Operations

Collections

Operations

Companies

Operations

Company Countries

Operations

Contacts

Operations

Conversations

Operations

Countries

Operations

Currencies

Operations

Customer Notes

Operations

Customer Orders

Operations

Customers

Operations

DAM Query

Operations

Dam

Operations

Default MySites

Operations

Devices

Operations

Discounts

Operations

Display Settings

Operations

Domains

Operations

Drop Zones

Operations

Droplet Categories

Operations

Droplet Installations

Operations

Droplets

Operations

Enrollment Packs

Operations

Enrollments

Operations

Entities

Operations

Events

Operations

FairShare Order Journey

Operations

Feature Flags

Operations

File Resources

Operations

Fluid Pay

Operations

Form Elements

Operations

Forms

Operations

Global Embeds

Operations

Inventory Levels

Operations

Labels

Operations

Languages

Operations

Libraries

Operations

MCC Codes

Operations

Media

Operations

Messages

Operations

Metafield Definitions

Operations

Metafields

Operations

Mobile Widgets

Operations

Multi-Factor Authentications

Operations

Notifications

Operations

Onboarding

Operations

Onboarding Info

Operations

Order Fulfillments

Operations

Orders

Operations

Owners

Operations

Pages

Operations

Payment

Operations

Payment Accounts

Operations

Payment Integrations

Operations

Payments

Operations

Paypal

Operations

Points

Operations

Points Ledgers

Operations

Points Values

Operations

Posts

Operations

Product Bundles

Operations

Product Images

Operations

Product Subscription Plans

Operations

Products

Operations

Prompts

Operations

Public Assets

Operations

Public Companies

Operations

Public Drop Zones

Operations

Ranks

Operations

Recipients

Operations

Redirects

Operations

Refunds

Operations

Reps

Operations

List all reps

Request

Query
search_querystring

Filter reps with search query that matches with their email, first name, last name, share guid or external id

sorted_bystring

Sort the records by one of the supported attributes:

  • first_name (or 'name' as alias)
  • last_name
  • email
  • created_at
  • share_guid
  • active

The sort attribute should be followed by one of the order directives: '_asc', '_desc'

Example: sorted_by=email_asc
activeboolean

Filter reps by active status

pageinteger> 0

Page number for pagination

per_pageinteger( 0 .. 100 ]

Number of records per page

curl -i -X GET \
  'https://docs.fluid.app/_mock/docs/apis/company.api/api/v2/reps?active=true&page=0&per_page=100&search_query=string&sorted_by=string' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

reps found

Bodyapplication/json
repsArray of objects(UserCompany)required
reps[].​idintegerrequired
reps[].​activeboolean or null
Default true
reps[].​external_idstring or null
reps[].​usernamestring or null
reps[].​first_namestringrequired
reps[].​last_namestringrequired
reps[].​created_atstring(date-time)required
reps[].​image_urlstring or null
reps[].​rolesstring or null
Default "user"
reps[].​share_guidstring>= 2 characters^[a-z0-9\-_]+$required
reps[].​country_codestringrequired
reps[].​language_codestringrequired
reps[].​computed_full_namestring or null
reps[].​computed_emailstring or null
reps[].​phonestring or null
metaobjectrequired
meta.​request_idstring
Example: "123e4567-e89b-12d3-a456-426614174000"
meta.​timestampstring
Example: "2021-01-01T00:00:00Z"
meta.​paginationobject
Response
application/json
{ "reps": [ {} ], "meta": { "request_id": "123e4567-e89b-12d3-a456-426614174000", "timestamp": "2021-01-01T00:00:00Z", "pagination": {} } }

Create a rep

Request

Bodyapplication/json
repobjectrequired
rep.​first_namenull or string
rep.​last_namenull or string
rep.​emailnull or stringrequired
rep.​phonenull or string
rep.​activenull or boolean
rep.​external_idnull or string
rep.​usernamenull or string
rep.​share_guidnull or string
rep.​language_codenull or string
rep.​country_codenull or string
curl -i -X POST \
  https://docs.fluid.app/_mock/docs/apis/company.api/api/v2/reps \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "rep": {
      "first_name": null,
      "last_name": null,
      "email": null,
      "phone": null,
      "active": null,
      "external_id": null,
      "username": null,
      "share_guid": null,
      "language_code": null,
      "country_code": null
    }
  }'

Responses

rep created with custom share_guid

Bodyapplication/json
repobject(UserCompany)required
rep.​idintegerrequired
rep.​activeboolean or null
Default true
rep.​external_idstring or null
rep.​usernamestring or null
rep.​first_namestringrequired
rep.​last_namestringrequired
rep.​created_atstring(date-time)required
rep.​image_urlstring or null
rep.​rolesstring or null
Default "user"
rep.​share_guidstring>= 2 characters^[a-z0-9\-_]+$required
rep.​country_codestringrequired
rep.​language_codestringrequired
rep.​computed_full_namestring or null
rep.​computed_emailstring or null
rep.​phonestring or null
metaobjectrequired
meta.​request_idstring
Example: "123e4567-e89b-12d3-a456-426614174000"
meta.​timestampstring
Example: "2021-01-01T00:00:00Z"
Response
application/json
{ "rep": { "id": 0, "active": true, "external_id": "string", "username": "string", "first_name": "string", "last_name": "string", "created_at": "2019-08-24T14:15:22Z", "image_url": "string", "roles": "user", "share_guid": "string", "country_code": "string", "language_code": "string", "computed_full_name": "string", "computed_email": "string", "phone": "string" }, "meta": { "request_id": "123e4567-e89b-12d3-a456-426614174000", "timestamp": "2021-01-01T00:00:00Z" } }

Retrieve a rep

Request

Path
idintegerrequired
curl -i -X GET \
  'https://docs.fluid.app/_mock/docs/apis/company.api/api/v2/reps/{id}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

rep found

Bodyapplication/json
repobject(UserCompany)required
rep.​idintegerrequired
rep.​activeboolean or null
Default true
rep.​external_idstring or null
rep.​usernamestring or null
rep.​first_namestringrequired
rep.​last_namestringrequired
rep.​created_atstring(date-time)required
rep.​image_urlstring or null
rep.​rolesstring or null
Default "user"
rep.​share_guidstring>= 2 characters^[a-z0-9\-_]+$required
rep.​country_codestringrequired
rep.​language_codestringrequired
rep.​computed_full_namestring or null
rep.​computed_emailstring or null
rep.​phonestring or null
rep.​rankstring or null
rep.​joined_datestringrequired
rep.​customer_idinteger or null
rep.​enrollerobject or null
metaobjectrequired
meta.​request_idstring
Example: "123e4567-e89b-12d3-a456-426614174000"
meta.​timestampstring
Example: "2021-01-01T00:00:00Z"
Response
application/json
{ "rep": { "id": 0, "active": true, "external_id": "string", "username": "string", "first_name": "string", "last_name": "string", "created_at": "2019-08-24T14:15:22Z", "image_url": "string", "roles": "user", "share_guid": "string", "country_code": "string", "language_code": "string", "computed_full_name": "string", "computed_email": "string", "phone": "string", "rank": "string", "joined_date": "string", "customer_id": 0, "enroller": {} }, "meta": { "request_id": "123e4567-e89b-12d3-a456-426614174000", "timestamp": "2021-01-01T00:00:00Z" } }

Update a rep

Request

Path
idintegerrequired
Bodyapplication/json
idintegerrequired
repobjectrequired
rep.​first_namenull or string
rep.​last_namenull or string
rep.​emailnull or string
rep.​phonenull or string
rep.​activenull or boolean
rep.​external_idnull or string
rep.​usernamenull or string
rep.​share_guidnull or string
rep.​language_codenull or string
rep.​country_codenull or string
curl -i -X PATCH \
  'https://docs.fluid.app/_mock/docs/apis/company.api/api/v2/reps/{id}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "id": 0,
    "rep": {
      "first_name": null,
      "last_name": null,
      "email": null,
      "phone": null,
      "active": null,
      "external_id": null,
      "username": null,
      "share_guid": null,
      "language_code": null,
      "country_code": null
    }
  }'

Responses

rep updated with same username

Bodyapplication/json
repobject(UserCompany)required
rep.​idintegerrequired
rep.​activeboolean or null
Default true
rep.​external_idstring or null
rep.​usernamestring or null
rep.​first_namestringrequired
rep.​last_namestringrequired
rep.​created_atstring(date-time)required
rep.​image_urlstring or null
rep.​rolesstring or null
Default "user"
rep.​share_guidstring>= 2 characters^[a-z0-9\-_]+$required
rep.​country_codestringrequired
rep.​language_codestringrequired
rep.​computed_full_namestring or null
rep.​computed_emailstring or null
rep.​phonestring or null
rep.​rankstring or null
rep.​joined_datestringrequired
rep.​customer_idinteger or null
rep.​enrollerobject or null
metaobjectrequired
meta.​request_idstring
Example: "123e4567-e89b-12d3-a456-426614174000"
meta.​timestampstring
Example: "2021-01-01T00:00:00Z"
Response
application/json
{ "rep": { "id": 0, "active": true, "external_id": "string", "username": "string", "first_name": "string", "last_name": "string", "created_at": "2019-08-24T14:15:22Z", "image_url": "string", "roles": "user", "share_guid": "string", "country_code": "string", "language_code": "string", "computed_full_name": "string", "computed_email": "string", "phone": "string", "rank": "string", "joined_date": "string", "customer_id": 0, "enroller": {} }, "meta": { "request_id": "123e4567-e89b-12d3-a456-426614174000", "timestamp": "2021-01-01T00:00:00Z" } }

Delete a rep

Request

Path
idintegerrequired
curl -i -X DELETE \
  'https://docs.fluid.app/_mock/docs/apis/company.api/api/v2/reps/{id}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

rep deleted

Bodyapplication/json
idintegerrequired
metaobjectrequired
meta.​request_idstring
Example: "123e4567-e89b-12d3-a456-426614174000"
meta.​timestampstring
Example: "2021-01-01T00:00:00Z"
Response
application/json
{ "id": 0, "meta": { "request_id": "123e4567-e89b-12d3-a456-426614174000", "timestamp": "2021-01-01T00:00:00Z" } }

Update enroller for a rep

Request

Path
idintegerrequired

Rep ID

Bodyapplication/json
idintegerrequired
enroller_idintegerrequired
transfer_pointsnull or boolean
curl -i -X PATCH \
  'https://docs.fluid.app/_mock/docs/apis/company.api/api/v2/reps/{id}/update_enroller' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "id": 0,
    "enroller_id": 0,
    "transfer_points": null
  }'

Responses

enroller update queued with transfer_points

Bodyapplication/json
enroller_updateobjectrequired
enroller_update.​rep_idintegerrequired
enroller_update.​enroller_idintegerrequired
enroller_update.​transfer_pointsbooleanrequired
enroller_update.​messagestringrequired
metaobjectrequired
meta.​request_idstring
Example: "123e4567-e89b-12d3-a456-426614174000"
meta.​timestampstring
Example: "2021-01-01T00:00:00Z"
Response
application/json
{ "enroller_update": { "rep_id": 0, "enroller_id": 0, "transfer_points": true, "message": "string" }, "meta": { "request_id": "123e4567-e89b-12d3-a456-426614174000", "timestamp": "2021-01-01T00:00:00Z" } }

Roles

Operations

Root Themes

Operations

Shares

Operations

Shop

Operations

Sitemap

Operations

Social Media

Operations

Subscription Plans

Operations

Subscriptions

Operations

System Monitoring

Operations

Tags

Operations

Tax Categories

Operations

Theme Region Rules

Operations

Tiles

Operations

Tracking Informations

Operations

Tree Nodes

Operations

Trees

Operations

Users

Operations

Variant Countries

Operations

Variant Images

Operations

Variant Inventory Levels

Operations

Variants

Operations

Warehouses

Operations

Webhook Events

Operations

Webhook Schemas

Operations

Webhooks

Operations

Webhooks Resources

Operations

affiliate

Operations

carts

Operations

checkout

Operations

enrollment-packs

Operations

events

Operations

fingerprint

Operations

lead

Operations

media

Operations

page

Operations

playlist

Operations

product

Operations

session

Operations

settings

Operations

url

Operations

widgets

Operations