Skip to main content

Collection Error Codes

Written by Fin

COLLECTION ERROR CODES

No.

Error Code

Error Message

1.

1000

Invalid argument from request.

2.

1001

API key is invalid.

3.

1002

Collection with D.O. # already exists on requested date.

4.

1003

Collection with D.O. # not found on requested date.

5.

1004

Collection with D.O. # not editable.

6.

1005

Collection with D.O. # not deletable.

SAMPLE ERROR RESPONSE JSON #1

{
   "info":{
      "status":"failed",
      "error":{
         "code":1001,
         "message":"API key is invalid"
      }
   }
}

SAMPLE ERROR RESPONSE JSON #2

{
   "info":{
      "status":"ok",
      "failed":1
   },
   "results":[
      {
         "date":"2014-02-13",
         "do":"DO140213001",
         "status":"failed",
         "errors":[
            {
               "code":1002,
               "message":"Collection with D.O. # DO140213001 already exists on 2014-02-13."
            }
         ]
      }
   ]
}

Did this answer your question?