Skip to content
Proud to collaborate with Microsoft for Startups

bling.fetch-user ​

Fetch the OAuth-authenticated Bling user identity via LTIP commerce_user and persist it as a commerce_entity row (entity_type='user'). 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——
userjsonNo——
commerce_entity_uuiduuidNo——
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 user
completedNoYesYes—User 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_USER_PERSIST_FAILEDdata.commerce.entity.persist failed for user:

API Usage ​

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

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