Coohom is powerful in 3d design and can provide a 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, customers can design with your goods, do the rendering to see what it looks like, then purchase what he wants.
And everything happens on your website!
We are now happy to announce that we have made a successful integration with the 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 on your website.
You should have the ability to store key information of visitors in case they return in the future.
Part 2 SSO
In this part, it is your back end side to perform requests.
You can make a Coohom SSO API request to associate your user with Coohom.
Each one will be mapped to a unique user in Coohom.
And you should promise that each user uses the same information as the 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 an 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 a design id that matters in the API response.
Part 4 Project Copy
When a registered user chooses a sample design, you can get the design id of that sample.
Then you should copy this chosen design by Project Copy API.
Note that the design id of the 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 the Coohom DIY tool page by Redirect API.
In this case, the 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 design, and your cart page URL in redirect URL to ensure that when the customer exits he will come back to your website with proper information.
Note that you should URL encode 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 perform the redirect.
Part 6 BOM
After the 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 the BOM result.
SKU is included in the result so you can pass them to the electronic commerce plugin and charge your customer with correct information.