Skip to main content
POST
/
transfer
/
crypto-deposits
/
{id}
/
reject
Reject Crypto Deposit
curl --request POST \
  --url https://api.paxos.com/v2/transfer/crypto-deposits/{id}/reject \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "identity_id": "54385e67-d7ef-40d1-b488-ceda6dd9b264"
}
'
import requests

url = "https://api.paxos.com/v2/transfer/crypto-deposits/{id}/reject"

payload = { "identity_id": "54385e67-d7ef-40d1-b488-ceda6dd9b264" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({identity_id: '54385e67-d7ef-40d1-b488-ceda6dd9b264'})
};

fetch('https://api.paxos.com/v2/transfer/crypto-deposits/{id}/reject', 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.paxos.com/v2/transfer/crypto-deposits/{id}/reject",
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([
'identity_id' => '54385e67-d7ef-40d1-b488-ceda6dd9b264'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://api.paxos.com/v2/transfer/crypto-deposits/{id}/reject"

payload := strings.NewReader("{\n \"identity_id\": \"54385e67-d7ef-40d1-b488-ceda6dd9b264\"\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("Authorization", "Bearer <token>")
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://api.paxos.com/v2/transfer/crypto-deposits/{id}/reject")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"identity_id\": \"54385e67-d7ef-40d1-b488-ceda6dd9b264\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.paxos.com/v2/transfer/crypto-deposits/{id}/reject")

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

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"identity_id\": \"54385e67-d7ef-40d1-b488-ceda6dd9b264\"\n}"

response = http.request(request)
puts response.read_body
{}
{
"type": "about:blank",
"title": "Bad Request",
"status": 400,
"detail": "id must be uuid, given 2d929a0d-e1e3-4781-b7f8-7b34e66f"
}
{
"type": "about:blank",
"title": "Not Found",
"status": 404,
"detail": "no crypto deposit found for id: 2d929a0d-e1e3-4781-b7f8-7b34e66f7832"
}
{
"type": "about:blank",
"title": "Conflict",
"status": 409,
"detail": "crypto deposit 2d929a0d-e1e3-4781-b7f8-7b34e66f7832 does not need info"
}
OAuth Scope
transfer:reject_crypto_deposit

Authorizations

Authorization
string
header
required

Paxos APIs use OAuth 2 with the client credentials grant flow.

Token URLs:

Learn more in the API credentials guide โ†’

Path Parameters

id
string
required

Paxos ID of the crypto deposit to reject. To retrieve the ID, log in to your Paxos account and go to the Activity tab. Download the CSV activity file and check the ID column.

Body

application/json
identity_id
string
required

The Identity (identity_id) of the end user that requests to reject the deposit.

Response

A successful response.

The response is of type object.