Login
How to get your api key
Url of the environments
- Sandbox: https://app.sandbox.wepayout.co
- Production: https://app.wepayout.co
Access the platform through one of the available environments.
- Go to the Configuration > Access Control section
- Select your user, or create a new one
- Navigate to the bottom of the page, in the section Integration via User API
- Create or copy your api key to get started
How to get the JWT
Caution
Use the JWT for testing with postman, curls, and other tools.
JWT generation depends on authenticator code made dynamically
JWT is valid for five minutes.
Url of the environments
- Sandbox: https://api.sandbox.wepayout.com.br
- Production https://api.wepayout.com.br
endpoint /auth/login, use the payload below.
Payload for request
{
"email":"exemple@wepayout.com.br",
"password":"exemple",
"digits":"000000"// authenticator code
}
Response
{
"token": "alnjsbdklbjafsjabnsf",
"refreshToken": "alnjsaosfafsiouasfbiopuab",
"twoFactorRequired": false
}
Samples
- NodeJs
- Python
- Java
- PHP
var axios = require('axios');
var data = JSON.stringify({
"email": "exemple@wepayout.com.br",
"password": "exemple",
"digits": "000000"
});
var config = {
method: 'post',
url: 'https://api.sandbox.wepayout.com.br/auth/login',
headers: {
'Content-Type': 'application/json'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
}
import requests
import json
url = "https://api.sandbox.wepayout.com.br/auth/login"
payload = json.dumps({
"email":"exemple@wepayout.com.br",
"password":"exemple",
"digits":"000000"
})
headers = {
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
class ExempleClass {
public static void main(String args[]) {
OkHttpClient client = new OkHttpClient().newBuilder().build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"email\":\"exemple@wepayout.com.br\",\n \"password\":\"exemple\",\n \"digits\":\"000000\"\n}");
Request request = new Request.Builder()
.url("https://api.sandbox.wepayout.com.br/auth/login")
.method("POST", body)
.addHeader("Content-Type", "application/json")
.build();
Response response = client.newCall(request).execute();
}
}
<?php
$url= 'https://api.sandbox.wepayout.com.br/auth/login';
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => $url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"email":"exemple@wepayout.com.br",
"password":"exemple",
"digits":"000000"
}',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;