I have a JSON response from an external API which contains orders and associated order lines in a format similar to:
{
“orders”: [
{
“orderId”: “14-13152-34229”,
“lineItems”: [
{
“lineItemId”: “10072911419614”,
“title”: “Example Product“,
“quantity”: 1,
}
],
}
]
}
My Current Process:
I’ve been following this tutorial from Jacob which has been extremely helpful (Thank you Jacob): https://youtu.be/ZaD9AIegH5A?si=xo8J1hrybqsvPI20
- Get JSON response from an external API
- Use the JSON response in a Post request to bubble’s built in bulk creation api to create orders
- Use the JSON response in a Post request to bubble’s built in bulk creation api to create line items
But this doesn’t give me the ability to add the related order to the line items data to then link them in the database. Does anyone know how I go about doing this?