Ошибка 400, не понимаю как ее решить, пишу на языке GLua.
HTTP ({
url = "https://api.qiwi.com/partner/bill/v1/bills/" .. billid ,
method = "PUT",
parameters = util.TableToJSON({
billId = billid
amount = {
value = "5.00",
currency = "RUB",
},
expirationDateTime = "2022-12-10T09:02:00+03:00",
comment = "test bill"
}),
headers = {
["Authorization"] ="Bearer " .. my_secret_key,
["Content-Type"] = "application/json",
["Accept"] = "application/json",
},
failed = function() print( "shit" ) end,
success = function(code, body, headers ) print( code ) end,
body = body,
type = "text/plain; charset=utf-8",
})