Skip to main content
POST
/
Donacion
/
CrearDonacion
Create Donation
curl --request POST \
  --url https://api.example.com/Donacion/CrearDonacion \
  --header 'Content-Type: application/json' \
  --data '
{
  "idmisionero": 123,
  "idtalon": 123,
  "iddonante": 123,
  "idclave": 123,
  "idestado": 123,
  "idestadoentrega": 123
}
'
{
  "200": {},
  "400": {},
  "result": "<string>"
}
Creates a new donation in the system. This endpoint accepts donation details and returns a confirmation result.

Request Body

The request body should contain the following parameters:
idmisionero
integer
required
The unique identifier of the missionary associated with this donation
idtalon
integer
required
The unique identifier of the receipt (talon) for this donation
iddonante
integer
required
The unique identifier of the donor making the donation
idclave
integer
required
The donation key/code identifier
idestado
integer
required
The status identifier for the donation
idestadoentrega
integer
required
The delivery status identifier for the donation

Response

result
string
A string containing the result of the donation creation operation

Status Codes

200
Success
Returns the result string from the database operation
400
Bad Request
Returns an error message if:
  • There was an error during the creation process
  • The donation was not inserted successfully

Example Request

curl -X POST https://api.donasf.com/Donacion/CrearDonacion \
  -H "Content-Type: application/json" \
  -d '{
    "idmisionero": 1,
    "idtalon": 100,
    "iddonante": 50,
    "idclave": 5,
    "idestado": 1,
    "idestadoentrega": 1
  }'

Build docs developers (and LLMs) love