curl --request POST \
--url https://api.pagou.ai/v2/transactions \
--header "Authorization: Bearer YOUR_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"external_ref": "order_1001",
"amount": 1500,
"currency": "BRL",
"method": "pix",
"notify_url": "https://merchant.example/webhooks/pagou",
"buyer": {
"name": "Ada Lovelace",
"email": "ada@example.com",
"document": {
"type": "CPF",
"number": "12345678901"
}
},
"products": [
{
"name": "Starter order",
"price": 1500,
"quantity": 1
}
]
}'