Criar saque PIX
curl --request POST \
--url https://api.swytchpay.app/v1/payouts \
--header 'Content-Type: application/json' \
--data '
{
"amount_cents": 1,
"external_id": "<string>",
"pix_key": "<string>",
"recipient": {
"name": "<string>",
"document": "<string>",
"email": "<string>",
"phone": "<string>"
},
"enforce_ownership": true
}
'import requests
url = "https://api.swytchpay.app/v1/payouts"
payload = {
"amount_cents": 1,
"external_id": "<string>",
"pix_key": "<string>",
"recipient": {
"name": "<string>",
"document": "<string>",
"email": "<string>",
"phone": "<string>"
},
"enforce_ownership": True
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
amount_cents: 1,
external_id: '<string>',
pix_key: '<string>',
recipient: {name: '<string>', document: '<string>', email: '<string>', phone: '<string>'},
enforce_ownership: true
})
};
fetch('https://api.swytchpay.app/v1/payouts', 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.swytchpay.app/v1/payouts",
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([
'amount_cents' => 1,
'external_id' => '<string>',
'pix_key' => '<string>',
'recipient' => [
'name' => '<string>',
'document' => '<string>',
'email' => '<string>',
'phone' => '<string>'
],
'enforce_ownership' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.swytchpay.app/v1/payouts"
payload := strings.NewReader("{\n \"amount_cents\": 1,\n \"external_id\": \"<string>\",\n \"pix_key\": \"<string>\",\n \"recipient\": {\n \"name\": \"<string>\",\n \"document\": \"<string>\",\n \"email\": \"<string>\",\n \"phone\": \"<string>\"\n },\n \"enforce_ownership\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.swytchpay.app/v1/payouts")
.header("Content-Type", "application/json")
.body("{\n \"amount_cents\": 1,\n \"external_id\": \"<string>\",\n \"pix_key\": \"<string>\",\n \"recipient\": {\n \"name\": \"<string>\",\n \"document\": \"<string>\",\n \"email\": \"<string>\",\n \"phone\": \"<string>\"\n },\n \"enforce_ownership\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.swytchpay.app/v1/payouts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount_cents\": 1,\n \"external_id\": \"<string>\",\n \"pix_key\": \"<string>\",\n \"recipient\": {\n \"name\": \"<string>\",\n \"document\": \"<string>\",\n \"email\": \"<string>\",\n \"phone\": \"<string>\"\n },\n \"enforce_ownership\": true\n}"
response = http.request(request)
puts response.read_body{
"payout": {
"id": "<string>",
"object": "payout",
"external_id": "<string>",
"amount_cents": 123,
"fee_cents": 123,
"pix_key": "<string>",
"recipient": {
"name": "<string>",
"document": "<string>"
},
"e2e_id": "<string>",
"failure_reason": "<string>",
"failure_message": "<string>"
}
}{
"payout": {
"id": "<string>",
"object": "payout",
"external_id": "<string>",
"amount_cents": 123,
"fee_cents": 123,
"pix_key": "<string>",
"recipient": {
"name": "<string>",
"document": "<string>"
},
"e2e_id": "<string>",
"failure_reason": "<string>",
"failure_message": "<string>"
}
}Payouts
Criar saque PIX
POST
/
v1
/
payouts
Criar saque PIX
curl --request POST \
--url https://api.swytchpay.app/v1/payouts \
--header 'Content-Type: application/json' \
--data '
{
"amount_cents": 1,
"external_id": "<string>",
"pix_key": "<string>",
"recipient": {
"name": "<string>",
"document": "<string>",
"email": "<string>",
"phone": "<string>"
},
"enforce_ownership": true
}
'import requests
url = "https://api.swytchpay.app/v1/payouts"
payload = {
"amount_cents": 1,
"external_id": "<string>",
"pix_key": "<string>",
"recipient": {
"name": "<string>",
"document": "<string>",
"email": "<string>",
"phone": "<string>"
},
"enforce_ownership": True
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
amount_cents: 1,
external_id: '<string>',
pix_key: '<string>',
recipient: {name: '<string>', document: '<string>', email: '<string>', phone: '<string>'},
enforce_ownership: true
})
};
fetch('https://api.swytchpay.app/v1/payouts', 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.swytchpay.app/v1/payouts",
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([
'amount_cents' => 1,
'external_id' => '<string>',
'pix_key' => '<string>',
'recipient' => [
'name' => '<string>',
'document' => '<string>',
'email' => '<string>',
'phone' => '<string>'
],
'enforce_ownership' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.swytchpay.app/v1/payouts"
payload := strings.NewReader("{\n \"amount_cents\": 1,\n \"external_id\": \"<string>\",\n \"pix_key\": \"<string>\",\n \"recipient\": {\n \"name\": \"<string>\",\n \"document\": \"<string>\",\n \"email\": \"<string>\",\n \"phone\": \"<string>\"\n },\n \"enforce_ownership\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.swytchpay.app/v1/payouts")
.header("Content-Type", "application/json")
.body("{\n \"amount_cents\": 1,\n \"external_id\": \"<string>\",\n \"pix_key\": \"<string>\",\n \"recipient\": {\n \"name\": \"<string>\",\n \"document\": \"<string>\",\n \"email\": \"<string>\",\n \"phone\": \"<string>\"\n },\n \"enforce_ownership\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.swytchpay.app/v1/payouts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount_cents\": 1,\n \"external_id\": \"<string>\",\n \"pix_key\": \"<string>\",\n \"recipient\": {\n \"name\": \"<string>\",\n \"document\": \"<string>\",\n \"email\": \"<string>\",\n \"phone\": \"<string>\"\n },\n \"enforce_ownership\": true\n}"
response = http.request(request)
puts response.read_body{
"payout": {
"id": "<string>",
"object": "payout",
"external_id": "<string>",
"amount_cents": 123,
"fee_cents": 123,
"pix_key": "<string>",
"recipient": {
"name": "<string>",
"document": "<string>"
},
"e2e_id": "<string>",
"failure_reason": "<string>",
"failure_message": "<string>"
}
}{
"payout": {
"id": "<string>",
"object": "payout",
"external_id": "<string>",
"amount_cents": 123,
"fee_cents": 123,
"pix_key": "<string>",
"recipient": {
"name": "<string>",
"document": "<string>"
},
"e2e_id": "<string>",
"failure_reason": "<string>",
"failure_message": "<string>"
}
}Body
application/json
Required range:
x > 0Required string length:
1 - 120Minimum string length:
3Available options:
cpf, cnpj, email, phone, random Show child attributes
Show child attributes
Available options:
PLAYER_PAYOUT, SETTLEMENT Response
external_id repetido — retorna o existente (idempotente)
Show child attributes
Show child attributes
⌘I