#Chhay Toch-invoice
1 messages · Page 1 of 1 (latest)
and the custom_fields is array type or object type?
ok to answer the first question, no, there's a hard limit of 4, no way to increase it
it's an array of objects
custom_fields:[
{name:"foo", value:"bar"},
{name:"foo1", value:"bar"},
]
Could you help me to check this ReqID: req_iQvJ1mpmHnpxNl
I have listened the "invoice.created" event already
yep, you can't update the invoice at that point, it's too late.
is there any advise?
in that case it's the first invoice of the subscription, so it's finalised immediately, so you can't update it
so you should set the custom_fields on the Customer object instead, before creating the subscription
The users will has the custom_fields value differently from each of the invoice.
Is it a good way to do it in Customer?
one more thing, the customer field may be up to 30 characters
Does it mean limit 30 characters?
and where can we display customer address in the invoice?
there's not really any other good option, since the first invoice of a subscription gets finalised immediately so you're not able to set the custom fields any other way
yes
it's shown by default as far as I know, as long as you have the address field on the Customer object set.
ok boss