These docs are for v1.2. Click to read the latest docs for v1.4.

Comunidade

Ask a Question
Back to All

só da erro 403

(edited)
", 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(\[ 'type' => 'PIX', 'debitParty' => [ 'number' => 0, 'branchCode' => 50 ], 'creditParty' => [ 'accountType' => 'CC', 'bankCode' => 208, 'branchCode' => 50, 'number' => '000000001', 'taxId' => 30306294000145, 'name' => 'BTG PACTUAL' ], 'tags' => [ 'externalId' => 'rrt-2396386635293333864' ], 'amount' => 20.02, 'scheduledDate' => '2023-09-02', 'reason' => 'testando' ]), CURLOPT_HTTPHEADER => [ "accept: application/json", "authorization: Bearer access_token", "content-type: application/json" ], ]); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }