Hello Guys, I need some help
I have create two api and I need some help, because i never did something like this:
I have a api to get the payments like this:
{
"status": "success",
"data": [
{
"nome": "Diogo Manuel do Rosário Teixeira",
"nif": "246470232",
"preco": "20",
"item": "OPplan",
"data_fatura": "2025-02-22",
"data_recibo": "2025-02-23",
"recibo": 1,
"document_filename": "Z:\\CeX (PT) _ Vender à CeX - Basket.pdf"
},
{
"nome": "Diogo Manuel do Rosário Teixeira",
"nif": "246470232",
"preco": "20",
"item": "OPplan",
"data_fatura": "2025-01-22",
"data_recibo": "2025-01-24",
"recibo": 1,
"document_filename": "C:\\Users\\teixe\\Downloads\\CV2024-POR-MOD.pdf"
},
{
"nome": "Diogo Manuel do Rosário Teixeira",
"nif": "246470232",
"preco": "20",
"item": "OPplan",
"data_fatura": "2024-12-22",
"data_recibo": "2024-12-25",
"recibo": 1,
"document_filename": "C:\\Users\\teixe\\Documents\\RECIBO TUPPERWARE.pdf"
},
{
"nome": "Diogo Manuel do Rosário Teixeira",
"nif": "246470232",
"preco": "20",
"item": "OPplan",
"data_fatura": "2024-11-22",
"data_recibo": "2024-11-28",
"recibo": 1,
"document_filename": "C:\\Users\\teixe\\Documents\\Recibo_Fevereiro_885.pdf"
},
{
"nome": "Diogo Manuel do Rosário Teixeira",
"nif": "246470232",
"preco": "20",
"item": "OPplan",
"data_fatura": "2025-03-22",
"data_recibo": null,
"recibo": 0,
"document_filename": "C:\\Users\\teixe\\Documents\\NOWO_202403_22981757_Q03099416_U.PDF"
}
]
}
And I have another to get the document encripted tha is save in MYSQL.
Now, what I'm trying to do is:
Show the response of the first API in a table.
If recibo is 1, show a button so the client can download or see the document.
There is someway to make this?
Best regards to all