JSON via REST API step-by-step guide
For customers with special product data ingestion needs, sending JSON via the Constructor REST API provides a way to synchronize a product catalog. While we recommend CSV feed-based integrations for their ease of setup and troubleshooting, transmitting JSON data can be useful in cases where product data changes rapidly (several changes per minute).
Step 1
Before using the REST API, read the overview for working with the Constructor API.
Step 2
Selecting and installing a client library relevant to the target tech stack is essential to easily transmit catalog data to Constructor. Review our client libraries and choose one that suits your codebase.
For more information on the value of utilizing a client library to integrate with Constructor, please refer to the Client library usage justification guide.
Step 3
Once a client library has been set up, send, and verifying a few products is the next step. Utilize the library to transmit a few items to Constructor's API endpoint and confirm their format with your Constructor integration team.
Step 4
Add logic to update and delete products as necessary. Review our other endpoints to update and delete products as your catalog changes.
Step 5
Implement batching logic to transmit batches of up to 10,000 products to Constructor.
Step 6
Implementing backoff / retry logic and error handling is a great way to ensure stability should any network errors be encountered.
Updated 9 months ago