Skip to content
Proud to collaborate with Microsoft for Startups

bling.create-payable ​

Create a new accounts-payable row at Bling (POST /contas/pagar). Persists the result into commerce_entity (entity_type='payable').

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-bling
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes——
connection_uuiduuidYes——
counterparty_external_refstringYes—Bling supplier (contato) id
amountstringYes—Decimal as string
due_datestringYes—ISO date — vencimento
issue_datestringNo——
document_numberstringNo——
descriptionstringNo——
payment_method_external_refstringNo——
financial_category_external_refstringNo——
idempotency_keystringNo——
actorstringNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes——
connection_uuiduuidYes——
counterparty_external_refstringYes—Bling supplier (contato) id
amountstringYes—Decimal as string
due_datestringYes—ISO date — vencimento
issue_datestringNo——
document_numberstringNo——
descriptionstringNo——
payment_method_external_refstringNo——
financial_category_external_refstringNo——
idempotency_keystringNo——
actorstringNo——
provider_resource_refstringNo——
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—Payable 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_PAYABLE_MISSING_FIELD{field} is required to create a Bling payable
BLING_PAYABLE_CREATE_FAILEDBling refused payable create:
BLING_PAYABLE_PERSIST_FAILEDcommerce_entity persist failed:

API Usage ​

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

{
  "workflow_type": "bling.create-payable",
  "initial_data": {
    "organization_uuid": "value",
    "connection_uuid": "value",
    "counterparty_external_ref": "value",
    "amount": "value"
  }
}