Yes, I'm using SDK, the code snippet is coming in a second
try
{
string ApiKey = JObject.Parse(body).Value<string>("ApiKey");
ApiContext apiContext = _oAuth.SetUpApiContext(ApiKey);
var csvRequest = CustomerStatementExport.Create(
"CSV",
"2019-05-01",
DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd"),
null,
"UK_US"
);
BunqResponse<CustomerStatementExport> csv = CustomerStatementExport.Get(csvRequest.Value);
}
catch (Exception e)
{
_logger.LogError(e.ToString());
throw new Exception(e.ToString());
}