#Lenin

1 messages ยท Page 1 of 1 (latest)

toxic pineBOT
cinder moon
#

Hi there!

#

Pasting your other message here:

I can see the number of items which can be returned in the api can be configured, with 5 being default. Anyway we can configure it in expansion also? What is the default there?

#

I think both option should be similar.

#

It's not possible to configure the number of results returned when using expand. So that can be one reason to make an API call directly to the line_items endpoint.

quasi nymph
#

do we know the default number of items it returns?the expansion response

cinder moon
#

That's a good question, I don't know. Give me a few minutes to look into this.

quasi nymph
#

sure

cinder moon
#

It's 10

#

So if you think you'll have more than 10, then calling the line_items separately makes more sense

toxic pineBOT
drowsy granite
#

๐Ÿ‘‹ taking over for my colleague. Let me know if there's any follow-up Qs I can answer!

quasi nymph
#

thank you

#

i am good

#

for over 10 items, does i tprovide the pagination url also?

#

in the expand items

drowsy granite
quasi nymph
#

No this is not direct list api call. This is me using the expand_items in the get_checkout call

#

hence not sure if it is supported

drowsy granite
#

that's what my colleague explained, the expand will only get you 10items

quasi nymph
#

okk thank you

#

i am good now