Conta Azul API icon

Conta Azul API

Allows making requests to the Conta Azul API

Create Sale

AI-generated

Summary

Create a sale in Conta Azul by specifying client ID, sale number, sale date, payment conditions including installments, payment method, sale status, sale items, and optional sale observations.

Inputs

  • Client ID (required) — UUID of the client associated with the sale
  • Sale Number (required) — Numeric identifier of the sale
  • Sale Date (required) — Date of the sale in ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ)
  • Payment Condition Option (required) — Payment terms, e.g., 'À vista', '3x', '30,60,90', etc.
  • Installments (required) — One or more installments specifying due date, value, and optional description for the sale payments
  • Payment Method (required) — Select the payment method from options like Cash, Credit Card, PIX, Bank Transfer, etc.
  • Status (required) — Sale status, either 'In Progress' or 'Approved'
  • Items (required) — One or more sale items each with product/service ID, description, quantity, and value
  • Additional Fields (Sale Creation) — Optional sale observations and payment observations

Output shape

a single record

Returns the created sale object as JSON from Conta Azul API. Values like totals are validated to ensure items total equals installments total before creating the sale.

Examples

Example 1: Create a sale with two items and two corresponding installments, specifying client, sale number, date, payment method, status, and optional notes.

Fill Client ID (UUID), Sale Number (numeric), Sale Date (ISO string), Payment Condition Option string, define Installments with Due Date, Value, Description (optional), choose Payment Method option, set Status option, add one or more Items with Product/Service ID, Description, Quantity, Value, and optionally provide sale and payment observations.

Links

Discussion