I am creating an app for ordering food for pickup and am needing to pre_populate the form. I can do each one seperately but if I do then together I get a 400:
Only one of [fulfillment, buyer_email] fields should be set.
I need the fulfillment in order to make the order with a PICKUP type but I also want the fields to be populated on the form. I shouldn’t need to fill them out if they are already a customer right?
Any help would be much appreciated. I have tried a range of different things on the fulfillments object to get it auto populating in the checkout but it doesn’t work for me
I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:
If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.
I get that I can use 2 API calls. But I would rather not do this. I just want it all in 1 - It means less hammering of the Square API as well. It is prefereable to have it all in 1 prepopulating and allowing me to add the fulfillment on the link
Hey @_sam! This is currently only possible with two separate API calls, but I definitely understand the desire to streamline this into a single call. I’ll make note of this as a feature request.