curl --request POST \
--url https://laso.finance/payment-recipients \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"recipient_id": "<string>",
"display_name": "<string>",
"archived": true
}
'import requests
url = "https://laso.finance/payment-recipients"
payload = {
"recipient_id": "<string>",
"display_name": "<string>",
"archived": True
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({recipient_id: '<string>', display_name: '<string>', archived: true})
};
fetch('https://laso.finance/payment-recipients', 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://laso.finance/payment-recipients",
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([
'recipient_id' => '<string>',
'display_name' => '<string>',
'archived' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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://laso.finance/payment-recipients"
payload := strings.NewReader("{\n \"recipient_id\": \"<string>\",\n \"display_name\": \"<string>\",\n \"archived\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
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://laso.finance/payment-recipients")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"recipient_id\": \"<string>\",\n \"display_name\": \"<string>\",\n \"archived\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://laso.finance/payment-recipients")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"recipient_id\": \"<string>\",\n \"display_name\": \"<string>\",\n \"archived\": true\n}"
response = http.request(request)
puts response.read_body{
"user_id": "<string>",
"platform": "<string>",
"recipient_id": "<string>",
"display_name": "<string>",
"archived": true
}{
"error": "A request with this Idempotency-Key is still being processed",
"code": "idempotency_key_in_progress"
}{
"error": "Idempotency-Key reused with a different request",
"code": "idempotency_key_reused"
}Rename or archive a saved recipient (free)
Renames a saved Venmo or PayPal recipient, archives it, or both. Provide at least one of display_name or archived.
Archiving hides an entry from the default list while keeping its history, which is the reversible way to retire a recipient. Prefer it over DELETE.
Requires a Bearer token from /auth or /get-card.
curl --request POST \
--url https://laso.finance/payment-recipients \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"recipient_id": "<string>",
"display_name": "<string>",
"archived": true
}
'import requests
url = "https://laso.finance/payment-recipients"
payload = {
"recipient_id": "<string>",
"display_name": "<string>",
"archived": True
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({recipient_id: '<string>', display_name: '<string>', archived: true})
};
fetch('https://laso.finance/payment-recipients', 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://laso.finance/payment-recipients",
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([
'recipient_id' => '<string>',
'display_name' => '<string>',
'archived' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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://laso.finance/payment-recipients"
payload := strings.NewReader("{\n \"recipient_id\": \"<string>\",\n \"display_name\": \"<string>\",\n \"archived\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
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://laso.finance/payment-recipients")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"recipient_id\": \"<string>\",\n \"display_name\": \"<string>\",\n \"archived\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://laso.finance/payment-recipients")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"recipient_id\": \"<string>\",\n \"display_name\": \"<string>\",\n \"archived\": true\n}"
response = http.request(request)
puts response.read_body{
"user_id": "<string>",
"platform": "<string>",
"recipient_id": "<string>",
"display_name": "<string>",
"archived": true
}{
"error": "A request with this Idempotency-Key is still being processed",
"code": "idempotency_key_in_progress"
}{
"error": "Idempotency-Key reused with a different request",
"code": "idempotency_key_reused"
}Authorizations
Firebase ID token from /auth or any paid route, sent as a Bearer token: Authorization: Bearer <id_token> (the Bearer prefix is required).
Headers
Optional client-generated unique key (a UUID works) that makes this write safe to retry. A retry with the same key within 24 hours returns the recorded response of the original request, marked with an Idempotency-Replayed: true header, instead of performing the write again. Reusing a key with a different body or route is rejected with 422 (code: idempotency_key_reused); a retry that arrives while the original is still running gets 409 (code: idempotency_key_in_progress), so wait a moment and retry with the same key. Keys are scoped to the authenticated account.
255Body
Payment platform the recipient is saved under.
venmo, paypal The entry's recipient_id from GET /payment-recipients (an opaque id, not the phone number or email).
Must be a string. A wrong type returns a terminal 400 with code invalid_display_name.
Must be a boolean. A wrong type returns a terminal 400 with code invalid_archived.
Was this page helpful?