curl --location --request GET 'https://demo.myshopify.com//admin/api//checkouts//payments/count.json'
{ "count": 1 }