I spent the last 3 hours trying to set custom names and values with customer definitions and attributes.
I got the definitions part working (setting them, deleting them, etc) but now when I try to programmatically add a set of values (one unique value per key), I’m receiving unusual errors.
So I narrowed the problem down to the endpoint itself.
So I did a raw curl request with no special headers other than -X POST to this URL:
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.
To The AI bot that answered: That did not help. I’m receiving abnormal responses even without providing my key. If I can’t get an unauthorized response then there’s something else going on.
The only thing is if I need to store 20 entries per customer after they complete their order, then Id have to make a ton of calls to your server per customer.
1 call to retrieve customer data,
1 call for tokenization,
1 call for verify buyer,
1 call for each entry = 20 calls (19 would be avoided if bulk-upsert would work)
1 call for process payment
= 24 calls total.
I could use this endpoint as a temporary solution, but what would be the limit on requests in a production environment before receiving a HTTP 429 error?
Had the “note” property for the customer record accepted a large string array instead of a string, I would just populate all my data in that but I think the note property now is limited to 512 characters. had the string limit be something like 20,000 characters or more, I would use that to store all customer data and not have to deal with the customer definitions and attributes endpoints plus I could then do everything in one call instead of 20+ calls.