Skip to content
Proud to collaborate with Microsoft for Startups

bling.create-journal-entry ​

Direct creation of a Bling lançamento. Caller supplies the Bling-side linked_receivable_external_ref or linked_payable_external_ref + amount; this workflow POSTs to /contas/{kind}/{id}/lancamentos and persists the result into commerce_entity.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-bling
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes——
connection_uuiduuidYes——
linked_receivable_external_refstringNo——
linked_payable_external_refstringNo——
amountstringYes—Decimal serialized as string (avoid float drift)
posted_datestringNo—ISO date — defaults to today
competence_datestringNo——
descriptionstringNo——
document_numberstringNo——
counterparty_external_refstringNo——
bank_account_external_refstringNo——
payment_method_external_refstringNo——
financial_category_external_refstringNo——
actorstringNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes——
connection_uuiduuidYes——
linked_receivable_external_refstringNo——
linked_payable_external_refstringNo——
amountstringYes—Decimal serialized as string (avoid float drift)
posted_datestringNo—ISO date — defaults to today
competence_datestringNo——
descriptionstringNo——
document_numberstringNo——
counterparty_external_refstringNo——
bank_account_external_refstringNo——
payment_method_external_refstringNo——
financial_category_external_refstringNo——
actorstringNo——
provider_resource_refstringNo—Bling lançamento id returned by POST
commerce_entity_uuiduuidNo——
created_at_isostringNo——
failure_reasonstringNo——
failed_atstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepjsonNo——
failed_layerjsonNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—createCreate requested
completedNoYesYes—Journal entry created + persisted
failedNoYesNo—Create failed

State Diagram ​

Transitions ​

FromActionToDescription
initiatedcreatecompleted—
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_JOURNAL_ENTRY_NO_BILL_LINKlinked_receivable_external_ref OR linked_payable_external_ref is required — Bling scopes lançamentos to a parent bill in v1.
BLING_JOURNAL_ENTRY_CREATE_FAILEDBling refused journal entry creation:
BLING_JOURNAL_ENTRY_PERSIST_FAILEDdata.commerce.entity.persist failed after Bling create:

API Usage ​

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

{
  "workflow_type": "bling.create-journal-entry",
  "initial_data": {
    "organization_uuid": "value",
    "connection_uuid": "value",
    "amount": "value"
  }
}