curl --request POST \
--url https://api.{your-broker}.slate-labs.com/transactions/payment-callbackimport requests
url = "https://api.{your-broker}.slate-labs.com/transactions/payment-callback"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.{your-broker}.slate-labs.com/transactions/payment-callback', 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.{your-broker}.slate-labs.com/transactions/payment-callback",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$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.{your-broker}.slate-labs.com/transactions/payment-callback"
req, _ := http.NewRequest("POST", url, nil)
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.{your-broker}.slate-labs.com/transactions/payment-callback")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.{your-broker}.slate-labs.com/transactions/payment-callback")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyPayment Callback
Thin wrapper: release the payment dedup key on ANY processing failure.
_payment_callback_impl sets request.state.payment_dedup_key right
after it wins the Redis SET NX. If the impl raises before its session
commits (FX miss 503, currency mismatch 400, tx-not-found 404 race, DB
outage, …), the key must be deleted — otherwise the provider’s retry
gets {"duplicate": true} for 24h while the deposit stays PENDING and
cashier-source txs can’t be approved manually (DEP-1, money review
2026-06-09). Releasing is always safe: the FOR UPDATE +
status == "APPROVED" check inside is the authoritative double-credit
guard; the Redis key is load-shedding only. Mirrors the release pattern
in routes/payouts.py (E6).
The key is RETAINED on success and on the already-approved short-circuit — both return normally, so no release happens here.
curl --request POST \
--url https://api.{your-broker}.slate-labs.com/transactions/payment-callbackimport requests
url = "https://api.{your-broker}.slate-labs.com/transactions/payment-callback"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.{your-broker}.slate-labs.com/transactions/payment-callback', 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.{your-broker}.slate-labs.com/transactions/payment-callback",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$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.{your-broker}.slate-labs.com/transactions/payment-callback"
req, _ := http.NewRequest("POST", url, nil)
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.{your-broker}.slate-labs.com/transactions/payment-callback")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.{your-broker}.slate-labs.com/transactions/payment-callback")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyResponse
Successful Response