Skip to main content
PUT
/
v1
/
transfer
/
{transfer_id}
Actualizar una transferencia
curl --request PUT \
  --url https://api.example.com/v1/transfer/{transfer_id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "source": "<string>",
  "target": "<string>",
  "symbol": "<string>",
  "amount": "<string>",
  "labels": {
    "type": "<string>",
    "tx_id": "<string>",
    "tx_ref": "<string>",
    "status": "<string>",
    "domain": "<string>",
    "created": "<string>",
    "sourceCreated": "<string>",
    "targetUpdated": "<string>",
    "description": "<string>",
    "rejectSource": "<string>",
    "rejectDescription": "<string>",
    "transactionPurpose": "<string>",
    "numberOfTransactions": "<string>",
    "deviceFingerPrint": {
      "hash": "<string>",
      "ipAddress": "<string>",
      "geolocation": "<string>",
      "country": "<string>",
      "city": "<string>",
      "mobileDevice": "<string>",
      "SIMCardId": "<string>",
      "model": "<string>",
      "operator": "<string>"
    },
    "config": {}
  }
}
'
import requests

url = "https://api.example.com/v1/transfer/{transfer_id}"

payload = {
    "source": "<string>",
    "target": "<string>",
    "symbol": "<string>",
    "amount": "<string>",
    "labels": {
        "type": "<string>",
        "tx_id": "<string>",
        "tx_ref": "<string>",
        "status": "<string>",
        "domain": "<string>",
        "created": "<string>",
        "sourceCreated": "<string>",
        "targetUpdated": "<string>",
        "description": "<string>",
        "rejectSource": "<string>",
        "rejectDescription": "<string>",
        "transactionPurpose": "<string>",
        "numberOfTransactions": "<string>",
        "deviceFingerPrint": {
            "hash": "<string>",
            "ipAddress": "<string>",
            "geolocation": "<string>",
            "country": "<string>",
            "city": "<string>",
            "mobileDevice": "<string>",
            "SIMCardId": "<string>",
            "model": "<string>",
            "operator": "<string>"
        },
        "config": {}
    }
}
headers = {
    "x-api-key": "<api-key>",
    "Content-Type": "application/json"
}

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

print(response.text)
const options = {
  method: 'PUT',
  headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
  body: JSON.stringify({
    source: '<string>',
    target: '<string>',
    symbol: '<string>',
    amount: '<string>',
    labels: {
      type: '<string>',
      tx_id: '<string>',
      tx_ref: '<string>',
      status: '<string>',
      domain: '<string>',
      created: '<string>',
      sourceCreated: '<string>',
      targetUpdated: '<string>',
      description: '<string>',
      rejectSource: '<string>',
      rejectDescription: '<string>',
      transactionPurpose: '<string>',
      numberOfTransactions: '<string>',
      deviceFingerPrint: {
        hash: '<string>',
        ipAddress: '<string>',
        geolocation: '<string>',
        country: '<string>',
        city: '<string>',
        mobileDevice: '<string>',
        SIMCardId: '<string>',
        model: '<string>',
        operator: '<string>'
      },
      config: {}
    }
  })
};

fetch('https://api.example.com/v1/transfer/{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.example.com/v1/transfer/{transfer_id}",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'source' => '<string>',
    'target' => '<string>',
    'symbol' => '<string>',
    'amount' => '<string>',
    'labels' => [
        'type' => '<string>',
        'tx_id' => '<string>',
        'tx_ref' => '<string>',
        'status' => '<string>',
        'domain' => '<string>',
        'created' => '<string>',
        'sourceCreated' => '<string>',
        'targetUpdated' => '<string>',
        'description' => '<string>',
        'rejectSource' => '<string>',
        'rejectDescription' => '<string>',
        'transactionPurpose' => '<string>',
        'numberOfTransactions' => '<string>',
        'deviceFingerPrint' => [
                'hash' => '<string>',
                'ipAddress' => '<string>',
                'geolocation' => '<string>',
                'country' => '<string>',
                'city' => '<string>',
                'mobileDevice' => '<string>',
                'SIMCardId' => '<string>',
                'model' => '<string>',
                'operator' => '<string>'
        ],
        'config' => [
                
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "Content-Type: application/json",
    "x-api-key: <api-key>"
  ],
]);

$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.example.com/v1/transfer/{transfer_id}"

	payload := strings.NewReader("{\n  \"source\": \"<string>\",\n  \"target\": \"<string>\",\n  \"symbol\": \"<string>\",\n  \"amount\": \"<string>\",\n  \"labels\": {\n    \"type\": \"<string>\",\n    \"tx_id\": \"<string>\",\n    \"tx_ref\": \"<string>\",\n    \"status\": \"<string>\",\n    \"domain\": \"<string>\",\n    \"created\": \"<string>\",\n    \"sourceCreated\": \"<string>\",\n    \"targetUpdated\": \"<string>\",\n    \"description\": \"<string>\",\n    \"rejectSource\": \"<string>\",\n    \"rejectDescription\": \"<string>\",\n    \"transactionPurpose\": \"<string>\",\n    \"numberOfTransactions\": \"<string>\",\n    \"deviceFingerPrint\": {\n      \"hash\": \"<string>\",\n      \"ipAddress\": \"<string>\",\n      \"geolocation\": \"<string>\",\n      \"country\": \"<string>\",\n      \"city\": \"<string>\",\n      \"mobileDevice\": \"<string>\",\n      \"SIMCardId\": \"<string>\",\n      \"model\": \"<string>\",\n      \"operator\": \"<string>\"\n    },\n    \"config\": {}\n  }\n}")

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

	req.Header.Add("x-api-key", "<api-key>")
	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.put("https://api.example.com/v1/transfer/{transfer_id}")
  .header("x-api-key", "<api-key>")
  .header("Content-Type", "application/json")
  .body("{\n  \"source\": \"<string>\",\n  \"target\": \"<string>\",\n  \"symbol\": \"<string>\",\n  \"amount\": \"<string>\",\n  \"labels\": {\n    \"type\": \"<string>\",\n    \"tx_id\": \"<string>\",\n    \"tx_ref\": \"<string>\",\n    \"status\": \"<string>\",\n    \"domain\": \"<string>\",\n    \"created\": \"<string>\",\n    \"sourceCreated\": \"<string>\",\n    \"targetUpdated\": \"<string>\",\n    \"description\": \"<string>\",\n    \"rejectSource\": \"<string>\",\n    \"rejectDescription\": \"<string>\",\n    \"transactionPurpose\": \"<string>\",\n    \"numberOfTransactions\": \"<string>\",\n    \"deviceFingerPrint\": {\n      \"hash\": \"<string>\",\n      \"ipAddress\": \"<string>\",\n      \"geolocation\": \"<string>\",\n      \"country\": \"<string>\",\n      \"city\": \"<string>\",\n      \"mobileDevice\": \"<string>\",\n      \"SIMCardId\": \"<string>\",\n      \"model\": \"<string>\",\n      \"operator\": \"<string>\"\n    },\n    \"config\": {}\n  }\n}")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://api.example.com/v1/transfer/{transfer_id}")

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

request = Net::HTTP::Put.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"source\": \"<string>\",\n  \"target\": \"<string>\",\n  \"symbol\": \"<string>\",\n  \"amount\": \"<string>\",\n  \"labels\": {\n    \"type\": \"<string>\",\n    \"tx_id\": \"<string>\",\n    \"tx_ref\": \"<string>\",\n    \"status\": \"<string>\",\n    \"domain\": \"<string>\",\n    \"created\": \"<string>\",\n    \"sourceCreated\": \"<string>\",\n    \"targetUpdated\": \"<string>\",\n    \"description\": \"<string>\",\n    \"rejectSource\": \"<string>\",\n    \"rejectDescription\": \"<string>\",\n    \"transactionPurpose\": \"<string>\",\n    \"numberOfTransactions\": \"<string>\",\n    \"deviceFingerPrint\": {\n      \"hash\": \"<string>\",\n      \"ipAddress\": \"<string>\",\n      \"geolocation\": \"<string>\",\n      \"country\": \"<string>\",\n      \"city\": \"<string>\",\n      \"mobileDevice\": \"<string>\",\n      \"SIMCardId\": \"<string>\",\n      \"model\": \"<string>\",\n      \"operator\": \"<string>\"\n    },\n    \"config\": {}\n  }\n}"

response = http.request(request)
puts response.read_body
{
  "error": {
    "code": 123,
    "message": "<string>",
    "details": {}
  }
}
{
  "error": {
    "code": 123,
    "message": "<string>",
    "details": {}
  }
}
{
  "transferId": "<string>",
  "txId": "<string>",
  "txRef": "<string>",
  "source": "<string>",
  "sourceWallet": "<string>",
  "sourceSigner": "<string>",
  "sourceSignerBalance": "<string>",
  "sourceBank": "<string>",
  "sourceBankBicfi": "<string>",
  "target": "<string>",
  "targetWallet": "<string>",
  "targetSigner": "<string>",
  "targetSignerBalance": "<string>",
  "targetBank": "<string>",
  "targetBankBicfi": "<string>",
  "amount": "<string>",
  "symbol": "<string>",
  "type": "<string>",
  "status": "<string>",
  "description": "<string>",
  "created": "<string>",
  "updated": "<string>",
  "domain": "<string>",
  "owner": "<string>",
  "error": {
    "code": 123,
    "message": "<string>",
    "details": {}
  },
  "labels": {
    "hash": "<string>",
    "type": "<string>",
    "tx_id": "<string>",
    "domain": "<string>",
    "status": "<string>",
    "tx_ref": "<string>",
    "created": "<string>",
    "updated": "<string>",
    "description": "<string>",
    "sourceChannel": "<string>",
    "sourceCreated": "<string>",
    "transactionPurpose": "<string>",
    "numberOfTransactions": "<string>",
    "deviceFingerPrint": {
      "hash": "<string>",
      "ipAddress": "<string>",
      "geolocation": "<string>",
      "country": "<string>",
      "city": "<string>",
      "mobileDevice": "<string>",
      "SIMCardId": "<string>",
      "model": "<string>",
      "operator": "<string>"
    },
    "service": "<string>",
    "createdBy": "<string>",
    "otp": "<string>",
    "tpagaAuthorization": {},
    "girosPayment": {},
    "girosTransactionInfo": {},
    "agent": {},
    "customer": {},
    "contextTransaction": {},
    "createdTransferFlowId": "<string>",
    "acceptedTransferFlowId": "<string>",
    "rejectedTransferFlowId": "<string>",
    "expiresAt": "<string>",
    "invoiceId": "<string>",
    "invoiceDetail": "<string>",
    "contractId": "<string>",
    "acceptSms": "<string>"
  },
  "snapshot": {
    "target": {
      "wallet": {
        "labels": {},
        "handle": "<string>",
        "signer": [
          "<string>"
        ],
        "default": "<string>",
        "symbolDefaults": {}
      },
      "signer": {
        "handle": "<string>",
        "labels": {}
      },
      "network": {
        "handle": "<string>",
        "labels": {},
        "default": "<string>"
      }
    },
    "source": {
      "wallet": {
        "labels": {},
        "handle": "<string>",
        "signer": [
          "<string>"
        ],
        "default": "<string>",
        "symbolDefaults": {}
      },
      "signer": {
        "handle": "<string>",
        "labels": {}
      },
      "network": {
        "handle": "<string>",
        "labels": {},
        "default": "<string>"
      }
    },
    "symbol": {
      "wallet": {
        "labels": {},
        "handle": "<string>",
        "signer": [
          "<string>"
        ],
        "default": "<string>",
        "symbolDefaults": {}
      },
      "signer": {
        "handle": "<string>",
        "labels": {}
      },
      "network": {
        "handle": "<string>",
        "labels": {},
        "default": "<string>"
      }
    }
  },
  "_auth": {
    "owner": "<string>",
    "realm": "<string>",
    "organization": "<string>",
    "domain": "<string>"
  }
}
{
  "error": {
    "code": 123,
    "message": "<string>",
    "details": {}
  }
}

Authorizations

x-api-key
string
header
required

Path Parameters

transfer_id
string
required

Query Parameters

sideEffectsEnabled
boolean

Body

application/json
source
string
target
string
symbol
string
amount
string
labels
object

Response

You don't have permissions to access this method

error
object