Sankhya icon

Sankhya

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

Actions137

Pessoal — RH (REST) → Atualizar Recibos eSocial

AI-generated

Summary

Update eSocial payroll receipts for a specific employee in a given company using REST API.

Inputs

  • ID (required) — The employee ID to identify the person whose eSocial receipts will be updated.
  • Código da Empresa (required) — The company code to filter and specify the employer related to the employee.
  • Dados do Funcionário (JSON) (required) — A JSON object containing the data representing the updated eSocial payroll receipt details for the employee.

Output shape

a JSON object representing the API response to the update request

The operation sends a PUT request to the endpoint /v1/pessoal/funcionarios/{id}/empresa/{codigoEmpresaPessoal}/recibos-esocial with the provided data and returns the response body parsed as JSON. Errors from the API will throw exceptions with error details.

Examples

Example 1: Update eSocial receipts for employee ID '12345' at company code '001' with specific payroll receipt data.

Set 'ID' to '12345', 'Código da Empresa' to '001', and provide the receipt data as a JSON object in 'Dados do Funcionário'.

Links

Discussion