Discussions

Ask a Question
Back to All

Retrieve consumer

Salve, se provo a testare la funzione con questo codice

curl --request GET
--url 'https://staging.authservices.satispay.com/g_business/v1/consumers/+393423314619'
--header 'Authorization: Signature keyId="9kflterovdbou73grv817rknfo91kmjjidj7f05etb5i2d3j1cel1ma6uo6v4u8f5vac7fa1gdar1hqgcunbc6gci01urn5m7slk3fq4f255cu6hescsu0pkrqdssvvqpaaiauqhudmfb45tmtf6l8t8tqfogaugrrvrmbt8239de27g3pt19e40lct9netrjtp44gdg", algorithm="rsa-sha256", headers="(request-target) host date digest", signature="W8iHsmgBGTe3IZD0O8Ixd/sySZzhaQOCAFz1VFbjJVpzsO5ADl0ZOfrTUmnsyj/XmzjC3uZdVc1qs5HHXkDP9oI+YL91HIOQCnIvtaEP48qikMVxraH4HuopKSJv9S9PrUteGfyY6KuIXfLDTeYCBoFwimy0CqSFqLsilygazO2N1kr5GtwDGF9ccnzAziPmDUopfhwLWIw70Jj5J/wDxoAc7R/n85KQqfBF5bN8q4yFZ8VEFGobuz/H9Dm/686FKoe+mcSZsaZ2xVgHahvXJL861OnEZ2hbK0smfO+CSt6/QG/0MC8VzdbP6AdfF/2N0Plh4kLuV8XKwxMbbl5pr2xU48w4ZZPax2UXIIw/ZLtXa9IWRi5p3nUN8OR0qGj6DPQaQ8fpA35QZu/mIRWdvEDsL59sJ0UqIBBIX3YVjAnIFbblFdKgAxE39k+mvJra9psk9MSNYFnuhEXQgoLGYzCgn42mnR9IjIlagh0LC5qSOuC14OLBOtz7XEyiY6MBpupNzlbtZqzspTlITgGtWr0Vu0XlaJgrpkLZIBuxbZAzo3r4XVShIkZmTHvvI5HCWTHzl3hlgJr5StV0D6736xyzZSq2JCrFFt+llH8nVBmxYaTO6mLAd3lP8QVSSdwsXKQ7oe7CnY0794nxnRTqIJUYXF7B8P9kz05SzlwnO5g="'

Ottengo
{
"code": 45,
"message": "Forbidden",
"wlt": "s4iqsBRf"
}

Se invece imposto come endpoint quello di produzione
{
"code": 34,
"message": "Unauthorized",
"wlt": "cTXZAnfT"
}

Il numero di telefono è quello su cui abbiamo configurato il sandbox ma ho provato anche numeri con satispay reale e il risultato non cambia

Premetto che il test dell'authentication ha dato buon esito

{
"authentication_key": {
"role": "PUBLIC"
},
"signature": {
"key_id": "9kflterovdbou73grv817rknfo91kmjjidj7f05etb5i2d3j1cel1ma6uo6v4u8f5vac7fa1gdar1hqgcunbc6gci01urn5m7slk3fq4f255cu6hescsu0pkrqdssvvqpaaiauqhudmfb45tmtf6l8t8tqfogaugrrvrmbt8239de27g3pt19e40lct9netrjtp44gdg",
"algorithm": "RSA_SHA256",
"headers": ["(request-target)", "host", "date", "digest"],
"signature": "W8iHsmgBGTe3IZD0O8Ixd/sySZzhaQOCAFz1VFbjJVpzsO5ADl0ZOfrTUmnsyj/XmzjC3uZdVc1qs5HHXkDP9oI+YL91HIOQCnIvtaEP48qikMVxraH4HuopKSJv9S9PrUteGfyY6KuIXfLDTeYCBoFwimy0CqSFqLsilygazO2N1kr5GtwDGF9ccnzAziPmDUopfhwLWIw70Jj5J/wDxoAc7R/n85KQqfBF5bN8q4yFZ8VEFGobuz/H9Dm/686FKoe+mcSZsaZ2xVgHahvXJL861OnEZ2hbK0smfO+CSt6/QG/0MC8VzdbP6AdfF/2N0Plh4kLuV8XKwxMbbl5pr2xU48w4ZZPax2UXIIw/ZLtXa9IWRi5p3nUN8OR0qGj6DPQaQ8fpA35QZu/mIRWdvEDsL59sJ0UqIBBIX3YVjAnIFbblFdKgAxE39k+mvJra9psk9MSNYFnuhEXQgoLGYzCgn42mnR9IjIlagh0LC5qSOuC14OLBOtz7XEyiY6MBpupNzlbtZqzspTlITgGtWr0Vu0XlaJgrpkLZIBuxbZAzo3r4XVShIkZmTHvvI5HCWTHzl3hlgJr5StV0D6736xyzZSq2JCrFFt+llH8nVBmxYaTO6mLAd3lP8QVSSdwsXKQ7oe7CnY0794nxnRTqIJUYXF7B8P9kz05SzlwnO5g=",
"resign_required": false,
"valid": true,
"iteration_count": 2617
},
"signed_string": "(request-target): post /wally-services/protocol/tests/signature\nhost: staging.authservices.satispay.com\ndate: Thu, 18 Mar 2021 11:10:24 +0000\ndigest: SHA-256=mkDfbz7xCYXCJoih4ajY8Vyo5SmsNEDZazeLTr5vy5k="
}