Skip to content
Proud to collaborate with Microsoft for Startups

bling.sync-journal-entries ​

Iterate every page of Bling lançamentos for a single bill and persist each into commerce_entity (entity_type='journal_entry').

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-bling
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes——
connection_uuiduuidYes——
linked_receivable_external_refstringNo——
linked_payable_external_refstringNo——
limiteintegerNo——
actorstringNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes——
connection_uuiduuidYes——
linked_receivable_external_refstringNo——
linked_payable_external_refstringNo——
limiteintegerNo——
actorstringNo——
current_pageintegerNo——
synced_countintegerNo——
persisted_countintegerNo——
created_countintegerNo——
updated_countintegerNo——
last_page_itemsjsonNo——
has_next_pagebooleanNo——
started_atstringNo——
completed_atstringNo——
failure_reasonstringNo——
failed_atstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepjsonNo——
failed_layerjsonNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—startSync requested
fetchingNoNo——Fetching one page
planningNoNo—fetch_pageKick first page fetch
completedNoYesYes—All pages synced
failedNoYesNo—Sync failed

State Diagram ​

Transitions ​

FromActionToDescription
initiatedstartplanning—
planningfetch_pagefetching—
fetchingfetch_pagefetching—
fetchingcompletecompleted—
initiatedfailfailed—
planningfailfailed—
fetchingfailfailed—

Business Errors ​

CodeMessage Template
BLING_PAGE_FETCH_FAILEDbling.fetch-journal-entry failed on page {page}:
BLING_JOURNAL_ENTRY_NO_BILL_LINKbling.sync-journal-entries requires linked_receivable_external_ref OR linked_payable_external_ref.

API Usage ​

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

{
  "workflow_type": "bling.sync-journal-entries",
  "initial_data": {
    "organization_uuid": "value",
    "connection_uuid": "value"
  }
}