Request signatureEach request must be signed. The signature is passed to the Headers parameter Sign.
The ID of the user making the request is also passed to Headers. The Auth-Id parameter.
Signature generation process:
- json request must be in one line, without hyphens.
- add the merchant's secret key to the end of the JSON (provided by the manager)
- calculate the sha256 hash of the received string and add it to the request headers, the Sign parameter.
An example of a string before calculating sha256:
{"cardholder_name":"IVANOV IVAN IVANOVICH","phone":79651234567,"product_code":1,"card_id":555}some_secret_string