Skip to content

V2 - Incorrect type for getDealsProducts "deals_ids" param #715

@Farias-sys

Description

@Farias-sys

Hi!

For the function call getDealsProducts, when you actually pass a number[], you get the following error from the endpoint:

querystring/deal_ids must be string

If you just add a .toString(), it solves the problem

    const response = await client.getDealsProducts({
        deal_ids: batch.toString(),
    });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions