Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

specifying url params in fulfilment.getorders #68

Closed
sunrunner4kr-simon opened this issue May 4, 2021 · 2 comments
Closed

specifying url params in fulfilment.getorders #68

sunrunner4kr-simon opened this issue May 4, 2021 · 2 comments

Comments

@sunrunner4kr-simon
Copy link

How do I specify multiple url params?

Like this example, using filter and limit in getOrders()

function getOrders(orderId) {
    if (orderId) {
      return eBay.sell.fulfillment.getOrder(orderId);
    } else {
      return eBay.sell.fulfillment.getOrders(
        "?filter=orderfulfillmentstatus:{NOT_STARTED|IN_PROGRESS}?limit=5"
      );
    }
  }

thanks!!!

@dantio
Copy link
Collaborator

dantio commented May 4, 2021

eBay.sell.fulfillment.getOrders({
        filter: 'orderfulfillmentstatus:{NOT_STARTED|IN_PROGRESS}',
        limit: 5
     } );

https://github.com/hendt/ebay-api/blob/master/src/api/restful/sell/fulfillment/index.ts#L45

@sunrunner4kr-simon
Copy link
Author

Thank you!! Sorry, I didn't think to check the samples in the src

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants