curl --request POST \
--url https://api.myidvirtual.com/autopay \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 123,
"description": "<string>",
"customer_id": "<string>"
}
'{
"success": true,
"transaction_id": "txn_123456789",
"qr_code": "00020101021226...",
"qr_code_url": "https://api.gates2b.com/qr/txn_123456789",
"amount": 50.00,
"expires_at": "2024-01-15T23:59:59.000Z",
"status": "pending"
}
Envia requisição de pagamento automático via Autopay/Bpix
curl --request POST \
--url https://api.myidvirtual.com/autopay \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 123,
"description": "<string>",
"customer_id": "<string>"
}
'{
"success": true,
"transaction_id": "txn_123456789",
"qr_code": "00020101021226...",
"qr_code_url": "https://api.gates2b.com/qr/txn_123456789",
"amount": 50.00,
"expires_at": "2024-01-15T23:59:59.000Z",
"status": "pending"
}
{
"success": true,
"transaction_id": "txn_123456789",
"qr_code": "00020101021226...",
"qr_code_url": "https://api.gates2b.com/qr/txn_123456789",
"amount": 50.00,
"expires_at": "2024-01-15T23:59:59.000Z",
"status": "pending"
}
curl --location --request POST 'http://localhost:3333/autopay' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...' \
--header 'Content-Type: application/json' \
--data-raw '{
"amount": 50.00,
"description": "Recarga mensal VPN",
"customer_id": "customer-id-123"
}'