Migrated from Redmine #1356 | Author: Yehoshua Preiser
Status: Feedback | Priority: High, I’m very impatient | Created: 2025-02-11
Hello Support Team,
I am trying to approve an order using the API endpoint:
POST /api/order/{id}/approve
(SBPay.me - Single place for all payment processors),
but I keep getting the error:
Error occurred: Bad credentials
Code: 403
I have a few questions:
-
How do I obtain the
X-Auth-Token?- I am using the value provided in my account settings, but it does not seem to work.
- Could you confirm the correct way to retrieve this token?
-
How should I generate the request signature?
- Should I sign the entire request body as a JSON string or only the values?
- Should the values be concatenated with a
|(pipe) separator? - Example: Should I sign this?
"123456|1707570000|sha256|yaad|tx_789|Approved by merchant|true" - Or should I sign the entire JSON body as a string?
Any guidance would be greatly appreciated!
Thank you