Skip to main content
GET
/
transfer
/
{id}
Retrieve a transfer
curl --request GET \
  --url https://api.pushcash.com/transfer/{id} \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.pushcash.com/transfer/{id}"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.pushcash.com/transfer/{id}', 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.pushcash.com/transfer/{id}",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "Authorization: Bearer <token>"
  ],
]);

$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.pushcash.com/transfer/{id}"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.pushcash.com/transfer/{id}")
  .header("Authorization", "Bearer <token>")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://api.pushcash.com/transfer/{id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "id": "transfer_xle830ef8djeoiu",
  "amount": 700284,
  "currency": "USD",
  "direction": "credit",
  "created_at": "2023-05-24T20:15:18.158Z",
  "date": "2023-05-24",
  "transactions": [
    {
      "id": "txn_230vjroij4985uefjoiu9",
      "amount": -700284,
      "currency": "USD",
      "created_at": "2023-05-24T20:15:18.158Z",
      "date": "2023-05-24",
      "batch": null,
      "account_id": "account_WsELzpJOvU6fNafvzWbF6K",
      "type": "transfer",
      "source_id": "transfer_xle830ef8djeoiu",
      "status": "settled"
    }
  ],
  "account": {
    "id": "account_WsELzpJOvU6fNafvzWbF6K",
    "type": "settlement",
    "name": "Settlement Account",
    "created_at": "2023-05-24T20:15:18.158Z"
  }
}
{}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The ID of the transfer to retrieve.

Response

Successful operation

id
string
required

The unique identifier assigned by Push, prefix is "transfer_"

amount
integer
required

Amount of the transfer

currency
enum<string>
required

Currency associated with the amount

Available options:
USD
direction
enum<string>
required

The direction of the transfer, as indicated by the sign of the amount

  • a credit represents a payout to your operational account
  • a debit represents a withdrawal from your operational account
Available options:
credit,
debit
created_at
string<date-time>
required

When the transfer was created (ISO 8061 date string)

date
string<date>
required

Date of the transfer

transactions
object[]
required
account
object
required
Example:
{
  "id": "account_WsELzpJOvU6fNafvzWbF6K",
  "type": "settlement",
  "name": "Settlement Account",
  "created_at": "2023-05-24T20:15:18.158Z"
}