#gaetan

1 messages ยท Page 1 of 1 (latest)

thorn jasperBOT
errant pagoda
#

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

static ibex
#

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 ?

errant pagoda
#

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

crisp veldt
#

@static ibex let us know if that works^ ๐Ÿ™‚

static ibex
#

ok I check it

#

thanks for the answer but wtf this double array ahaha

crisp veldt
#

yeah PHP data types are a bit wild ๐Ÿ˜…

static ibex
#

OH myyyy god your are my king of the king of the king guys it's working !

#

really thansk !