Coohom is powerful in 3d design and can provide wonderful rendering experience.
Now you may build your own electronic commerce website with all these exciting features simply by integrating Coohom Open API.
After that, customer can design with your goods, do the rendering to see what it looks like, then purchase what he wants.
And everything happens in your website!
We are now happy to announce that we have made a successful integration with company postofixe.
Here is how to achieve the whole integration.(You can right-click the picture to open a new page to view the large one.)
The workflow is split into 6 parts:
- a visitor comes to website and registers with name, email
- associate the visitor with Coohom by SSO API
- the registered user chooses a sample design which is made early by company designers
- the user gets his own design by copying what he has chosen
- the user modifies design with putting company goods
- the user finishes and goes to cart and checkout
Part 1 Register
In this part, everything happens in your website.
You should have the ability to store key information of visitors in case they return in future.
Part 2 SSO
In this part, it is your back end side to preform requests.
You can make a Coohom SSO API request to associate your user with Coohom.
Each one will be mapped to an unique user in Coohom.
And you should promise that each user uses the same information as first time calling SSO API all the time.
The token SSO API returns will be used later, and it will expire in several days.
If that happens you need to make a SSO API again to get a new one.
Part 3 Project List
You must make some sample designs in Coohom before you finally launch the function.
And you can get sample designs by Project List API.
It is design id that matters in API response.
Part 4 Project Copy
When a registered user chooses a sample design, you can get design id of that sample.
Then you should copy this chosen design by Project Copy API.
Note that design id of new project will be included in API response.
Part 5 Redirect
This part is a little complex.
And it is your front end side that should make requests.
You should make a redirect to Coohom DIY tool page by Redirect API.
In this case, user will be redirected to a Coohom page which is generally https://www.coohom.com/pub/tool/yundesign/cloud?designid=xxx&redirecturl=yyy.
So you will put what you have got in Part 4 in designid, and your cart page url in redirecturl to ensure that when customer exits he will come back to your website with proper information.
Note that you should urlencode your cart page url, as well as the whole Coohom tool page url.
And token you have got in Part 2 can be used to preform the redirect.
Part 6 BOM
After customer finishes, you can get all he has put in design by BOM APIs.
You should initialize, check, synchronize, and check again BOM to get BOM result.
SKU is included in result so you can pass them to electronic commerce plugin and charge your customer with correct information.