Create a Payment Method- Wire Transfer

This flow will allow you to programmatically create wire deposit funding Transfers.

STEP 1

Create a Payment Method using a customer's details

STEP 2

Use the created payment method SRNarrow-up-right as the "source" in a transfer, and your account as the "dest", and specify the amount the customer wants to wire in as the "destAmount". For example, if the customer from Step 1 wants to deposit $200 you would make a request like the following:JSONarrow-up-right

//POST to https://api.sendwyre.com/v2/transfers
{
  "source": "paymentMethod:[ID returned in step 1]"
  "dest": "account:[Your accountId]", // account ID can be found here: https://dash.sendwyre.com/settings/basic-info
  "sourceCurrency": "USD",
  "destCurrency": "USD",
  "destAmount": 200,
  "message":"USD Personal example"
}

Legacy API Usage - Note: If you want to manage customer balances in individual "buckets" instead of having all of the funds deposited in your account you can check out the Wallet APIarrow-up-right. You can create a wallet for a specific user and then use that as their SRN as the "dest" in the above request.

STEP 3

After creating the transfer, you will need to ping the GET transfer route to view the fields with wiring instructions. All of the information you need to present to your customer is under the "chargeInfo" object.

https://api.sendwyre.com/v2/transfer/:transferIdarrow-up-right

On the root of the "chargeInfo" object is an amount. This amount might be different than what you submitted by a couple of cents. This is the amount the customer needs to send in so we can identify the wire.

The "wireDetails" sub-object will contain the bank information where the customer needs to send the wire.

You can see an example below:

STEP 4

Once we receive the wire for the amount specified in #3 we will complete the Transfer and the funds will be available in your Wyre account.

Create Wire Transfer Payment Method

POST https://api.sendwyre.com/v2/paymentMethods

Example

Last updated