curl --request PUT \
--url https://api.myidvirtual.com/autopay/confirmpayment \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"transaction_id": "<string>",
"status": "<string>",
"amount_paid": 123
}
'{
"success": true,
"message": "Pagamento confirmado com sucesso",
"transaction": {
"id": "txn_123456789",
"status": "CONFIRMED",
"amount": 50.00,
"amount_paid": 50.00,
"confirmed_at": "2024-01-15T10:35:00.000Z"
}
}
Confirma o recebimento de um pagamento via Autopay/Bpix
curl --request PUT \
--url https://api.myidvirtual.com/autopay/confirmpayment \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"transaction_id": "<string>",
"status": "<string>",
"amount_paid": 123
}
'{
"success": true,
"message": "Pagamento confirmado com sucesso",
"transaction": {
"id": "txn_123456789",
"status": "CONFIRMED",
"amount": 50.00,
"amount_paid": 50.00,
"confirmed_at": "2024-01-15T10:35:00.000Z"
}
}
{
"success": true,
"message": "Pagamento confirmado com sucesso",
"transaction": {
"id": "txn_123456789",
"status": "CONFIRMED",
"amount": 50.00,
"amount_paid": 50.00,
"confirmed_at": "2024-01-15T10:35:00.000Z"
}
}
curl --location --request PUT 'http://localhost:3333/autopay/confirmpayment' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...' \
--header 'Content-Type: application/json' \
--data-raw '{
"transaction_id": "txn_123456789",
"status": "CONFIRMED",
"amount_paid": 50.00
}'