- Home
- CRM/ERP Integration
- Brightpearl & Shopify
On-line update of goods delivery period on the website upon change of their availability in warehouses.
What you need to start:
- Click Use this process and folder with processes will copy to your environment.
- warehouses with goods on brightpearl.com
- data of brightpearl.comaccount:
- brightpearl-app-ref,
- brightpearl-staff-token,
- account
- application data on shopify.com
- api_key
- password
- hostname
##How it works
##What do you need to know about the processes
as an example, it is supposed that in the process expedited delivery may be performed from warehouse No.2
to avoid increased load on API, requests to Brightpearl and Shopify are performed under the procedure of applications queue; this procedure is implemented through QUEUE Logic and GET TASK Logic. According to documentation, 3 requests per 1 second are the norm for Brightpearl and 2 requests per 1 second for Shopify
##Launch
1) Add your keys and Brightpearl account name to the requests queue to API Вrightpearl
Addition path:
Folder “Brightpearl” - Process “QUEUE” – path node “Copy”
2) Add your Shopify account name, Shopify keys and Brightpearl keys to the requests queue to API Shopify, where necessary.
Addition path:
Folder “Shopify” - Process “QUEUE” - path nodes “Copy GET”, “Copy PUT_METAFIELD”, “Copy PUT_PRODUCT”, “Copy PUT_VARIANT”
3) Create a webhook on the change of the good’s state in Вrightpearl.
Receive the URL for uploading tasks to the main process. In this regard, highlight the main process and copy its Direct upload.
Go to the folder “Вrightpearl”, then to the process “Webhook create” and “dashboard” mode and press the button Add task.
In the pop-up window, specify mandatory parameters of Вrightpearl:
account – account name
direct_upload - URL for uploading tasks to the main process
brightpearl-app-ref
brightpearl-staff-token
Once all parameters are specified, press the button Send task
Go to the task archive of the node “final” (Tasks archive). Parameter value "response" will contain id of created webhook
{
"response": 1
}
4) Start the processes of getting tasks for requests to API.
For two processes “Get task for API” in the folder “Вrightpearl” and “Shopify” it is necessary to perform the following similar actions:
- Switch to the “dashboard” mode and press the button Add task in order to add the task
- Press the button Send task in order to send empty task