API Demo Credentials

Introduction

The assumption for the following test exercise is that both the Service Buyer and the Service Provider are completely onboarded so that all the actions are performed on behalf of each user utilizing their access tokens. 

At scale, this assumes all the necessary user accounts are already created and onboarded so that external services can utilize existing tokens.  Alternatively, we could need to tweak the API so that it would be possible to perform calls on behalf of a selected account ID instead of the current account.

 

Credentials

Demo Service Buyer Access Token

xwceadx5ersxesscne4r0e192izlij0g

Demo Service Provider Access Token

iopn8vfjsy9ogrq5bd3jnv488gnchub9

 

Interaction

Create Opportunity Project on behalf of Service Buyer and Add Service Provider

API_Demo_Credentials.jpg

 
--header 'Content-Type: application/json' \
 
--header 'Authorization: Bearer remlye58qca730iwtpss8t2fl300mdxc'

 

 
--header 'Content-Type: application/json' \
 
--header 'Authorization: Bearer remlye58qca730iwtpss8t2fl300mdxc' \
 
--data-raw '{"product":"{\"type_id\":\"project_opportunity\",\"service_providers\":[],\"name\":\"Test SkillSetz 1\",\"project_description\":\"Test description\",\"publish_date\":\"07/15/2021\",\"due_date\":\"07/29/2021\",\"estimate_start_date\":\"\",\"estimate_award_date\":\"07/29/2021\",\"project_professional_experience\":\"\",\"work_order_start_date\":\"07/29/2021\",\"work_order_end_date\":\"07/29/2023\",\"scope_work\":\"\",\"project_attachments\":[],\"scope_work\":\"Basic Scope\",\"scope_work_attach\":[],\"options\":[{\"type\":\"field\",\"title\":\"First Deliverable\",\"price\":\"500\",\"uom\":\"Each\",\"units_qty\":\"1\",\"total\":\"-\",\"actions\":\"Delete\",\"is_require\":0,\"is_delete\":0,\"price_type\":\"fixed\",\"option_type\":\"Deliverable\"}],\"project_attendees\":[],\"additional_instructions\":\"\",\"project_status\":\"\",\"budget\":\"1000\",\"budget_type\":\"1\",\"price\":\"1000\",\"category_ids\":[\"1\",\"154\",\"155\",\"172\",\"173\",\"174\",\"175\",\"176\",\"177\",\"178\",\"179\",\"180\",\"181\",\"182\",\"183\",\"184\",\"185\",\"186\",\"187\",\"188\",\"189\",\"190\",\"191\",\"192\",\"414\",\"465\",\"466\",\"467\",\"468\",\"469\",\"470\",\"471\",\"472\",\"473\",\"474\",\"475\",\"476\",\"477\",\"478\",\"479\",\"480\",\"481\",\"482\",\"483\",\"484\",\"485\",\"486\",\"487\",\"488\",\"489\",\"490\",\"491\",\"492\",\"493\",\"494\",\"495\",\"496\",\"497\",\"498\",\"817\",\"835\",\"836\",\"837\",\"838\",\"839\",\"840\",\"841\",\"842\",\"843\",\"844\",\"845\",\"846\",\"847\",\"848\",\"849\",\"850\",\"851\",\"852\",\"853\",\"854\",\"855\",\"856\",\"857\",\"858\",\"859\",\"860\",\"861\",\"862\",\"863\",\"864\",\"865\",\"866\",\"867\",\"868\",\"869\",\"870\",\"871\",\"872\",\"873\",\"874\",\"875\"]}"}'

 

 
--header 'Content-Type: application/json' \
 
--header 'Authorization: Bearer remlye58qca730iwtpss8t2fl300mdxc'

 

 
--header 'Content-Type: application/json' \
 
--header 'Authorization: Bearer remlye58qca730iwtpss8t2fl300mdxc' \
 
--data-raw '{"product":"{\"entity_id\":\"2275\",\"attribute_set_id\":\"23\",\"type_id\":\"project_opportunity\",\"sku\":\"9372ad24f3c0c6d27e0cfb7b82e0f72f\",\"has_options\":\"1\",\"required_options\":\"0\",\"created_at\":\"2021-07-15 08:40:31\",\"updated_at\":\"2021-07-15 10:17:13\",\"name\":\"Test SkillSetz 1\",\"image\":\"no_selection\",\"small_image\":\"no_selection\",\"thumbnail\":\"no_selection\",\"url_key\":\"test-skillsetz-1-2275\",\"swatch_image\":\"no_selection\",\"billing_type\":[\"5\"],\"engagement_type\":[\"1\"],\"budget_type\":[\"1\"],\"publish_date\":\"07/15/2021\",\"due_date\":\"07/29/2021\",\"estimate_award_date\":\"07/29/2021\",\"work_order_start_date\":\"07/29/2021\",\"work_order_end_date\":\"07/29/2023\",\"price\":\"1000.000000\",\"budget\":\"1000\",\"status\":\"1\",\"visibility\":\"4\",\"project_status\":\"2\",\"is_publish\":1,\"project_description\":\"Test description\",\"project_attachments\":[],\"business_requirements\":[{\"index\":\"Requirement \",\"description\":\"First Requirement\",\"actions\":\"Upload\"}],\"scope_work\":\"Basic Scope\",\"options_container\":\"container2\",\"wesupply_estimation_display\":\"1\",\"options\":[{\"option_id\":\"106\",\"product_id\":\"2275\",\"type\":\"field\",\"is_require\":\"0\",\"sku\":null,\"max_characters\":null,\"file_extension\":null,\"image_size_x\":null,\"image_size_y\":null,\"sort_order\":\"0\",\"option_type\":\"Deliverable\",\"uom\":\"Each\",\"units_qty\":\"1\",\"service_item_status\":\"0\",\"default_title\":\"First Deliverable\",\"store_title\":\"First Deliverable\",\"title\":\"First Deliverable\",\"default_price\":null,\"default_price_type\":null,\"store_price\":\"500.000000\",\"store_price_type\":\"fixed\",\"price\":\"500\",\"price_type\":\"fixed\",\"product_sku\":\"9372ad24f3c0c6d27e0cfb7b82e0f72f\",\"value\":{\"option_id\":\"106\",\"product_id\":\"2275\",\"type\":\"field\",\"is_require\":\"0\",\"sku\":null,\"max_characters\":null,\"file_extension\":null,\"image_size_x\":null,\"image_size_y\":null,\"sort_order\":\"0\",\"option_type\":\"Deliverable\",\"uom\":\"Each\",\"units_qty\":\"1\",\"service_item_status\":\"0\",\"default_title\":\"First Deliverable\",\"store_title\":\"First Deliverable\",\"title\":\"First Deliverable\",\"default_price\":null,\"default_price_type\":null,\"store_price\":\"500.000000\",\"store_price_type\":\"fixed\",\"price\":\"500.000000\",\"price_type\":\"FIXED\"},\"check\":true}],\"media_gallery\":{\"images\":[],\"values\":[]},\"extension_attributes\":{},\"tier_price\":[],\"tier_price_changed\":0,\"quantity_and_stock_status\":{\"is_in_stock\":true,\"qty\":null},\"category_ids\":[],\"is_salable\":1,\"reviews_count\":null,\"rating_summary\":null,\"image_url\":\"https://demo.skillsetz.com/static/version1626168155/frontend/Sligo/default/en_US/Magento_Catalog/images/product/placeholder/project_opportunity.jpg\",\"price_label\":\"2S\",\"service_providers\":[{\"entity_id\":\"2279\",\"attribute_set_id\":\"19\",\"type_id\":\"professional\",\"sku\":\"e3221b34c98fb724caf526f6bdbee646\",\"has_options\":\"0\",\"required_options\":\"0\",\"created_at\":\"2021-07-15 09:58:44\",\"updated_at\":\"2021-07-15 09:58:44\",\"customer_id\":\"288\",\"company_id\":\"0\",\"name\":\"Independent Contractor\",\"store_id\":1,\"image_url\":\"https://demo.skillsetz.com/media/catalog/product/placeholder/default/SkillSetz_Favicon-512x512.png\",\"reviews_count\":null,\"rating_summary\":null,\"options\":null,\"price_label\":\"1S\",\"resource_type\":\"Self Employed\",\"price\":null}],\"project_attendees\":[],\"project_management_preference\":\"\",\"project_visibility_preference\":\"\",\"estimate_start_date\":\"\",\"project_professional_experience\":\"\",\"business_function\":\"\",\"primary_industry\":\"\",\"geographic_region\":\"\",\"skillsetz\":\"\",\"scope_work_attach\":[],\"additional_instructions\":\"\"}"}'

 

Create Service Provider Profiles

Interaction.jpg

 
--header 'Content-Type: application/json' \
 
--header 'Authorization: Bearer yj1470i8hdji73swtymodocead95btmr'

 

 
--header 'Content-Type: application/json' \
 
--header 'Authorization: Bearer yj1470i8hdji73swtymodocead95btmr' 
 
--data-raw '{"product":"{\"lead_paragraph\":\"Test Profile\",\"expanded_paragraph\":\"Test Profile\",\"assets\":[],\"professional_experience\":[],\"certifications\":[],\"education\":[],\"headline_description\":\"Test Profile\",\"education_visible\":\"1\",\"professional_experience_visible\":\"1\",\"certifications_visible\":\"1\",\"is_publish\":1,\"media_gallery\":{\"images\":[]},\"image_url\":\"\",\"category_ids\":[\"1\",\"154\",\"155\",\"172\",\"173\",\"174\",\"175\",\"176\",\"177\",\"178\",\"179\",\"180\",\"181\",\"182\",\"183\",\"184\",\"185\",\"186\",\"187\",\"188\",\"189\",\"190\",\"191\",\"192\",\"414\",\"465\",\"466\",\"467\",\"468\",\"469\",\"470\",\"471\",\"472\",\"473\",\"474\",\"475\",\"476\",\"477\",\"478\",\"479\",\"480\",\"481\",\"482\",\"483\",\"484\",\"485\",\"486\",\"487\",\"488\",\"489\",\"490\",\"491\",\"492\",\"493\",\"494\",\"495\",\"496\",\"497\",\"498\",\"817\",\"835\",\"836\",\"837\",\"838\",\"839\",\"840\",\"841\",\"842\",\"843\",\"844\",\"845\",\"846\",\"847\",\"848\",\"849\",\"850\",\"851\",\"852\",\"853\",\"854\",\"855\",\"856\",\"857\",\"858\",\"859\",\"860\",\"861\",\"862\",\"863\",\"864\",\"865\",\"866\",\"867\",\"868\",\"869\",\"870\",\"871\",\"872\",\"873\",\"874\",\"875\"],\"price_label\":\"1S\",\"billing_type\":[\"5\"],\"engagement_type\":[\"2\"],\"hourly_rate\":[\"3\"]}"}'
 
--header 'Content-Type: application/json' \
 
--header 'Authorization: Bearer yj1470i8hdji73swtymodocead95btmr' \
 
--data-raw '{"product":"{\"name\":\"Test Service\",\"lead_paragraph\":\"Test Description\",\"expanded_paragraph\":\"Test Description\",\"directly_related\":\"\",\"category_ids\":[\"834\",\"833\",\"832\",\"831\",\"830\",\"829\",\"828\",\"827\",\"826\",\"825\",\"824\",\"823\",\"822\",\"821\",\"820\",\"819\",\"818\",\"719\",\"718\",\"717\",\"716\",\"715\",\"714\",\"713\",\"712\",\"711\",\"710\",\"709\",\"708\",\"707\",\"706\",\"705\",\"704\",\"703\",\"702\",\"701\",\"700\",\"699\",\"698\",\"697\",\"696\",\"695\",\"694\",\"693\",\"692\",\"691\",\"690\",\"689\",\"688\",\"687\",\"686\",\"540\",\"539\",\"538\",\"537\",\"536\",\"535\",\"534\",\"533\",\"532\",\"531\",\"530\",\"529\",\"528\",\"527\",\"526\",\"525\",\"524\",\"523\",\"522\",\"521\",\"520\",\"519\",\"518\",\"517\",\"516\",\"515\",\"514\",\"513\",\"512\",\"511\",\"510\",\"509\",\"508\",\"507\",\"506\",\"505\",\"504\",\"503\",\"502\",\"501\",\"500\",\"499\",\"172\",\"173\",\"174\",\"175\",\"176\",\"177\",\"178\",\"179\",\"180\",\"181\",\"182\",\"183\",\"184\",\"185\",\"186\",\"187\",\"188\",\"189\",\"190\",\"191\",\"192\"],\"options\":[{\"type\":\"field\",\"title\":\"First Deliverable\",\"price\":\"200\",\"uom\":\"Each\",\"units_qty\":\"1\",\"total\":\"-\",\"actions\":\"Delete\",\"is_require\":0,\"is_delete\":0,\"price_type\":\"fixed\",\"option_type\":\"Deliverable\"}],\"scope_work\":\"Basic Scope\",\"project_attachments\":[],\"scope_work_attach\":[],\"budget_type\":\"1\",\"project_cost_tier\":[],\"media_gallery\":{\"images\":[]},\"image\":[],\"image_url\":\"\",\"is_publish\":1}"}'

 

Create Work Order for Project

Create_Work_Order_for_Project.jpg

 
--header 'Content-Type: application/json' \
 
--header 'Authorization: Bearer remlye58qca730iwtpss8t2fl300mdxc'

 

 
--header 'Content-Type: application/json' \
 
--header 'Authorization: Bearer yj1470i8hdji73swtymodocead95btmr' \
 
--data-raw '{"projectId":"2275","requestData":"{\"options\":{\"106\":\"First Deliverable\"},\"service_provider\":{\"entity_id\":\"2279\",\"attribute_set_id\":\"19\",\"type_id\":\"professional\",\"sku\":\"e3221b34c98fb724caf526f6bdbee646\",\"has_options\":\"0\",\"required_options\":\"0\",\"created_at\":\"2021-07-15 09:58:44\",\"updated_at\":\"2021-07-15 09:58:44\",\"customer_id\":\"288\",\"company_id\":\"0\",\"name\":\"Independent Contractor\",\"store_id\":1,\"image_url\":\"https://demo.skillsetz.com/media/catalog/product/placeholder/default/SkillSetz_Favicon-512x512.png\",\"reviews_count\":null,\"rating_summary\":null,\"options\":null,\"price_label\":\"1S\",\"resource_type\":\"Self Employed\",\"price\":null}}"}'
 

Was this article helpful?

0 out of 0 found this helpful