Response size limit per API call

namthnamth Posts: 3Member
edited March 2016 in Development
I got an issue with Account.ItemMatrix . When my matrix has many of childs, the API response everytime I set load_relations=all. Any one has this issue too?
Post edited by Michael Carey on

3 comments

  • Michael CareyMichael Carey Posts: 64Administrator, Lightspeed Staff moderator
    Hello,

    I'm afraid I don't understand your question. Could you please provide some additional information regarding this issue? When querying Account.ItemMatrix, what is the expected result and what is the actual result you are receiving?

    Thanks,
    Mike
    Michael Carey

    Product Manager
    Lightspeed HQ
  • namthnamth Posts: 3Member
    Hi Mike,
    There are something wrong with my question.
    My query is Account.ItemMatrix with "load_relations=all&limit=100"
    Expected result is an array of 100 ItemMatrix but the API always response NULL. I think it is because of my matrices have too many child items.
  • Michael CareyMichael Carey Posts: 64Administrator, Lightspeed Staff moderator
    Hi,
    This shouldn't be the case. If you have more than 100 results, you should see the count, the offset, and the limit returned in the @attributes section like this:
    [@attributes] => Array
    (
    [count] => 115
    [offset] => 0
    [limit] => 100
    )
    Can you send me your account ID in a direct message an I'll take a look at your account to see if there is anything out of the ordinary.

    Thanks,
    Mike
    Michael Carey

    Product Manager
    Lightspeed HQ
Sign In or Register to comment.