🇬🇧
Yativo Documentation
Spanish
English
English
  • Yativo
  • Introduction to Yativo
    • Financial Infrastructure
    • About Us
  • Dashboard
  • Business Plans
  • Getting Started with Yativo API
  • Yativo API Glossary
  • API reference
    • Misc.
      • Countries
      • States
      • City
  • Security and Authentication
    • Security
    • Authentication
    • Idempotency in API Requests
  • Environment
    • Environments
  • Notifications
    • Webhook
  • Compliance
    • Verification
      • KYC
      • KYB
      • KYC/KYB Update
      • KYC Status
      • Global Business Search
    • Supported Jurisdiction
    • Supported Countries, Currencies and Payment Method
  • User Management
    • Customer
      • Get Customers
      • Retrieve customer
      • Add Customer
  • Payments
    • Currencies
    • Crypto Wallets
      • Generate Wallet Address
      • Fetch Wallet Address
      • Crypto Deposit History
      • Single crypto deposit history
    • Payout
      • Payout
      • Get Payouts
      • Get Payout
      • Beneficiaries
        • Get Beneficiaries
        • Add Beneficiary Payment Details
        • Update Beneficiary
        • Archive Beneficiary
        • Add Beneficiary
    • Payin
    • Virtual Cards
      • Supported Currency, Country
      • Create card
      • Fetch card
      • Top up card
      • Get Transactions
      • Freeze and Unfreeze Card
    • Virtual Accounts
      • Create VIrtual Accounts
        • USD Virtual Account
        • Mexico Virtual Account
        • Brazil PIX QR
      • Virtual Account Management
      • Transaction History
  • Foreign Exchange
    • Exchange Rate
      • Request Quote
  • Transactions
    • Transaction Summary
    • Get Single Transaction
  • Crypto System
    • Yativo Crypto Platform API
Powered by GitBook
On this page
  1. Payments
  2. Payout
  3. Beneficiaries

Archive Beneficiary

PreviousUpdate BeneficiaryNextAdd Beneficiary

Last updated 2 months ago

Archive User Beneficiary

Endpoint

PUT {{baseUrl}}/beneficiaries/{beneficiaryID}/archive

Description

This endpoint archives an existing beneficiary. The beneficiaryID in the URL is the ID of the beneficiary to be archived.

Request

Headers

  • Authorization: Bearer YOUR_ACCESS_TOKEN

  • Content-Type: application/json

URL Parameters

Parameter
Type
Required
Description

beneficiaryID

string

Yes

The ID of the beneficiary to be archived

Request Body

The request body does not require any fields for this endpoint.

Example Request

<?php

$beneficiary_id = "1";  // Example beneficiary ID
$api_token = "YOUR_ACCESS_TOKEN";
$base_url = "{{baseUrl}}";
$url = "$base_url/beneficiaries/$beneficiary_id/archive";

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
    "Authorization: Bearer $api_token",
    "Content-Type: application/json"
));

$response = curl_exec($ch);

if (curl_errno($ch)) {
    echo 'Error:' . curl_error($ch);
} else {
    echo $response;
}

curl_close($ch);
?>
const beneficiary_id = "1";  // Example beneficiary ID
const api_token = "YOUR_ACCESS_TOKEN";
const base_url = "{{baseUrl}}";
const url = `${base_url}/beneficiaries/${beneficiary_id}/archive`;

fetch(url, {
    method: 'PUT',
    headers: {
        'Authorization': `Bearer ${api_token}`,
        'Content-Type': 'application/json'
    }
})
.then(response => {
    if (!response.ok) {
        throw new Error('Network response was not ok ' + response.statusText);
    }
    return response.json();
})
.then(data => console.log(data))
.catch(error => console.error('There was a problem with your fetch operation:', error));
curl -X PUT {{baseUrl}}/beneficiaries/1/archive \
     -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
     -H "Content-Type: application/json"
import requests

beneficiary_id = "1"  # Example beneficiary ID
base_url = "{{baseUrl}}"
url = f"{base_url}/beneficiaries/{beneficiary_id}/archive"
headers = {
    "Authorization": "Bearer YOUR_ACCESS_TOKEN",
    "Content-Type": "application/json"
}

response = requests.put(url, headers=headers)
print(response.json())

Archive Beneficiary

put
Authorizations
Path parameters
beneficiary_idstringRequired
Responses
200Success
put
PUT /api/v1/beneficiaries/{beneficiary_id}/archive HTTP/1.1
Host: smtp.yativo.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200Success

No content

  • Archive User Beneficiary
  • PUTArchive Beneficiary