Discussions
Are reports available in sandbox environment?
I'm trying to get report url (based on https://www.notion.so/Registration-API-PSP-documentation-08bd5316aac4413c8e030f394bb1c6f9) but I still get {"code":45,"message":"Forbidden","wlt":"BGetnYNG"}. Digest and signature checked successfully and payments API works fine.
curl --request POST "https://staging.authservices.satispay.com/g_business/v1/reports" ^
--header "accept: application/json" ^
--header "authorization: Signature keyId="biabpkclmde3180mr11dpe4u4hbpftj79r8o0n1l0enhoe3jvq37hs6fa5bb4ve74s3njsuejd6fnv9redevuik140k6v9b33rik9m164ua0fjnahsdno31aq581srikgj228o7te9fm9i14aq0och36qdv76s5ogc0p8e1k21aa2lf1a5fe3np946ud042pne7lehs9", algorithm="rsa-sha256", headers="(request-target) host date digest", signature="XQKwNXIftFc34bVS3Ep6V+HrnLZAH6s1FdX1hcL4pIpjY1q+4lrw+1AujD+oiT+Dk79wEEA4kxag5dgRqfTYqsIADV57KLSPO3ADQkXkY3O/X/hwrcOruEkfrHUWa/8BhHyUQSpa6VTrKPR7yxlwUYEycfKUxQXXEosA3owo37u2PQpKVnCvazX0Clp4slI2J0gXUxjPB0bMz9PSgMIjcjaEsOVPI0UdfQ3awuvkWWEig6+74rIaJNOa12jYGKcPjjNYA5VSS+0orwL44Tw9zaU90kp5tTdBCkyQe2Jgg1qFe+hLBcTCjTxmDE07zUaGSjIu6iVwi1dneoya+rqoEppN7PbeUKaePskyh1JHhEj3ajmH/Q6kExSufc/DNF03kMCgJ7+bRHBJiFiQW5MuPmzZFrgpQpblqp4Bmx7Ct+lZuIL60M8v8sADsZw0FCV2PvtwHnwbepmlquMhk3VJWPPcA63K8ujT8kJfQ2tpSP9Xq/5LZozhcieww2DgxNE3BrQ67WBrL1IFJL9BdiBbIZV8nhUF8ikJZXKtyPjJHnNYDWzf4Q2eIyNrdzzgFFpA88Mh8XUKphm4j21++vEb0ZwP8FkRWycMgt4xQAfyiG+1LfYCAhBuo3lg8T51OAEOj74NDcoWEfP00KFNaEkVexQ5iJHJornADYsCoIzXlr0="" ^
--header "content-type: application/json" ^
--header "date: Mon, 27 Sep 2021 13:34:24 +0000" ^
--header "digest: SHA-256=EUFRCU7dRJTP4tBLGuggDj88LLCQK2B95blLgC0mCs8=" ^
--header "host: staging.authservices.satispay.com" ^
--data-raw "{"type":"PAYMENT_SCT","format":"CSV","query_type":"SCT_DATE","query_payload":{"sct_date":"2021-09-20","time_zone":"Europe/Rome"}}"
- I also tried (based on https://developers.satispay.com/reference?showHidden=9ecba#create-new-report) -> with the same result
curl --location --request POST "https://staging.authservices.satispay.com/g_business/v1/reports" ^
--header "accept: application/json" ^
--header "authorization: Signature keyId="biabpkclmde3180mr11dpe4u4hbpftj79r8o0n1l0enhoe3jvq37hs6fa5bb4ve74s3njsuejd6fnv9redevuik140k6v9b33rik9m164ua0fjnahsdno31aq581srikgj228o7te9fm9i14aq0och36qdv76s5ogc0p8e1k21aa2lf1a5fe3np946ud042pne7lehs9", algorithm="rsa-sha256", headers="(request-target) host date digest", signature="T6jxFgmn9eQCEgfrn+e8STQP2ZLKdcnytB3wp0/U35Lx3C5Ei+wsppf0Mdyd2zR+koqjKMoUk+DFRqcj2uBvCcTT4gu0UfgOYwJPG1MwsbbzD4kfJidyi2cP+Mvt7VQ+m5Mh+hnkJcWWw2hPs9RtOL3CVSens1Z8r8VjwpxGkxRVjpqEoBI7k/MhQhMg9BGS+dmEUTeTvC4nI8WVVxd3Xk76c9T6U1FDWq1PVV0Pm5GjDs+BdLsUvwRySuOXrNPQ0rSVCZge3tQe5a3RGmXnXdkzL6QEgWQWWGYtOpr+hgcFfh303uTrT2DyqYoGDzfif+MbHNKJPq8fqE3j3ou/vUi23CZCdwr8/VE9oI2X/J9Gdd6hyi18MwWPmb7I7a/UsTH4xb5KEQzTM6PFdF4gqEYlHiklt+qtV1MqxVVxXkfAb/Zl+yt7/bIxh68JZLwCl+QcAIT4lHNAdZ+YKTYQ3Wphkw9GfWJnExcTz8Q5dxmpeef+G5e9XY03td74zvR48v5ME7hW8Y3DqsOLSOboPU7ldDQEcE9tIcMSknEGQ/wz4WicX+ckLJhrL0yDFewfq4ck1PvpmS2WJbWx87dQ1QqIeRovMjcU/Joky0s0Xwd1JDZBqRLCsVY3MGF0JAwFnqwhlptiQ935IOSh5+eaHjYMVxZ17K1sHIX075ZzdLg="" ^
--header "content-type: application/json" ^
--header "date: Tue, 28 Sep 2021 05:49:27 GMT" ^
--header "digest: SHA-256=PYgyZQ0VpptTh4tm54hf5ZpVxP2Dcco1L6yXUXbRvFg=" ^
--header "host: staging.authservices.satispay.com" ^
--data-raw "{"type":"PAYMENT","format":"CSV","notification":{"email_cc_list":["[email protected]"]},"query_type":"PAYMENT_DATE_INTERVAL","query_payload":{"payment_date_from":"2021-09-25","payment_date_to":"2021-09-28","time_zone":"Europe/Rome"}}"