Retrieve Payout
Retrieve the details of a payout.
payout
ID of the payout. String starting with payout_.
.NET
using System; namespace RapydApiRequestSample { class Program { static void Main(string[] args) { try { string payoutId = "payout_2cf75efa950c11bc9a49207ded279ad7"; string result = RapydApiRequestSample.Utilities.MakeRequest("GET", $"/v1/payouts/{payoutId}"); 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('GET', '/v1/payouts/payout_2cf75efa950c11bc9a49207ded279ad7'); 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('get', '/v1/payouts/payout_2cf75efa950c11bc9a49207ded279ad7'); var_dump($object); } catch(Exception $e) { echo "Error: $e"; } ?>
Python
from pprint import pprint from utilities import make_request payout_id = 'payout_2cf75efa950c11bc9a49207ded279ad7' results = make_request(method='get', path=f'/v1/payouts/{payout_id}') pprint(results)
/v1/payouts/:payout
Retrieve Payout
curl -X get https://sandboxapi.rapyd.net/v1/payouts/payout_60dca835ac0b2c822f76c48641d8bae0 -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": "8307bc15-bdc4-4dcc-990a-f5723af9a870" }, "data": { "id": "payout_60dca835ac0b2c822f76c48641d8bae0", "payout_type": "bank", "payout_method_type": "sg_ocbc_bank", "amount": 2000, "payout_currency": "SGD", "sender_amount": 1544.58, "sender_currency": "USD", "status": "Created", "sender_country": "US", "sender": { "id": "sender_94e84ba869e20da70be5b0c0027c889d", "country": "US", "entity_type": "company", "address": "address 2", "name": "Rapyd", "postcode": "3333", "city": "Amsterdam", "phone_number": "19019044444", "company_name": "Rapyd", "currency": "USD", "identification_value": "unc_num_123333", "province": "Amsterdam", "occupation": "Ridesharing" }, "beneficiary_country": "SG", "beneficiary": { "id": "beneficiary_81fdb04df9cc01c0488dcbbf02c76edd", "last_name": "Doe", "first_name": "Jane", "country": "US", "entity_type": "individual", "address": "456 Second Street", "name": "Jane Doe", "postcode": "10101", "city": "Anytown", "state": "NY", "account_number": "BG96611020345678", "currency": "SGD", "email": "janedoe@rapyd.net", "identification_type": "SSC", "identification_value": "*********", "bank_name": "sg_ocbc_bank", "bic_swift": "ABCDSGGG", "ach_code": "123456789" }, "fx_rate": 1.29485397, "instructions": [ { "name": "instructions", "steps": [ { "step1": "The funds will be transferred to the provided account details of the beneficiary" } ] } ], "instructions_value": {}, "ewallets": [ { "ewallet_id": "ewallet_c1943cfeda5f98247ab117e5d2648861", "amount": 1544.58, "percent": 100 } ], "metadata": { "merchant_defined": true }, "description": "Salary", "created_at": 1701684409, "payout_fees": null, "expiration": null, "merchant_reference_id": null, "paid_at": null, "identifier_type": null, "identifier_value": null, "error": null, "paid_amount": 0, "statement_descriptor": "Salary-monthly-part-time", "gc_error_code": null, "batch_file": null } }