Skip to main content

How to fetch a Kickflip design's data from a WooCommerce order via Kickflip's API

Using Kickflip's API, here's a step by step guide to fetching a Kickflip order data from a WooCommerce order

When an order is created on WooCommerce, note the Order # (700 in this example):

Use Kickflip API to fetch all orders*

https://api.mycustomizer.com/brands/{companyname}/orders

*Note that this query is limited to 25 orders at a time,

to fetch subsequent orders you need to pass the parameters count and lastIndex like so:

?count=25&lastIndex=25 for the 2nd page,

?count=25&lastIndex=50 for the 3rd page, and so on.

Iterate through the results

results is an array of objects, use a "for-each loop" until you find the eCommerceOrderId value from your WooCommerce Order (700 in this example):

Iterate through the items array of objects

and, for each items[i].design, call the Kickflip API to fetch a design by id

64663ac826f995098d365876 in this example:

https://api.mycustomizer.com/brands/{companyname}/designs/{designid}
https://api.mycustomizer.com/brands/{companyname}/designs/64663ac826f995098d365876

This result object is the Kickflip design data from your WooCommerce order:

Did this answer your question?