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

Last updated

Was this helpful?