#gaetan
1 messages ยท Page 1 of 1 (latest)
Can you show me your snippet of PHP code that made this call?
From the log on the right, it looks like one coupon object was passed in instead of an array of them. So your syntax on your invoice creation call may be a bit off
is very strange because I tried to pass also an array I show you an other screen
and same error...
@errant pagoda bug of API you think ?
Thanks for the info. Apologies for the delay, checking in to this now and will get back to you
Can you try adding a set of square brackets around the coupon? Like:
'discounts' => [['coupon' => 'tu7eUKFT']],
Looks like that is the syntax that we are expecting here
@static ibex let us know if that works^ ๐
yeah PHP data types are a bit wild ๐