IntegrationsSiigo

Create a purchase debit note (ND) in the Siigo portal crossing the open due of an FC: non-electronic ND type, date, FC name (FC-1-65) or id, optional due_quote, supplier credit note number 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/purchase-debit-notes/create

Create a purchase debit note (ND) in the Siigo portal crossing the open due of an FC: non-electronic ND type, date, FC name (FC-1-65) or id, optional due_quote, supplier credit note number 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). Refused above the due balance or for a repeated credit note number. 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/purchase-debit-notes/create" \  -H "Idempotency-Key: 123e4567-e89b-42d3-a456-426614174000" \  -H "Content-Type: application/json" \  -d '{    "document_type_id": 1,    "date": "example",    "bill": "1",    "supplier_credit_note_number": "example",    "items": [      {        "quantity": 1,        "unit_price": 0      }    ]  }'
{  "invocation_id": "123e4567-e89b-42d3-a456-426614174000",  "status": "ACTIVE",  "job_id": "example"}