Impuestos

Consultar un impuesto por ID

Retorna el detalle de un impuesto específico por su ID. Si el negocio hereda productos del padre, también busca en los impuestos del negocio padre.

Permiso requerido: TX_POST (Crear/Editar)

Autenticación requerida: Bearer Token obtenido del campo tokenCurrent en el servicio de login.

Authorization: Bearer {tokenCurrent}

get/taxes/{id}

Request

  • Base URL
    https://api.pirpos.com
  • URL
    https://api.pirpos.com/taxes/{id}
  • Auth
    HTTP bearer

Path parameters

idstring required

ID (ObjectId) del impuesto a consultar

Response

Impuesto obtenido exitosamente

_idstring

ID único del impuesto

businessstring

ID del negocio al que pertenece el impuesto

namestring

Nombre del impuesto

percentagenumber

Porcentaje del impuesto

type'Percentage' | 'PerUnit' | 'None'

Tipo de impuesto

deletedboolean

Indica si el impuesto ha sido eliminado

modifiedOnstring date-time

Fecha de última modificación

createdOnstring date-time

Fecha de creación

Example response

{
  "_id": "507f1f77bcf86cd799439020",
  "business": "507f1f77bcf86cd799439012",
  "name": "IVA",
  "percentage": 19,
  "type": "Percentage",
  "externalIntegration": {
    "siigo": {
      "id": 5
    },
    "DIAN": {
      "id": "01"
    },
    "loggro": {
      "rate": 19,
      "rateCode": "IVA_19",
      "rateDescription": "IVA 19%",
      "id": "abc123",
      "taxCode": "IVA"
    },
    "loggroEnterprise": {
      "id": "ent_001"
    }
  },
  "modifiedOn": "2025-02-23T10:00:00.000Z",
  "createdOn": "2025-01-15T08:30:00.000Z"
}

Changes

No recorded changes to this operation across all 1 revision of this API.