Skip to content

organizationsOrganizationSlugPaymentsGet can not take accept 'application/json' #3

@RehArk

Description

@RehArk

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 organizationsOrganizationSlugPaymentsGet and get a JSON response.
  • Pagination parameters (pageIndex, pageSize) should work with JSON output.

Current Behavior

  • The SDK generates the Accept: text/csv header 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions