productId parameter is required. Another way to check the possibility of paying for an order for a product associated with a voucher is to use the /user/couponStats resource.curl --location 'https://test.api.globkurier.pl/v1/order/payments?grossOrderPrice=20.00&productId=681' \
--header 'Accept-Language: pl' \
--header 'X-Auth-Token;'[
{
"id": 2,
"enabled": true,
"default": true,
"name": "Płatność online",
"price": null
},
{
"id": 1,
"enabled": true,
"default": false,
"name": "Przelew bankowy",
"price": 0
},
{
"id": 4,
"enabled": false,
"default": false,
"name": "Faktura zbiorcza (przelew bankowy - odroczony termin płatności)",
"price": null
},
{
"id": 9,
"enabled": false,
"default": false,
"name": "Konto pre-paid (faktura zbiorcza)",
"price": null
},
{
"id": 8,
"enabled": false,
"default": false,
"name": "Bon",
"price": 0
}
]