PaidUpProductConnect.organizationResponse()

authorizate new organizations to be part of paidUp

Usage

Hover over inputs/exits for more info.

var PaidUpProductConnect = require('paidup-product-connect');


// authorizate new organizations to be part of paidUp

PaidUpProductConnect.organizationResponse({

baseUrl: 'http://localhost:9007',

token: 'secret-word',

organizationId: 'xxxyyyxxxx',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function (response) {

 

},

});

Inputs

baseUrl required

Url microservice.

'http://localhost:9007'
token required

secret word for authenticate microservice.

'secret-word'
organizationId required

id organization.

'xxxyyyxxxx'

Exits

error

An unexpected error occurred.

{ status: 500,
  message: '[{"maybe some JSON": "like this"}]  (but could be any string)' }
success

OK.

{ status: 200,
  body: 
   { _id: 'John',
     ownerFirstName: 'John',
     ownerLastName: 'Due',
     ownerDOB: '12/12/1990',
     ownerSSN: '123456789',
     ownerEmail: 'austin@boom.com',
     ownerPhone: '1234567890',
     country: 'US',
     state: 'TX',
     city: 'Austin',
     zipCode: '12345',
     EIN: '123123123',
     Address: 'calle fake',
     AddressLineTwo: '123',
     businessName: 'bname',
     businessType: 'Corporation',
     aba: '110000',
     dda: '000123456789',
     ownerId: 'userId',
     verify: 'pending' } }