IntegrationsSiigo

Create a purchase invoice (FC) in the Siigo portal: document type, date, supplier identification, supplier invoice prefix and number, payment method (credit opens a due on due_date) and lines with product_code or account_code, quantity, unit price without tax, discount, tax_id, withholding_tax_id and a second tax (INC, IBUA, ICUI; second_tax_value for taxes per value, second_tax_higher_value for mayor valor)

POST
/integrations/connections/{connection_id}/providers/siigo/bills/create

Create a purchase invoice (FC) in the Siigo portal: document type, date, supplier identification, supplier invoice prefix and number, payment method (credit opens a due on due_date) and lines with product_code or account_code, quantity, unit price without tax, discount, tax_id, withholding_tax_id and a second tax (INC, IBUA, ICUI; second_tax_value for taxes per value, second_tax_higher_value for mayor valor). No header ReteIVA/ReteICA. The same supplier invoice number twice is refused. Before creating a document, read how this company recorded similar past documents and follow the same accounting pattern instead of guessing.

Authorization

bearerApiKey
AuthorizationBearer <token>

Create a scoped API key in the Adlass settings.

In: header

Path Parameters

connection_id*string

Resource identifier: connection_id.

Formatuuid

Header Parameters

X-Request-Id?string

Optional correlation identifier.

Lengthlength <= 128
Idempotency-Key?string

A unique key for this intended write; the body field idempotency_key is accepted instead. One of the two is required. Reuse it only for an identical retry.

Length1 <= length <= 200

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/integrations/connections/123e4567-e89b-42d3-a456-426614174000/providers/siigo/bills/create" \  -H "Idempotency-Key: 123e4567-e89b-42d3-a456-426614174000" \  -H "Content-Type: application/json" \  -d '{    "document_type_id": 1,    "date": "example",    "supplier_identification": "example",    "supplier_invoice_number": 1,    "payment_method_id": 1,    "items": [      {        "quantity": 1,        "unit_price": 0      }    ]  }'
{  "invocation_id": "123e4567-e89b-42d3-a456-426614174000",  "status": "ACTIVE",  "job_id": "example"}