General Considerations

All Resources share the following common format -

https://api.lendingclub.com/api/investor/<version>/<Resource>/<SubResource>

For GET operations, the result of the operations will be returned in specified format (JSON, CSV or XML). HTTP Response Codes will be used to communicate back the type of response. For the current version, the following response codes can be expected —

200 - Successful execution

400 -Execution failed with errors. Errors will be returned as JSON payload.

403 - Authentication failure

404 - Resource does not exist

500 - Unsuccessful execution

For error code 400, in addition to the HTTP Response Codes, the API will return a list of error objects. A couple of sample error responses can be —

            {
                "errors":[
            		{
            			"field":"arg1.orders[0].loanId",
            			"code":"validation-error",
            			"message":"Loan Id not present."
            		},
            		{
            			"field":"arg1.orders[1].requestedAmount",
            			"code":"validation-error",
            			"message":"Requested amount must be at least $25"
            		}
            	]
            {
            	"errors":[
            		{
            			"field":null,
            			"code":"loanId-not-found",
            			"message":"One or more loans don't exist."
            		}
            	]
            }
            

JSON Formatting Considerations

Double quotes are the official JSON standard. We follow the same standard in our API. Please refer to http://www.json.org

Content Type

For usage guidelines on "Content-type" header, please refer to Content Type