Skip to main content

Documentation

Delete Sender

Delete a payout sender from the Rapyd platform.

    • sender

    • ID of the sender. String starting with sender_.

    • .NET

      • using System;
        
        namespace RapydApiRequestSample
        {
            class Program
            {
                static void Main(string[] args)
                {
                    try
                    {
                        string senderId = "sender_b9342620e3eb13164286485bbff9eb7b";
        
                        string result = RapydApiRequestSample.Utilities.MakeRequest("DELETE", $"/v1/payouts/sender/{senderId}");
        
                        Console.WriteLine(result);
                    }
                    catch (Exception e)
                    {
                        Console.WriteLine("Error completing request: " + e.Message);
                    }
                }
            }
        }
    • JavaScript

      • const makeRequest = require('<path-to-your-utility-file>/utilities').makeRequest;
        
        async function main() {
          try {
            const result = await makeRequest(
              'DELETE',
              '/v1/payouts/sender/sender_b9342620e3eb13164286485bbff9eb7b'
            );
        
            console.log(result);
          } catch (error) {
            console.error('Error completing request', error);
          }
        }
    • PHP

      • <?php
        $path = $_SERVER['DOCUMENT_ROOT'];
        $path .= "/<path-to-your-utility-file>/utilities.php";
        include($path);
        
        try {
            $object = make_request('delete', '/v1/payouts/sender/sender_b9342620e3eb13164286485bbff9eb7b');
            var_dump($object);
        } catch(Exception $e) {
            echo "Error: $e";
        }
        ?>
    • Python

      • from pprint import pprint
        
        from utilities import make_request
        
        sender_id = 'sender_b9342620e3eb13164286485bbff9eb7b' 
        results = make_request(method='delete',
                               path=f'/v1/payouts/sender/{sender_id}')
        pprint(results)
  • /v1/payouts/sender/:sender

  • Delete Sender

  • curl -X delete
    https://sandboxapi.rapyd.net/v1/payouts/sender/sender_b9342620e3eb13164286485bbff9eb7b
    -H 'access_key: your-access-key-here'
    -H 'Content-Type: application/json'
    -H 'salt: your-random-string-here'
    -H 'signature: your-calculated-signature-here'
    -H 'timestamp: your-unix-timestamp-here'
    
  • {
    	"status": {
    		"error_code": "",
    		"status": "SUCCESS",
    		"message": "",
    		"response_code": "",
    		"operation_id": "ec41f8de-8ab1-42f6-a105-f2bc4905a75b"
    	},
    	"data": {
    		"deleted": true,
    		"id": "sender_b9342620e3eb13164286485bbff9eb7b"
    	}
    }