Skip to main content

Endpoint

POST /Talones/CrearTalones
Content-Type: application/json

Request Body

idclave
integer
required
The ID of the donation key associated with the voucher
cantidad
integer
required
The quantity for the voucher
idestado
integer
required
The state ID of the voucher
idmisionero
integer
required
The ID of the missionary associated with the voucher
idedicion
integer
required
The ID of the edition associated with the voucher

Request Example

{
  "idclave": 1,
  "cantidad": 5,
  "idestado": 1,
  "idmisionero": 10,
  "idedicion": 2
}

Response

result
array
An array of objects containing the created voucher information

Response Examples

[
  {
    "resultados": "Talón creado exitosamente",
    "idtalon": 123
  }
]

Status Codes

  • 200 OK - Voucher created successfully
  • 400 Bad Request - Invalid request data or creation failed

Source Reference

Controller: TalonesController.cs:16-41

Build docs developers (and LLMs) love