Hi, I try to get dispute list by List dispute API on Sanbox. However, if there is only one item left, the item response will be returned empty. Is this a bug? ### excerpt from response -------
## items count: 4 (page_size=default)
$ curl -X GET https://api.sandbox.paypal.com/v1/customer/disputes?dispute_state=REQUIRED_ACTION \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ****"|jq
# response (page_size=default)
{
"items": [
{
"dispute_id": "PP-D-14993",
:
(snip)
:
},
{
"dispute_id": "PP-D-14992",
:
(snip)
:
},
{
"dispute_id": "PP-D-14990",
:
(snip)
:
},
{
"dispute_id": "PP-D-14991",
:
(snip)
:
}
],
"links": [
{
"href": "https://api.sandbox.paypal.com/v1/customer/disputes?dispute_state=REQUIRED_ACTION",
"rel": "self",
"method": "GET",
"encType": "application/json"
},
{
"href": "https://api.sandbox.paypal.com/v1/customer/disputes?dispute_state=REQUIRED_ACTION",
"rel": "first",
"method": "GET",
"encType": "application/json"
}
]
}
## items count: 3 (page_size=3 first)
$ curl -X GET https://api.sandbox.paypal.com/v1/customer/disputes?dispute_state=REQUIRED_ACTION\&page_size=3 \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ****"|jq
# response (page_size=3 first)
{
"items": [
{
"dispute_id": "PP-D-14993",
:
(snip)
:
},
{
"dispute_id": "PP-D-14992",
:
(snip)
:
},
{
"dispute_id": "PP-D-14990",
:
(snip)
:
}
],
"links": [
{
"href": "https://api.sandbox.paypal.com/v1/customer/disputes?dispute_state=REQUIRED_ACTION&page_size=3",
"rel": "self",
"method": "GET",
"encType": "application/json"
},
{
"href": "https://api.sandbox.paypal.com/v1/customer/disputes?dispute_state=REQUIRED_ACTION&page_size=3",
"rel": "first",
"method": "GET",
"encType": "application/json"
},
{
"href": "https://api.sandbox.paypal.com/v1/customer/disputes?dispute_state=REQUIRED_ACTION&page_size=3&next_page_token=AAGWD-LhsrivF0eylPYSo.06RtOl0AOcwMRDjB511-b3917M1zmZiK8CqvahTmMEdOplgepHig3xvoimRyZTY6dXL92d6fJPYRjIOzH6CnASKiY=",
"rel": "next",
"method": "GET",
"encType": "application/json"
}
]
}
## items count: 0 (page_size=3 next, using next_page_token from prev links response)
$ curl -X GET https://api.sandbox.paypal.com/v1/customer/disputes?dispute_state=REQUIRED_ACTION\&page_size=3\&next_page_token=AAGWD-LhsrivF0eylPYSo.06RtOl0AOcwMRDjB511-b3917M1zmZiK8CqvahTmMEdOplgepHig3xvoimRyZTY6dXL92d6fJPYRjIOzH6CnASKiY= \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ****"|jq
# response (page_size=3 next)
{
"items": [],
"links": [
{
"href": "https://api.sandbox.paypal.com/v1/customer/disputes?dispute_state=REQUIRED_ACTION&page_size=3&next_page_token=AAGWD-LhsrivF0eylPYSo.06RtOl0AOcwMRDjB511-b3917M1zmZiK8CqvahTmMEdOplgepHig3xvoimRyZTY6dXL92d6fJPYRjIOzH6CnASKiY=",
"rel": "self",
"method": "GET",
"encType": "application/json"
},
{
"href": "https://api.sandbox.paypal.com/v1/customer/disputes?dispute_state=REQUIRED_ACTION&page_size=3",
"rel": "first",
"method": "GET",
"encType": "application/json"
}
]
}
... View more