Wyre Documentation
  • 📡Wyre Documentation
  • Home
  • 👥Account Onboarding
    • Account Overview
    • Use Cases
    • Pricing
    • API Calls
      • Create Account
      • Get Account
      • Update Account
      • Upload Document
  • 🔗Wallets
    • Use Cases
    • Managing Wallets
      • Creating a Wallet
      • Create Mulitple Wallets
      • Lookup Wallet
      • Edit Wallet
      • List Wallets
      • Delete Wallet
    • Wallet Callbacks
  • 💳Payments
    • Limits + Coverage
    • Pricing
    • Chargeback + Risk
    • Accepted Payment Methods
    • Global Card Processing
      • Hosted Redirect Operation
      • Browser Dialog (Popup) Operation
      • Understanding Transaction Statuses
        • Wallet Order Errors and Exceptions (Failure Reasons)
      • Additional Widget Functionality and Features
        • Checking Limits
        • Tracking Orders
      • Widget FAQs
      • ⚠️ Wallet Order Reservations | Required! ⚠️
      • API Calls To Help Monitor Transactions
        • Track Widget Order
        • Check A User's Transaction Limits
        • Check Supported Countries
      • Client-Side Encryption 👻
  • 🌏Global Payouts
    • Use Cases
    • Limits + Coverage
    • Pricing
    • Supported Countries
    • Country Requirements
    • 🔥Blockchain + Banks
    • 🔥Instant Payouts to Debit Card
  • 💱Foreign Exchange
    • Exchange Rates
  • Methodologies
  • Payment Methods
    • API Calls
      • Creating a Payment Method- ACH
      • List Payment Methods
      • Create a Payment Method- Wire Transfer
      • Get Payment Method
      • Attach Blockchain to Payment Method
  • Transfers
    • API Calls
      • Creating a Transfer
      • Confirm a Transfer
      • Get Transfer
      • Transfer History
  • Data Subscriptions
    • Subscribe Webhook
    • Get Subscriptions
    • Delete Webhook
  • Resources
  • ✅Going Live
  • Testing Enviornment
  • Understanding API Errors
  • System Resource Name
  • Rate Limiting
  • Authentication & Key Management
    • Authorization Tokens
    • Create an API Key
    • Delete an API Key
    • Authentication Code Examples
  • Wyre Brand Assets
    • 🎨Color Palette And Wyre Logos
  • Links
    • 🧪Test Wyre Dashboard
    • 🗣️ Wyre's Discord
Powered by GitBook
On this page
  • Confirm Transfer
  • Example

Was this helpful?

  1. Transfers
  2. API Calls

Confirm a Transfer

This endpoint confirms a money transfer. Once you've created the transfer and receive a 200 response, you will have 5 minutes to confirm the transfer. Note the transferId after you create the transfer. If you want to automatically confirm the transfer without making an additional API call, set parameter autoConfirm to "true" in your Create Transfer request.

Confirm Transfer

POST https://api.sendwyre.com/v2/transfer/transferId:/confirm

Path Parameters

Name
Type
Description

transferId

string

the ID of the transfer to confirm

{
    "id": "TF-4F3HRUYPNFY",
    "sourceAmount": 5,
    "sourceCurrency": "USD",
    "destAmount": 0.01,
    "destCurrency": "BTC",
    "status": "PENDING",
    "message": "Payment for DorianNakamoto@sendwyre.com",
    "customId": null,
    "exchangeRate": 499.00,
    "createdAt": 1541552388000,
    "fees": {
        "USD": 0.1,
        "BTC": 0
    },
    "totalFees": 0.1,
    "completedAt": 1541552388000,
    "cancelledAt": null,
    "failureReason": null,
    "expiresAt": 1541553288000,
    "reversingSubStatus": null,
    "reversalReason": null,
    "pendingSubStatus": null,
    "dest": "bitcoin:14CriXWTRoJmQdBzdikw6tEmSuwxMozWWq",
    "blockchainTx": null,
    "statusHistories": [
        {
            "id": "N88AFATLRZY",
            "transferId": "TF-4F3HRUYPNFY",
            "createdAt": 1541552388000,
            "type": "OUTGOING",
            "statusOrder": 0,
            "statusDetail": "Initiating Transfer",
            "state": "INITIATED",
            "failedState": null
        },
        {
            "id": "PED3FNLNUV7",
            "transferId": "TF-4F3HRUYPNFY",
            "createdAt": 1541552388000,
            "type": "OUTGOING",
            "statusOrder": 200,
            "statusDetail": "Processing Exchange",
            "state": "PENDING",
            "failedState": null
        }
    ],
    "owner": "account:AC-WYUR7ZZ6UMU",
    "source": "account:AC-WYUR7ZZ6UMU"
}

Example

//original transfer request was:
{  
   "sourceAmount":"10",
   "source":"account:PXTEXJ4HEPM",
   "sourceCurrency":"USD",
   "destCurrency":"CNY",
   "dest":"email:sam@sendwyre.com"

}
//response from api includes "id":"MLLHFH4NELA"

//POST to /transfer/MLLHFH4NELA/confirm
PreviousCreating a TransferNextGet Transfer

Last updated 4 years ago

Was this helpful?