After a buyer creates an order with Create Order, they must provide evidence that payment was made before the seller can confirm the purchase. This endpoint accepts one or more image files viaDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/fredy-rizo/tukit/llms.txt
Use this file to discover all available pages before exploring further.
multipart/form-data under the image_proof field. The server processes each image through Google Cloud Storage using the imageGenerate utility, records the upload date in YYYY_M_D format in the image_proof_date field, and returns the updated ShoppingCart document. Only the authenticated user who owns the cart (i.e. the original buyer) is permitted to upload proof — any other authenticated user receives a 203 permission error.
Method and path
Authentication
A valid JWT must be passed in thetoken-access request header. The server verifies that req.user._id matches the user._id stored on the cart document. If they do not match the request is rejected with 203.
| Header | Required | Description |
|---|---|---|
token-access | ✅ Yes | JWT of the buyer who created this cart |
Path parameters
The MongoDB
_id of the shopping cart returned in savedBuy._id from the Create Order response.Request body
The request must be sent asmultipart/form-data. Multer is configured to accept an array of files under the field name image_proof, stored temporarily at storage/image_pay/ before being transferred to Google Cloud Storage.
One or more image files representing the payment receipt or bank-transfer screenshot. Use the field name
image_proof for every file in the multipart form. Accepted types depend on your Google Cloud Storage bucket configuration.The
image_proof_date field is computed server-side as YYYY_M_D (e.g. "2024_7_12") using the server’s current date at the time of the request. You do not need to send this value.Responses
200 — Proof uploaded
"Exelente!. En estos momentos su pago será válido, danos un momento"trueThe updated
ShoppingCart document with image_proof and image_proof_date populated.Error responses
| Status | msj | Cause |
|---|---|---|
403 | "Sin token" | token-access header is missing |
401 | "Token inexistente" | JWT is invalid or expired |
404 | "No encontrado" | No ShoppingCart document matches shoppingCartId |
203 | "No tienes permisos para esta función" | Authenticated user is not the owner of this cart |
500 | (error object) | Unexpected server error |