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:
The unique identifier of the missionary associated with this donation
The unique identifier of the receipt (talon) for this donation
The unique identifier of the donor making the donation
The donation key/code identifier
The status identifier for the donation
The delivery status identifier for the donation
Response
A string containing the result of the donation creation operation
Status Codes
Returns the result string from the database operation
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
}'