Discussions
Cannot GET g_business/v1/payments
Hello,
I'm trying to get the list of payments following the provided API (https://developers.satispay.com/reference#get-list-of-payments) but I end up always with this response:
{"code":45,"message":"Forbidden","wlt":"4xAV0iGD"} //wlt of course change everytime I try
N.B. The API for creating transaction, update a payment etc are working fine so the keyId and the .pem files have to be correct as well right?
These are the information I use in order to create the request:
METHOD: GET
URL: https://authservices.satispay.com/g_business/v1/payments?status=ACCEPTED&limit=100
---HEADERS---
Host: authservices.satispay.com
Date: Mon, 22 Mar 2021 16:05:40 +0000
Digest: SHA-256=47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= (created with an empty string as described in the documentation)
Signature: Signature keyId="r7hohld1eu90ccmnf8lhvrq6pjl0b2aai5ekmqdcpltkeha4mb6fs6cau5tm76dlpq6fcqoflobg2uau40o30vdp4co21tccsk11h188ibadp5vm1g7dgm5bl145ua9j2k5pguiufuqi262sm12j8s7g1fj0rjasrh2s0al0mbnfqoh5int6ei1gsr040meav5acvmgn", algorithm="rsa-sha256", headers="(request-target) host date digest", signature="w074yuY0D1biFmTHqeEHmpuNZOD+uTcEfJYjRCIDVOEnKh5Hd/+s13imgG3gFMTZuUERB81jWsEu5h4HIlE6sY5EOK446mMYnS+RTZLe4woakvZCb/aM576rnDtbSZn8R7FygUVUjIdh7coNKDHr+PXUC5enAsvjZdpJSRYxaui57Yo1r/oTVIXimbHzfOKTmJwu7NsC9aVv/0WtuEu2jlOH56nlh30tEFpEX3JTRXlfoSSsnkhM76CcU8CfxsLbhLnE8l6oy/eUf7XggYXWGNqj6HlJ8P+svfz9fRR0m3cMJ8+/uuMCQCbK2n7HZRaItr+jqI8x43Bj4TwosoPXFxoA1Qii2XYe+fvwcWCWVKz3N5zez03g/jSiYnFQQ/QisDR55JFJtYvJeq2w3IEcMesNQqnU/1TOYPT+QKMbfJkoEdL5Ne4Liq+FGDqfldlSqezw8AlPQag9FpJGH2aEowdf6Ybv+AP33h0gRDK6NLwNXqBoNZ8iXsQ2/YDHkEhwifc4RgpZMSlEUIauExOeH8RbZGffXhsA5bulk4pIoxnd4jxhtI+gerbwVOGG4+rHKorpJU20ooVwcqBxK8oNvIbASV07Fb17N14nKDzOXme9uk/kKOxot3HRyPaFtoLJ64ZBoey/lLb8xsJF4xoR0d1KDW8jNBipLmES5uPM5Ec="
Where
keyId = r7hohld1eu90ccmnf8lhvrq6pjl0b2aai5ekmqdcpltkeha4mb6fs6cau5tm76dlpq6fcqoflobg2uau40o30vdp4co21tccsk11h188ibadp5vm1g7dgm5bl145ua9j2k5pguiufuqi262sm12j8s7g1fj0rjasrh2s0al0mbnfqoh5int6ei1gsr040meav5acvmgn
String = (request-target): get /g_business/v1/payments host: authservices.satispay.com date: Mon, 22 Mar 2021 16:19:50 +0000} digest: SHA-256=47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
Could you please help me to find out what exaclty I'am doing wrong with this request?
Many thanks in advance for your attention!