Create Pix charge
Creates a Pix charge and returns the copy-and-paste code, the QR Code image and the transaction id.
curl -X POST "https://api.payzu.processamento.com/v1/pix" \ -H "Authorization: Bearer {{token}}" \ -H "Content-Type: application/json" \ -d '{ "amount": 10.9 }'const body = JSON.stringify({ "amount": 10.9})fetch("https://api.payzu.processamento.com/v1/pix", { method: "POST", headers: { "Content-Type": "application/json", "Authorization": "Bearer {{token}}" }, body})import requestsurl = "https://api.payzu.processamento.com/v1/pix"body = """{ "amount": 10.9}"""response = requests.request("POST", url, data = body, headers = { "Content-Type": "application/json", "Authorization": "Bearer {{token}}"})print(response.text)