List Authorizations
curl --request GET \
--url https://api.sandbox.wepayout.com.br/v2/automatic-pix/authorizations \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sandbox.wepayout.com.br/v2/automatic-pix/authorizations"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sandbox.wepayout.com.br/v2/automatic-pix/authorizations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sandbox.wepayout.com.br/v2/automatic-pix/authorizations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sandbox.wepayout.com.br/v2/automatic-pix/authorizations"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sandbox.wepayout.com.br/v2/automatic-pix/authorizations")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.wepayout.com.br/v2/automatic-pix/authorizations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"id": 1,
"merchant_id": 1,
"contract_id": "123",
"identifier": "identifier",
"frequency": "MONTHLY",
"contract_name": "Contract Name",
"type": "RECURRING",
"authorization_amount": 100.00,
"amount": 100.00,
"maximum_authorization_amount": 200.00,
"start_date": "2023-01-01",
"end_date": "2023-12-31",
"created_at": "2023-01-01T00:00:00Z",
"status": {
"id": 1,
"name": "ACTIVE"
},
"history": [
{
"id": 1,
"authorization_id": 1,
"status_id": 1,
"status_name": "ACTIVE",
"created_at": "2023-01-01T00:00:00Z"
}
],
"buyer": {
"id": 1,
"name": "Buyer Name",
"document": "12345678900"
}
}
]
Authorizations
List Authorizations
List all authorizations
GET
/
v2
/
automatic-pix
/
authorizations
List Authorizations
curl --request GET \
--url https://api.sandbox.wepayout.com.br/v2/automatic-pix/authorizations \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sandbox.wepayout.com.br/v2/automatic-pix/authorizations"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sandbox.wepayout.com.br/v2/automatic-pix/authorizations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sandbox.wepayout.com.br/v2/automatic-pix/authorizations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sandbox.wepayout.com.br/v2/automatic-pix/authorizations"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sandbox.wepayout.com.br/v2/automatic-pix/authorizations")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.wepayout.com.br/v2/automatic-pix/authorizations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"id": 1,
"merchant_id": 1,
"contract_id": "123",
"identifier": "identifier",
"frequency": "MONTHLY",
"contract_name": "Contract Name",
"type": "RECURRING",
"authorization_amount": 100.00,
"amount": 100.00,
"maximum_authorization_amount": 200.00,
"start_date": "2023-01-01",
"end_date": "2023-12-31",
"created_at": "2023-01-01T00:00:00Z",
"status": {
"id": 1,
"name": "ACTIVE"
},
"history": [
{
"id": 1,
"authorization_id": 1,
"status_id": 1,
"status_name": "ACTIVE",
"created_at": "2023-01-01T00:00:00Z"
}
],
"buyer": {
"id": 1,
"name": "Buyer Name",
"document": "12345678900"
}
}
]
Response
List of authorizations
Show authorization object
Show authorization object
Authorization ID
Merchant ID
Contract ID
Identifier
Frequency
Contract Name
Type
Authorization Amount
Amount
Maximum Authorization Amount
Start Date
End Date
Creation Date
[
{
"id": 1,
"merchant_id": 1,
"contract_id": "123",
"identifier": "identifier",
"frequency": "MONTHLY",
"contract_name": "Contract Name",
"type": "RECURRING",
"authorization_amount": 100.00,
"amount": 100.00,
"maximum_authorization_amount": 200.00,
"start_date": "2023-01-01",
"end_date": "2023-12-31",
"created_at": "2023-01-01T00:00:00Z",
"status": {
"id": 1,
"name": "ACTIVE"
},
"history": [
{
"id": 1,
"authorization_id": 1,
"status_id": 1,
"status_name": "ACTIVE",
"created_at": "2023-01-01T00:00:00Z"
}
],
"buyer": {
"id": 1,
"name": "Buyer Name",
"document": "12345678900"
}
}
]
Was this page helpful?
⌘I

