listCurrentOrders and customerOrderRefs parameter

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pasqualebruno
    Junior Member
    • May 2020
    • 2

    #1

    listCurrentOrders and customerOrderRefs parameter


    I'm trying to use the customerOrderRefs parameter in a listCurrentOrder query, using the customerRef I passed to placeOrders; and, indeed, which was returned from placeOrders. The customerRef is a string < 32 chars long which I believe meets the spec.

    The listCurrentOrder query returns an empty set tho - but curiously I don't have an issue when I use the betId parameter to listCurrentOrder.

    I suppose I'm wondering

    a) if this is a known issue with the method or an error on my part?

    b) if the latter, have I understood correctly the data relationship i.e. is the customerOrderRef parameter that listCurrentOrder takes semantically equivalent to the customerRef you pass to placeOrders?

    If the answers are "it is an error on my part" and "you understood the data relationship correctly" then I suppose I have a syntax error (but I'll be damned if i can spot it)

    thanks to anyone who can shed light...
  • LiamP
    Junior Member
    • Oct 2015
    • 284

    #2
    Sounds like you may be confusing customerRef and customerOrderRef, the former is for preventing duplicate submissions and the latter is what you want to use if you then want to query listCurrentOrder. What are you using in your place order request?

    Comment

    • pasqualebruno
      Junior Member
      • May 2020
      • 2

      #3
      Got it. So they are semantically different. And after a deeper dig around in the documentation I see the customerOrderRef buried in the placeInstruction schema so am sorted from here.

      Much appreciate the clarification - thank you!

      Comment

      Working...
      X