Finance API is a part of the service that is used to provide our clients with financial information. The report is provided in .CSV format for your account for a certain period.
Method - POST
Endpoint:https://reports.solidgate.com/api/v1/finance/financial_entries
Use the following script:
var private_key = "!!!Enter secret Key!!!";
var merchant_id = "!!!Enter public key!!!";
var data ='{"date_to": "2022-10-01 00:00:00", "date_from": "2022-09-01 00:00:00"}';
var hash = CryptoJS.HmacSHA512(merchant_id + data + merchant_id, private_key);
var signature = btoa(hash.toString(CryptoJS.enc.Hex));
postman.setEnvironmentVariable("data", data);
postman.setEnvironmentVariable("Merchant", merchant_id);
postman.setEnvironmentVariable("Signature", signature);
pm.variables.get("variable_key");You will get a report URL:
{
"report_url": "https://reports.solidgate.com/api/v1/finance/financial_entries/report/fin_221101_164844_test_var_sandbox/download"
}After that, you will need to use the report URL you received previously:
Method - GET
Endpoint:https://reports.solidgate.com/api/v1/finance/financial_entries/report/{report_id}/download
(report_url": "https://reports.solidgate.com/api/v1/finance/financial_entries/report/fin_221101_164844_test_var_sandbox/download)
With the same script but with GET request:
var private_key = "Secret Key";
var merchant_id = "Public key";
var data ='{"date_to": "2022-10-01 00:00:00", "date_from": "2022-09-01 00:00:00"}';
var hash = CryptoJS.HmacSHA512(merchant_id + data + merchant_id, private_key);
var signature = btoa(hash.toString(CryptoJS.enc.Hex));
postman.setEnvironmentVariable("data", data);
postman.setEnvironmentVariable("Merchant", merchant_id);
postman.setEnvironmentVariable("Signature", signature);
pm.variables.get("variable_key");And you will get a report.
Documentation can be found on the following link: https://dev.solidgate.com/developers/documentation/reports/#Financial_Entries
In case of any questions, please contact our Support Team directly via http://support.solidgate.com/