-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Description
HelloAsso PHP SDK: The method organizationsOrganizationSlugPaymentsGet currently forces the Accept header to text/csv.
This prevents retrieving payments in JSON format while using query parameters like pageIndex and pageSize for pagination.
Expected Behavior
- I should be able to call
organizationsOrganizationSlugPaymentsGetand get a JSON response. - Pagination parameters (
pageIndex,pageSize) should work with JSON output.
Current Behavior
- The SDK generates the
Accept: text/csvheader by default. - Attempting to force JSON by changing the header locally works, but it requires modifying the SDK code.
- The current implementation makes it impossible to get paginated JSON responses without editing generated files.
Steps to Reproduce
$apiInstance = new \OpenAPI\Client\Api\PaiementsApi();
$payments = $apiInstance->organizationsOrganizationSlugPaymentsGet(
'organizationSlug',
'2026-01-01T00:00:00+00:00',
'2026-12-31T23:59:59+00:00',
null,
1,
20,
null,
['Authorized'],
'Desc',
'Date',
false
);Metadata
Metadata
Assignees
Labels
No labels