Sankhya icon

Sankhya

Integração completa com o ERP Sankhya — REST v1/v2 e Gateway

Actions137

Vendas — Pedidos REST (REST) → Atualizar Pedido

AI-generated

Summary

Update an existing sales order in the Sankhya ERP system using REST API by specifying only the fields to be updated in JSON format.

Inputs

  • Dados de Atualização (JSON) (required) — A JSON object containing the fields and values to update in the sales order. Only the specified fields will be modified.

Output shape

A JSON object representing the updated sales order or a success confirmation response from the REST API.

The operation sends a PUT request to the /v1/vendas/pedidos/{id} endpoint, where {id} is the identifier of the sales order to update. The updated fields must be included in the 'dadosUpdate' JSON input. The response includes the updated order data if successful, or an error if the update fails.

Examples

Example 1: Update a sales order's customer code and negotiation date

Set 'dadosUpdate' to {"codParc":1,"dtNeg":"2026-01-01"} to update customer and date fields of the order with the given ID.

Links

Discussion