Skip to main content
PUT
/
admin
/
fiscal-groups
/
{id}
Actualizar fiscal_group (parcial)
curl --request PUT \
  --url https://api.artisn.desarrollo-redbrand.com/api/admin/fiscal-groups/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "externalId": "<string>",
  "name": "<string>",
  "uf": "<string>",
  "taxRegime": "<string>",
  "stores": [
    {
      "store_id": "<string>",
      "store_name": "<string>"
    }
  ],
  "taxMatrix": {}
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "externalId": "<string>",
  "name": "<string>",
  "uf": "<string>",
  "taxRegime": "<string>",
  "stores": [
    {
      "store_id": "<string>",
      "store_name": "<string>"
    }
  ],
  "taxMatrix": {},
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

Body

application/json
externalId
string
name
string
uf
string
taxRegime
string
stores
object[]

Arreglo JSON persistido en fiscal_groups.stores. Debe incluir al menos un objeto con store_id para que findFiscalGroupByStoreId pueda resolver la tienda desde payload.store.id.

taxMatrix
object

Mapa código NCM → reglas (tax_matrix en BD). Claves típicamente numéricas de 8 dígitos (string). El motor usa taxMatrix[ncm] tras resolver el NCM del catálogo de producto.

Response

Actualizado

Propiedades en camelCase según respuesta Drizzle/JSON.

id
string<uuid>
externalId
string
name
string
uf
string
taxRegime
string
stores
object[]

Arreglo JSON persistido en fiscal_groups.stores. Debe incluir al menos un objeto con store_id para que findFiscalGroupByStoreId pueda resolver la tienda desde payload.store.id.

taxMatrix
object

Mapa código NCM → reglas (tax_matrix en BD). Claves típicamente numéricas de 8 dígitos (string). El motor usa taxMatrix[ncm] tras resolver el NCM del catálogo de producto.

createdAt
string<date-time>
updatedAt
string<date-time>