Purchase - done by reseller
Sends POWr purchase hook
[
[0] {
"iss" => "Vendasta Marketplace",
"iat" => 1550276056,
"exp" => 1550276116,
"vendasta.com/marketplace/webhook" => {
"account" => {
"call_tracking_number" => [],
"deleted_flag" => false,
"contact_first_name" => nil,
"common_name" => [],
"timezone" => "America/Los_Angeles",
"work_number" => [
[0] "5555555555"
],
"partner_id" => "VNDR",
"id" => "AG-FNNV3BCNFM",
"city" => "San Francisco",
"zip" => "94104",
"market_id" => "mpl-powr",
"deleted" => nil,
"state" => "CA",
"company_name" => "POWr Test Account I",
"latitude" => 37.7923008,
"foursquare_url" => nil,
"service_area_business_flag" => false,
"tax_ids" => [
[0] "localservices:software_development"
],
"website" => "http://www.powr.io/",
"rss_url" => nil,
"updated" => "Fri, 15 Feb 2019 20:29:41 -0000",
"twitter_url" => "http://www.twitter.com/powrplugins",
"facebook_url" => "https://www.facebook.com/powrplugins/",
"fax_number" => nil,
"contact_email" => nil,
"address" => "340 Pine St",
"youtube_url" => nil,
"instagram_url" => nil,
"key_person" => [],
"pinterest_url" => nil,
"contact_last_name" => nil,
"cell_number" => nil,
"customer_identifier" => nil,
"created" => "Mon, 11 Feb 2019 23:22:22 -0000",
"linkedin_url" => nil,
"longitude" => -122.4016319,
"sales_person_id" => nil,
"googleplus_url" => nil,
"country" => "US"
},
"order_form" => nil,
"market_id" => "mpl-powr",
"addon_id" => nil,
"order_form_submission_id" => "",
"activation_id" => "3cd12a1e-7de5-48d9-8c77-5c4cf22fbc79",
"deactivation_time" => nil,
"webhook_id" => "purchase",
"action" => "provisioned",
"activation_time" => "2019-02-16T00:14:14.915187347Z",
"partner_id" => "VNDR"
}
},
[1] {
"alg" => "RS256",
"typ" => "JWT"
}
]"partner_id" => "VNDR",
"id" => "AG-FNNV3BCNFM", <- wobbly company unique id
"city" => "San Francisco",
"zip" => "94104",
"market_id" => "mpl-powr", <- Reseller unique id
"deleted" => nil,
"state" => "CA",
"company_name" => "POWr Test Account I", <- wobbly company name
"addon_id" => nil,
"order_form_submission_id" => "",
"activation_id" => "3cd12a1e-7de5-48d9-8c77-5c4cf22fbc79", <- also sent when deprovisioning
"deactivation_time" => nil,
"webhook_id" => "purchase",
"action" => "provisioned",
"activation_time" => "2019-02-16T00:14:14.915187347Z",
"partner_id" => "VNDR"The important bits
You can use the wobbly company unique id (aka account it) to get list of users and all their details
Account info get - same as purchase
List of users
User details
Using the product
smb dashboard
"vendasta.com/marketplace/session_id" => "5d8561c37dcf59cab2e9bdbd65388c00f7958db6b91b861a6be3c01ce69dbb82",
"vendasta.com/marketplace/lang" => "eng",
"vendasta.com/marketplace/user_id" => "UID-017d613d-eae9-40af-b777-63812162c1b7",
"vendasta.com/marketplace/email" => "ben@powr.io",
"vendasta.com/marketplace/partner_id" => "VNDR",
"vendasta.com/marketplace/product_navbar_data_url" => "https://www.smblogin.com/api/user/UID-017d613d-eae9-40af-b777-63812162c1b7/products-navigation-bar-data/",
"vendasta.com/marketplace/id_token" => "",
"vendasta.com/marketplace/back_url" => "",
"vendasta.com/marketplace/back_url_text" => "",
account_id - available from params
vendasta.com/marketplace/product_navbar_data_url - is used for the black nav barWhat we need to discuss
1. Create user accounts
2. Create and link to company? - "id" => "AG-FNNV3BCNFM" -> user will be created with this
3. Create and link to partner (/ reseller?)
4. How to store transactions? - pro subscription, needs "payment method" of "vendasta".
5. How will that affect accounting?
What we know
1. There is only 1 tier - business