v1

latestOpenAPI 3.1.0raw.githubusercontent.com2025-07-116470172.6 KB
Conceptos

Crear Concepto

Se crearan un concepto nuevos.

post/ledger

Headers

campusIDstring uuid required

ID del Campus que se desea trabajar.

periodIDstring uuid required

ID del periodo que se desea trabajar.

Request body

program_idstring required

Parametro requerido para consultar las inscripciones de un programa

student_idstring uuid required

Identificador del estudiante

primary_concept_type'membership' | 'inscription' | 'complement' required

Concepto primario

primary_concept_idstring uuid

Identificador del concepto primario

scholarship_idstring uuid

Identificador de la beca

discount_idstring uuid

Identificador del descuento

external_idstring
metadataobject

Example request

{
  "program_id": "prm_48ec2f25-74e1-406a-a42f-4636bcce7877",
  "student_id": "0b313f5a-1023-47e4-9b96-82efa61363be",
  "primary_concept_type": "membership",
  "primary_concept_id": "0b313f5a-1023-47e4-9b96-82efa61363be",
  "items": [
    {
      "amount": 10,
      "pay_date": "2023-11-10",
      "external_id": "2a09691a-a473-46de-b0a7-45269007c59c",
      "metadata": {
        "id_alumno": "123abc"
      }
    }
  ],
  "scholarship_id": "0b313f5a-1023-47e4-9b96-82efa61363be",
  "scholarship_items": [
    {
      "amount": 10,
      "pay_type": "integer",
      "pay_date": "2023-11-10",
      "on_inscription": true,
      "external_id": "2a09691a-a473-46de-b0a7-45269007c59c",
      "metadata": {
        "id_alumno": "123abc"
      }
    }
  ],
  "discount_id": "0b313f5a-1023-47e4-9b96-82efa61363be",
  "discount_items": [
    {
      "amount": 10,
      "pay_date": "2023-11-10",
      "on_inscription": true,
      "external_id": "2a09691a-a473-46de-b0a7-45269007c59c",
      "metadata": {
        "id_alumno": "123abc"
      }
    }
  ],
  "external_id": "2a09691a-a473-46de-b0a7-45269007c59c",
  "metadata": {
    "id_alumno": "123abc"
  }
}

Response

Crear Concepto

Example response

[
  {
    "data": [
      {
        "id": "a12a51c4-3f69-464f-93eb-cc8d355f68b2",
        "created_at": "2023-09-01 14:44:17.600161",
        "updated_at": "2023-09-01 14:44:17.600161",
        "amount": 100,
        "pending_amount": 80,
        "external_id": "2a09691a-a473-46de-b0a7-45269007c59c",
        "metadata": {
          "id_alumno": "123abc"
        },
        "items": [
          {
            "id": "a12a51c4-3f69-464f-93eb-cc8d355f68b2",
            "created_at": "2023-09-01 14:44:17.600161",
            "updated_at": "2023-09-01 14:44:17.600161"
          }
        ],
        "student": {
          "id": "a12a51c4-3f69-464f-93eb-cc8d355f68b2",
          "created_at": "2023-09-01 14:44:17.600161",
          "updated_at": "2023-09-01 14:44:17.600161"
        }
      }
    ]
  }
]