Skip to content

[Bug Report: API Field Missing] List products endpoint does not include medias object[]Β #111

Description

@jhessley

πŸ› Describe the Bug

The response from the API endpoint does not include medias object[] as expected.

πŸ“ API Endpoint

https://services.leadconnectorhq.com/products/

βœ… Expected Behavior

The API should return medias object[] for each product that is returned in the response.

πŸ’» Screenshots or Code Samples

{
"_id": "xxxxxx24d069c01b5aeaxxxxx",
"medias": [] //<-- SHOULD BE HERE BUT ISN'T
"variants": [
{
"id": "vjf3vs4pnmj",
"name": "Size",
"options": [
{
"id": "w8xyqehntu",
"name": "Extra Small"
},
{
"id": "1pujpbum7ja",
"name": "Small"
},
{
"id": "y7a6kipamcc",
"name": "Medium"
},
{
"id": "zn1cqdhkl9",
"name": "Large"
}
]
}
],
"isTaxesEnabled": false,
"taxes": [],
"collectionIds": [
"66f2ff34a9a36e577b6a0814",
"66f2f921a9a36ea26c6a02e8",
"66f2fd20a9a36ecaa06a05d4",
"670d2adc4832285e1e504ca9"
],
"locationId": "4PhuleDOpj9O3bBXZgel",
"name": "AirFitβ„’ P10 Frame System (A7034)",
"productType": "DIGITAL",
"description": "",
"availableInStore": true,
"image": "",
"createdAt": "2024-10-11T13:14:56.674Z",
"updatedAt": "2024-10-17T17:48:42.808Z",
"variantsLength": 1,
"taxInclusive": false
},

Product Area

payment-products

🧠 Additional Context

The documentation shows that medias object[] is expected.

https://marketplace.gohighlevel.com/docs/ghl/products/list-invoices

Metadata

Metadata

Assignees

No one assigned

    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