### API Keys for Authentication Source: https://www.vexopay.com.br Use 'ci' and 'cs' in the headers for API authentication. This is required to make requests to the Vexopay API. ```shell curl -X POST https://api.vexopay.com/v1/pix/create \ -H "Content-Type: application/json" \ -H "ci: YOUR_CLIENT_ID" \ -H "cs: YOUR_CLIENT_SECRET" \ -d '{ "amount": 1000, "description": "Pagamento de produto X", "external_id": "prod-x-12345" }' ``` -------------------------------- ### Create PIX Payment Source: https://www.vexopay.com.br Generate a PIX payment charge with a single API call. The customer pays, a webhook confirms in real-time, and funds are credited to your balance. ```javascript const response = await fetch('https://api.vexopay.com/v1/pix/create', { method: 'POST', headers: { 'Content-Type': 'application/json', 'ci': 'YOUR_CLIENT_ID', 'cs': 'YOUR_CLIENT_SECRET' }, body: JSON.stringify({ amount: 1000, description: 'Pagamento de produto X', external_id: 'prod-x-12345' }) } ); const data = await response.json(); ``` -------------------------------- ### Receive Payments via PIX or Crypto Source: https://www.vexopay.com.br Integrate Vexopay to receive payments in PIX or various cryptocurrencies like USDT, USDC, and BTC. The API provides real-time exchange rates. ```python import requests url = "https://api.vexopay.com/v1/pix/create" payload = { "amount": 1000, "description": "Pagamento de produto X", "external_id": "prod-x-12345" } headers = { "Content-Type": "application/json", "ci": "YOUR_CLIENT_ID", "cs": "YOUR_CLIENT_SECRET" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` -------------------------------- ### Check Balance and Withdraw Funds Source: https://www.vexopay.com.br Access your account balance and initiate withdrawals via PIX, internal transfer, or to your wallet using the Vexopay API. ```php "https://api.vexopay.com/v1/pix/create", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => json_encode([ 'amount' => 1000, 'description' => 'Pagamento de produto X', 'external_id' => 'prod-x-12345' ]), CURLOPT_HTTPHEADER => [ "Content-Type: application/json", "ci: YOUR_CLIENT_ID", "cs: YOUR_CLIENT_SECRET" ], ]); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:"; echo $err; } else { echo $response; } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.