---
updatedAt: 2025-06-11T20:21:39.000Z
agentTools:
  projectIndex: https://docs.finbits.com.br/llms.txt
---

# Criar Recebimento Programado

# Diagrama do Fluxo de Recebimentos

<Image align="center" src="https://files.readme.io/3bdb79e-Screenshot_2023-10-02_at_12.57.22.png" />

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "finbits-api",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.finbits.com.br/public"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {}
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/receivables": {
      "post": {
        "summary": "Criar Recebimento Programado",
        "description": "",
        "operationId": "criar-recebimento-programado",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "date",
                  "description",
                  "amount",
                  "account_id"
                ],
                "properties": {
                  "date": {
                    "type": "string",
                    "description": "Data do recebimento",
                    "format": "date"
                  },
                  "description": {
                    "type": "string",
                    "description": "Contexto do recebimento"
                  },
                  "amount": {
                    "type": "integer",
                    "description": "Valores `positivos` em centavos. Exemplo: Para representar um valor de R$ `10,20` utilize o valor inteiro como `1020`.",
                    "format": "int32"
                  },
                  "account_id": {
                    "type": "string",
                    "description": "Identificador único de uma conta bancária."
                  },
                  "relevant_date": {
                    "type": "string",
                    "description": "Referente ao mês de competência.",
                    "format": "date"
                  },
                  "observations": {
                    "type": "string",
                    "description": "Pode ser usado livremente para comentários ou adição de contexto."
                  },
                  "category_id": {
                    "type": "string",
                    "description": "Identificador único da categoria."
                  },
                  "contact_id": {
                    "type": "string",
                    "description": "Identificador do contato/fornecedor."
                  },
                  "external_id": {
                    "type": "string",
                    "description": "Identificador de correlação utilizado pelo cliente."
                  },
                  "classifications": {
                    "type": "array",
                    "description": "Lista de classificações contendo etiquetas que contextualizam o recebimento utilizando a linguagem de negócio da emprasa. Para visualizar a lista de etiquetas, dentro da plataforma, digite `ctrl + k + etiquetas` (no linux ou windows) ou `cmd + k + etiquetas` (no mac)",
                    "items": {
                      "properties": {
                        "classification_id": {
                          "type": "string"
                        },
                        "labels_ids": {
                          "type": "array",
                          "default": [],
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "type": "object"
                    }
                  },
                  "attachments_ids": {
                    "type": "array",
                    "description": "Lista de identificadores únicos de anexos.",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "examples": {
                "Request Example": {
                  "value": {
                    "account_id": "account_d3buzu7rv5ezrfux4w3dtw2qj4",
                    "amount": 1020,
                    "attachments_ids": [
                      "attachment_jr74c7i77bbbjh7cf646kkhvku",
                      "attachment_a77lgfx3ynhdvg7rlp72pr5ham"
                    ],
                    "category_id": "category_p4ifrn3tpfa57jbuhzctsbutgq",
                    "classifications": [
                      {
                        "classification_id": "classification_o4as4kkswradfo6fvejsoc5fte",
                        "labels_ids": [
                          "label_lsa4j6ygxbfohlmgq4mbswyeay",
                          "label_ulyiguzcwnel5aez7qchx2q6zm"
                        ]
                      }
                    ],
                    "contact_id": "contact_go2gdsl2pvchvflepg57ib6zyy",
                    "date": "2021-08-24",
                    "description": "secure payment",
                    "external_id": "e8e588d9-5159-49a1-8370-9d7524b383bf",
                    "observations": "some comments",
                    "relevant_date": "2021-08-24"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "201",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"account\":{\n    \"account_number\":\"2222929\",\n    \"branch_number\":\"3333930\",\n    \"id\":\"account_d3buzu7rv5ezrfux4w3dtw2qj4\",\n    \"name\":\"name931\",\n    \"object\":\"account\",\n    \"routing_number\":\"366\",\n    \"synchronize_type\":\"manual\",\n    \"type\":\"checking_account\"\n  },\n  \"account_id\":\"account_d3buzu7rv5ezrfux4w3dtw2qj4\",\n  \"amount\":1020,\n  \"attachments\":[\n    {\n      \"id\":\"attachment_jr74c7i77bbbjh7cf646kkhvku\",\n      \"name\":\"attachment_942.jpg\",\n      \"object\":\"attachment\",\n      \"type\":\"image/jpeg\"\n    },\n    {\n      \"id\":\"attachment_a77lgfx3ynhdvg7rlp72pr5ham\",\n      \"name\":\"attachment_943.jpg\",\n      \"object\":\"attachment\",\n      \"type\":\"image/jpeg\"\n    }\n  ],\n  \"category_id\":\"category_p4ifrn3tpfa57jbuhzctsbutgq\",\n  \"classifications\":[\n    {\n      \"active\":true,\n      \"id\":\"classification_o4as4kkswradfo6fvejsoc5fte\",\n      \"labels\":[\n        {\n          \"active\":true,\n          \"classification_id\":\"classification_o4as4kkswradfo6fvejsoc5fte\",\n          \"id\":\"label_lsa4j6ygxbfohlmgq4mbswyeay\",\n          \"name\":\"Label A\",\n          \"object\":\"label\",\n          \"parent_label_id\":null\n        },\n        {\n          \"active\":true,\n          \"classification_id\":\"classification_o4as4kkswradfo6fvejsoc5fte\",\n          \"id\":\"label_ulyiguzcwnel5aez7qchx2q6zm\",\n          \"name\":\"Label A.1\",\n          \"object\":\"label\",\n          \"parent_label_id\":null\n        }\n      ],\n      \"name\":\"Centros de Custos-944\",\n      \"object\":\"classification\"\n    }\n  ],\n  \"contact\":{\n    \"active\":true,\n    \"document\":\"55829365561\",\n    \"external_id\":null,\n    \"id\":\"contact_go2gdsl2pvchvflepg57ib6zyy\",\n    \"name\":\"contact_name947\",\n    \"nickname\":\"contact_nickname948\",\n    \"object\":\"contact\",\n    \"type\":\"natural\",\n    \"pix_key\": null,\n    \"pix_type\": null,\n    \"bank_account_number\": \"92379-0\",\n    \"bank_account_type\": \"checking_account\",\n    \"bank_branch_number\": \"2323-2\",\n    \"bank_routing_number\": \"2237\"\n  },\n  \"contact_id\":\"contact_go2gdsl2pvchvflepg57ib6zyy\",\n  \"date\":\"2021-08-24\",\n  \"description\":\"secure payment\",\n  \"external_id\":\"e8e588d9-5159-49a1-8370-9d7524b383bf\",\n  \"id\":\"receivable_a3dv6xuacrgrbm74qkuhkt4uca\",\n  \"object\":\"receivable\",\n  \"observations\":\"some comments\",\n  \"relevant_date\":\"2021-08-01\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "account": {
                      "type": "object",
                      "properties": {
                        "account_number": {
                          "type": "string",
                          "example": "2222929"
                        },
                        "branch_number": {
                          "type": "string",
                          "example": "3333930"
                        },
                        "id": {
                          "type": "string",
                          "example": "account_d3buzu7rv5ezrfux4w3dtw2qj4"
                        },
                        "name": {
                          "type": "string",
                          "example": "name931"
                        },
                        "object": {
                          "type": "string",
                          "example": "account"
                        },
                        "routing_number": {
                          "type": "string",
                          "example": "366"
                        },
                        "synchronize_type": {
                          "type": "string",
                          "example": "manual"
                        },
                        "type": {
                          "type": "string",
                          "example": "checking_account"
                        }
                      }
                    },
                    "account_id": {
                      "type": "string",
                      "example": "account_d3buzu7rv5ezrfux4w3dtw2qj4"
                    },
                    "amount": {
                      "type": "integer",
                      "example": 1020,
                      "default": 0
                    },
                    "attachments": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "example": "attachment_jr74c7i77bbbjh7cf646kkhvku"
                          },
                          "name": {
                            "type": "string",
                            "example": "attachment_942.jpg"
                          },
                          "object": {
                            "type": "string",
                            "example": "attachment"
                          },
                          "type": {
                            "type": "string",
                            "example": "image/jpeg"
                          }
                        }
                      }
                    },
                    "category_id": {
                      "type": "string",
                      "example": "category_p4ifrn3tpfa57jbuhzctsbutgq"
                    },
                    "classifications": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "active": {
                            "type": "boolean",
                            "example": true,
                            "default": true
                          },
                          "id": {
                            "type": "string",
                            "example": "classification_o4as4kkswradfo6fvejsoc5fte"
                          },
                          "labels": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "active": {
                                  "type": "boolean",
                                  "example": true,
                                  "default": true
                                },
                                "classification_id": {
                                  "type": "string",
                                  "example": "classification_o4as4kkswradfo6fvejsoc5fte"
                                },
                                "id": {
                                  "type": "string",
                                  "example": "label_lsa4j6ygxbfohlmgq4mbswyeay"
                                },
                                "name": {
                                  "type": "string",
                                  "example": "Label A"
                                },
                                "object": {
                                  "type": "string",
                                  "example": "label"
                                },
                                "parent_label_id": {}
                              }
                            }
                          },
                          "name": {
                            "type": "string",
                            "example": "Centros de Custos-944"
                          },
                          "object": {
                            "type": "string",
                            "example": "classification"
                          }
                        }
                      }
                    },
                    "contact": {
                      "type": "object",
                      "properties": {
                        "active": {
                          "type": "boolean",
                          "example": true,
                          "default": true
                        },
                        "document": {
                          "type": "string",
                          "example": "55829365561"
                        },
                        "external_id": {},
                        "id": {
                          "type": "string",
                          "example": "contact_go2gdsl2pvchvflepg57ib6zyy"
                        },
                        "name": {
                          "type": "string",
                          "example": "contact_name947"
                        },
                        "nickname": {
                          "type": "string",
                          "example": "contact_nickname948"
                        },
                        "object": {
                          "type": "string",
                          "example": "contact"
                        },
                        "type": {
                          "type": "string",
                          "example": "natural"
                        },
                        "pix_key": {},
                        "pix_type": {},
                        "bank_account_number": {
                          "type": "string",
                          "example": "92379-0"
                        },
                        "bank_account_type": {
                          "type": "string",
                          "example": "checking_account"
                        },
                        "bank_branch_number": {
                          "type": "string",
                          "example": "2323-2"
                        },
                        "bank_routing_number": {
                          "type": "string",
                          "example": "2237"
                        }
                      }
                    },
                    "contact_id": {
                      "type": "string",
                      "example": "contact_go2gdsl2pvchvflepg57ib6zyy"
                    },
                    "date": {
                      "type": "string",
                      "example": "2021-08-24"
                    },
                    "description": {
                      "type": "string",
                      "example": "secure payment"
                    },
                    "external_id": {
                      "type": "string",
                      "example": "e8e588d9-5159-49a1-8370-9d7524b383bf"
                    },
                    "id": {
                      "type": "string",
                      "example": "receivable_a3dv6xuacrgrbm74qkuhkt4uca"
                    },
                    "object": {
                      "type": "string",
                      "example": "receivable"
                    },
                    "observations": {
                      "type": "string",
                      "example": "some comments"
                    },
                    "relevant_date": {
                      "type": "string",
                      "example": "2021-08-01"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n   \"message\": \"Bad request\",\n   \"errors\": {\n     \"account_id\": \"is required\",\n     \"amount\": \"is required\",\n     \"date\": \"is required\",\n     \"description\": \"is required\"\n   }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "Bad request"
                    },
                    "errors": {
                      "type": "object",
                      "properties": {
                        "account_id": {
                          "type": "string",
                          "example": "is required"
                        },
                        "amount": {
                          "type": "string",
                          "example": "is required"
                        },
                        "date": {
                          "type": "string",
                          "example": "is required"
                        },
                        "description": {
                          "type": "string",
                          "example": "is required"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "401",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "  "
                  }
                }
              }
            }
          },
          "422": {
            "description": "422",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n   \"message\": \"Unprocessable entity\",\n   \"errors\": {\"external_id\": [\"has already been taken\"]}\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "Unprocessable entity"
                    },
                    "errors": {
                      "type": "object",
                      "properties": {
                        "external_id": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "example": "has already been taken"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```