Skip to content
Proud to collaborate with Microsoft for Startups

bling.fetch-company ​

Fetch the connected Bling tenant identity via LTIP commerce_company and persist it as a commerce_entity row (entity_type='company'). Singleton — no pagination.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-bling
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes——
connection_uuiduuidYes——
actorstringNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes——
connection_uuiduuidYes——
actorstringNo——
companyjsonNo—CompanyContract dump from LTIP describe
commerce_entity_uuiduuidNo—UUID of the persisted commerce_entity row
persisted_atstringNo——
failure_reasonstringNo——
failed_atstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepjsonNo——
failed_layerjsonNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—fetch_and_persistFetch + persist company
completedNoYesYes—Company persisted
failedNoYesNo—Fetch or persist failed

State Diagram ​

Transitions ​

FromActionToDescription
initiatedfetch_and_persistcompleted—
initiatedfailfailed—

Business Errors ​

CodeMessage Template
BLING_CONNECTION_NOT_FOUNDBling connection {connection_uuid} not found in organization
BLING_CONNECTION_WRONG_PROVIDERConnection {connection_uuid} is not a Bling connection
BLING_COMPANY_PERSIST_FAILEDdata.commerce.entity.persist failed for company:

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "bling.fetch-company",
  "initial_data": {
    "organization_uuid": "value",
    "connection_uuid": "value"
  }
}