listClearedOrders missing fields?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • snowmoneky
    Junior Member
    • Feb 2014
    • 18

    #1

    listClearedOrders missing fields?

    Can anyone spot what's missing? I'm getting a an 'DSC-0018' error (ie. missing mandatory fields).

    https://api.betfair.com/exchange/bet...ClearedOrders/
    -->

    {
    "betIds": [
    "88"
    ],
    "marketIds": [
    "99"
    ],
    "orderProjection": "ALL",
    "dateRange": {
    "from": "2014-08-28T14:43:32.575Z",
    "to": "2014-09-07T14:43:32.575Z"
    },
    "orderBy": "BY_SETTLED_TIME",
    "sortDir": "EARLIEST_TO_LATEST",
    "fromRecord": 0,
    "recordCount": 1000,
    "locale": "en_US"
    }

    <--

    {
    "detail": {},
    "faultcode": "Client",
    "faultstring": "DSC-0018"
    }
  • geoffw123
    Senior Member
    • Mar 2014
    • 250

    #2
    missing field

    Hi

    Yes, I think you are missing the "betStatus" field. It needs to specify one of

    SETTLED, VOIDED, LAPSED or CANCELLED.

    Try it see if it fixes it ?

    Regards Geoff

    Comment

    • snowmoneky
      Junior Member
      • Feb 2014
      • 18

      #3
      Thanks, I was look at the wrong docs!

      Comment

      Working...
      X