PaidUpProductConnect.organizationRequest()

save a new organizations to be part of paidUp

Usage

Hover over inputs/exits for more info.

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


// save a new organizations to be part of paidUp

PaidUpProductConnect.organizationRequest({

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

token: 'secret-word',

organizationInfo: { 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', referralCode: 'promoCode' },

userId: 'userId',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function (organizationId) {

 

},

});

Inputs

baseUrl required

Url microservice.

'http://localhost:9007'
token required

secret word for authenticate microservice.

'secret-word'
organizationInfo required

product info.

{ 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',
  referralCode: 'promoCode' }
userId required

id user owner organization.

'userId'

Exits

error

An unexpected error occurred.

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

OK.

{ status: 200, body: { organizationId: 'idxxxyyy' } }