Salesforce Integration | AuctionSoftware.com
SalesForce Updated PNG
1Step
Single Sign On
  • If the user logged in Third Party Site then only who can able to access the AS through SSO.
  • For that Third Party site has to give the api for SSO with the details of “user_id, username, email_id” to AS.
  • User_id, Name is used in bid history for the display purpose. Email_id is used for sending the email while bidding.
  • When the user is log out in Third party site means then he will logged out from AS also.

Responses:

{
$ status : success;
$ result[‘auth’] = ‘authtoken’;
$ result[‘user_id’] = user_id;
$ result[‘user_name’] = ‘username’;
$ result[’email_id’] = ‘user_email’;
}

error:

{
$ status : false;
$error: ‘error message’;
}

Step
Products Fetching
  • Auctionsoftware (AS) needs the product details of Third Party Site.
  • AS fetch all products from Salesforce (SF) through Product API response.
  • SF has to give the api for fetching the product details.
  • AS save the products details into the db by the product api response.
  • Third Party Site Admin can setup the auction with the details of Start date, End date, Starting price, Reserve Price, Bid Increment.
  • For this, Third Party Site has to add the fields in DB for saving the details of Start date, End date, Starting price, Reserve Price, Bid Increment, product_status etc.

Responses:

{
“status”: “success”,
“result”: {

“auth”: “authtoken”,
“product_id”: id,
“sprice”: sprice,
“rprice”: rprice,
“start_date”: “start_date”,
“end_date”: “end_date”,
“bid_increment”: bid_increment
},
“error”: “”
}

error:

{
$ status : false;
$error: ‘error message’;
}

Step
Bidding and Awarding
  • Auction is handling in AS side and it has to update the bids and the winner of the product through Bids API and Winner API.
  • In AS, Third Party Site Buyers can login through SSO and Bid on the products.
  • After Reserve Price met and at the End of the Time Product will be awarded to highest bidder.
  • After auction closed AS will send the response to SF through bids api and winner api to save the bids details and won buyer.
  • For this SF has to add fields in their product table which are Status, bids and Won_id.

Respnoses:

{
“status”: “success”,
“result”: {

“auth”: “authtoken”,
“product_id”: “id”,
“bid_history”: [
{
“user_id”: “user_id”,
“wprice”: wprice
},
{
“user_id”: “user_id”,
“wprice”: wprice
} ]
},
“error”: “”
}

error:

{
$ status : false;
$error: ‘error message’;
}


Respnoses:

{
“status”: “success”,
“result”: {

“auth”: “authtoken”,
“product_id”: id,
“user_id”: “user_id”,
“wprice”: wprice
},
“error”: “”
}

error:

{
$ status : false;
$error: ‘error message’;
}