Custom field/flow on cart

carts

#1

Hi,

I’m trying to exent the cart object with custom field (ex reference_id). I did this throw the ui so now when I fetch a cart I can see the value of this field on the cart object.

It seems like I can do a put request on the cart object though to set the field value. I guess that I still can go the long way:

  1. Create an entry: POST https://api.moltin.com/v2/flows/{{flowSlug}}/entries
  2. Create a relationship: https://api.moltin.com/v2/flows/{{flowSlug}}/entries/{{entryID}}/relationships/{{fieldSlug}}

This should still work?