Geonix

Métodos de pagamento

GEThttps://geonix.com/personal/api/v1/{apiKey}/balance/payments/list

Esse endpoint recupera uma lista de sistemas de pagamento disponíveis para reabastecer o saldo de sua conta.

Diferentes sistemas de pagamento podem ter taxas de transação ou tempos de processamento variados. Consulte a documentação ou o suporte do sistema de pagamento para obter mais informações.

Parâmetros do caminho

Nome

Tipo

Descrição

apiKey*

string

Chave de API para autorizar solicitações

Cabeçalhos

Nome

Valor

Tipo de conteúdo

application/json

Solicitar exemplos

curl -X GET "https://geonix.com/personal/api/v1/YOUR_API_KEY_HERE/balance/payments/list"
<?php
$apiKey = 'YOUR_API_KEY_HERE'; // Replace with your API key
$url = "https://geonix.com/personal/api/v1/$apiKey/balance/payments/list";

$curl = curl_init($url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HTTPHEADER, [
  'Content-Type: application/json'
]);

$response = curl_exec($curl);
curl_close($curl);

echo $response;
?>
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;

public class BalancePaymentsListExample {
    public static void main(String[] args) {
        try {
            String apiKey = "YOUR_API_KEY_HERE"; // Replace with your API key
            URL url = new URL("https://geonix.com/personal/api/v1/" + apiKey + "/balance/payments/list");
            HttpURLConnection conn = (HttpURLConnection) url.openConnection();
            conn.setRequestMethod("GET");
            conn.setRequestProperty("Accept", "application/json");

            if (conn.getResponseCode() != 200) {
                throw new RuntimeException("Failed : HTTP error code : " + conn.getResponseCode());
            }

            BufferedReader br = new BufferedReader(new InputStreamReader((conn.getInputStream())));

            String output;
            System.out.println("Output from Server .... \n");
            while ((output = br.readLine()) != null) {
                System.out.println(output);
            }

            conn.disconnect();

        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}

Resposta

{
  "status": "success",
  "data": {
    "items": [
      {
        "id": "29",
        "name": "PayPal"
      }
    ]
  },
  "errors": []
}

On this page

Métodos de pagamento | Geonix