Skip to content

organizationsOrganizationSlugFormsFormTypeFormSlugItemsGet missing data #5

@WillyReyno

Description

@WillyReyno

Hello,

organizationsOrganizationSlugFormsFormTypeFormSlugItemsGet endpoint currently doesn't return anything (see #1), so I started a pull request ( #4) to fix that but aborted when I saw there was a lot of missing data

Here's a comparison of the data returned from the method and from querying the endpoint directly.

Response from organizationsOrganizationSlugFormsFormTypeFormSlugItemsGet using a userSearchKey:

[
  {
    "payer": {
      "email": "xxxxxx",
      "address": null,
      "city": null,
      "zipCode": null,
      "country": "XXX",
      "company": null,
      "dateOfBirth": null,
      "firstName": "xxxxxx",
      "lastName": "xxxxxx"
    },
    "items": null,
    "payments": null,
    "amount": {},
    "id": XXXXXXXXX,
    "formSlug": null,
    "organizationName": null,
    "organizationSlug": null,
    "checkoutIntentId": null
  },
]

Response from querying directly /v5/organizations/{organizationSlug}/forms/{formType}/{formSlug}/items with the same userSearchKey:

[
  {
    "order": {
      "id": XXXXXXXXX,
      "date": "2025-04-30T21:45:25.3136287+02:00",
      "formSlug": "xxx",
      "formType": "xxx",
      "organizationName": "XXX",
      "organizationSlug": "xxx",
      "organizationType": "xxx",
      "organizationIsUnderColucheLaw": false,
      "formName": "xxxx",
      "meta": {
        "createdAt": "2025-04-30T21:45:25.3136287+02:00",
        "updatedAt": "2025-04-30T21:45:26.1042937+02:00"
      },
      "isAnonymous": false,
      "isAmountHidden": false
    },
    "payer": {
      "email": "xxxxx",
      "country": "xxx",
      "firstName": "xxxxxx",
      "lastName": "xxxxxx"
    },
    "name": "xxxx",
    "user": {
      "firstName": "xxxxxx",
      "lastName": "xxxxxx"
    },
    "priceCategory": "xxxx",
    "discount": {
      "code": "xxxxxx",
      "amount": 2400
    },
    "qrCode": "xxxx",
    "membershipCardUrl": "https://xxxxx",
    "tierId": XXXXXXXXX,
    "id": XXXXXXXXX,
    "amount": 0,
    "type": "xxxxxx",
    "initialAmount": 2400,
    "state": "Processed"
  }
]

Could you provide a fix to actually get the full data from an order?

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