WePay.accountGetUri()

Get account URI to update account at WePay.

Add or update all incomplete items for an account like KYC info, bank account, etc. It will return a URL that a user can visit to update info for his or her account.

Usage

Hover over inputs/exits for more info.

var WePay = require('machinepack-wepay');


// Get account URI to update account at WePay.

WePay.accountGetUri({

accessToken: '604f39f41e364951ced74070c6e8bfa49d346cdfee6191b03c2c2d9c9cda9184',

accountId: 12345,

mode: 'regular',

redirectUri: 'https://www.baggins.com/updated',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function (result) {

 

},

});

Inputs

accessToken required

String access token of the user with permission to delete this account.

'604f39f41e364951ced74070c6e8bfa49d346cdfee6191b03c2c2d9c9cda9184'
accountId required

Unique ID of the account you want to delete.

12345
mode

Mode the process will be displayed in. The options are 'iframe' or 'regular'. Choose iframe if you would like to frame the process on your site. Mode defaults to 'regular'.

'regular'
redirectUri

URI the user will be redirected to after completing the process.

'https://www.baggins.com/updated'

Exits

error

An unexpected error occurred.

success

OK.

{ account_id: 12345,
  uri: 'http://stage.wepay.com/api/account_update_uri/12345' }