• Home
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • App Market Developer Platform
  • Clover GO
  • Ideas & Feedback
  • Semi-Integration
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
Skip to main content
  • Create
    • Ask a question
    • Post an idea
    • App Market Developer Platform
    • Clover GO
    • Ideas & Feedback
    • Semi-Integration
    • Topics
    • Questions
    • Articles
    • Ideas
  • Sign in
  • Home
  • App Market Developer Platform

question

rob.smitha avatar image
rob.smitha asked · Sep 11 at 08:38 PM

Is it possible to get an OrderID by LineItemID using the REST API

I have the LineItemID saved in my database, and I want to get the OrderID that is associated to that line item. Is it possible to load the line item without having both the line item id and the order id?

I'm aware of this endpoint, but want to avoid saving the OrderID in my database if at all possible.
https://apisandbox.dev.clover.com/v3/merchants/mId...

Thanks.
REST APILineItems
Comment
0
10 |2000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Lauren Worthington avatar image
Lauren Worthington answered · Sep 12 at 05:50 AM
Hi Rob,

I believe the only way this would be possible would be to call the get orders endpoint, expand the line items, and then find the order by filtering through the data.
· 3 comments · Share
10 |2000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

rob.smitha avatar image rob.smitha · Sep 12 at 07:43 PM

That's thinking outside the box, thanks.

0 · ·
NextSeat avatar image NextSeat · Sep 12 at 07:58 PM

Hi Lauren, related question, can merchant print the order from Clover Orders app, we don't have Clover device. Restaurant owner is asking us this question. I thought this possible, since order is already on the system.

0 · ·
brokenOval avatar image brokenOval NextSeat · Sep 13 at 12:43 PM

From the Orders app you can click into an order, then you can hit the "Reissue Receipt" button.

0 · ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community

question details

4 People are following this question.

rob.smitha follows this question laurenworthington follows this question NextSeat follows this question brokenOval follows this question
Answers Subscribe to Answers Answers and Comments Subscribe to Comments and Answers

Related Questions

Create a line item from Item and attach to order 1 Answer

ACTION_CLOVER_PAY intent closes when started immediately after a line item is added via REST API 1 Answer

How to save userData on LineItem using the /v3/merchants/mId/orders/orderId/line_items REST API endpoint? 1 Answer

Is there a scenario when an order would be in an item report but not returned by the api 0 Answers

Custom Line Items For Delivery Charge 2 Answers

Answerhub Logo
  • About
  • ·
  • FAQ
  • ·
  • Privacy
  • ·
  • Copyright © 2010-19 DZone, Inc.