Hi there,
I’ve been trying to pull data using the order API, but the data returned never exceeded the default amount of 500 even when I set different limit. Here are my codes for your reference:
headers = {
‘Square-Version’: ‘2022-06-16’,
‘Authorization’: ‘MY_TOKEN’,
‘Content-Type’: ‘application/json’,
}
json_data = {
‘query’: {
‘filter’: {
‘date_time_filter’: {
‘created_at’: {
‘start_at’: ‘2022-04-01T00:00:00Z’,
‘end_at’: ‘2022-04-30T00:00:00Z’,
},
},
},
},
‘location_ids’: [
‘MY_LOCATION_ID’,
],
‘limit’: 5000,
}
response = requests.post(‘https://connect.squareup.com/v2/orders/search’, headers=headers, json=json_data)