Closed karstennilsen closed 6 years ago
I think this is what you are looking for ? https://github.com/bunq/sdk_php/blob/8c1faefc111d9b970168a1837ca165d854954941/src/Model/Generated/Endpoint/CustomerStatementExportContent.php#L8-L16
Yes, couldn't find that :+1: Issues solved! By the way, this call is not at all mentioned on doc.bunq.com, doesn't make stuff easier...
@karstennilsen i dont understand ? Its listed as the second endpoint under https://doc.bunq.com/#tag/content
Lol, ok this proves your manual is impossible to read :) You expect this in the customer-statement category. Maybe in each case add a mention in the customer-statement response 200 like you did in the year export.
the doc is categorized on endpoints. This falls under the /content
endpoint.
Totally fine. The only point I'm trying to make is that I as quite experienced developer couldn't find it. I even gave a suggestion (which is e.g. already done in the export-anual-overview) so people like me (your dev customers) understand your API.
You can get all the information of a customer statement, but you can't actually download the customer statement. Please add a content() function in CustomerStatementExport.php.
For now I added for myself: /**
@return BunqResponseCustomerStatementExport */ public static function content( int $customerStatementExportId, int $monetaryAccountId = null, array $customHeaders = [] ) { $apiClient = new ApiClient(static::getApiContext()); $responseRaw = $apiClient->get( vsprintf( self::ENDPOINT_URL_READ . '/content', [ static::determineUserId(), static::determineMonetaryAccountId($monetaryAccountId), $customerStatementExportId, ] ), [], $customHeaders );
}