2xx
indicates success, 4xx
indicates something was wrong with the information provided, and 5xx
indicates something went wrong on Pier’s servers.
Attributes
Error Codes
error_code | error_type | status | error_message |
---|---|---|---|
UNAUTHORIZED | INVALID_REQUEST_ERROR | 401 | The API key is invalid. Make sure your API key is being prefixed with a colon |
UNSUPPORTED_OFFER_TERMS | APPLICATION_ERROR | 400 | The requested offer terms are not supported for this state |
STATE_NOT_SUPPORTED | APPLICATION_ERROR | 400 | The applicant’s state or territory is not supported |
LOAN_AGREEMENT_CREATION_FAILED | LOAN_AGREEMENT_ERROR | 400 | The loan agreement could not be created. Please retry |
LOAN_AGREEMENT_CANNOT_BE_SIGNED | LOAN_AGREEMENT_ERROR | 400 | The loan agreement’s status must be pending in order to sign it |
LOAN_AGREEMENT_CANNOT_BE_CREATED | LOAN_AGREEMENT_ERROR | 400 | Can only create loan agreements for approved applications |
INVALID_LOAN_AGREEMENT_ID | LOAN_AGREEMENT_ERROR | 400 | The loan_agreement_id specified is invalid |
LOAN_AGREEMENT_NOT_FOUND | LOAN_AGREEMENT_ERROR | 404 | The loan agreement resource does not exist |
LOAN_AGREEMENT_CANNOT_BE_SIGNED | LOAN_AGREEMENT_ERROR | 400 | The loan agreement’s status must be pending_signature in order to sign it |
INVALID_APPLICATION_ID | APPLICATION_ERROR | 400 | The application_id specified is invalid |
INVALID_BORROWER_ID | BORROWER_ERROR | 400 | The borrower_id specified is invalid |
BORROWER_NOT_FOUND | BORROWER_ERROR | 404 | The borrower resource does not exist |
APPLICATION_CANNOT_BE_REJECTED | APPLICATION_ERROR | 400 | The application’s status must be pending in order to reject it |
APPLICATION_CANNOT_BE_APPROVED | APPLICATION_ERROR | 400 | The application’s status must be pending in order to approve it |
APPLICATION_NOT_FOUND | APPLICATION_ERROR | 404 | The application resource does not exist |
DUPLICATE_SSN | BORROWER_ERROR | 400 | A borrower with that SSN already exists |
DUPLICATE_EIN | BORROWER_ERROR | 400 | A borrower with that EIN already exists |
INTERNAL_SERVER_ERROR | API_ERROR | 500 | An unexpected error occurred |
FACILITY_ALREADY_EXISTS | FACILITY_ERROR | 400 | A facility already exists for this loan agreement |
FACILITY_CANNOT_BE_CREATED | FACILITY_ERROR | 400 | The loan agreement must have a status of signed in order to create a facility for it |
FACILITY_NOT_FOUND | FACILITY_ERROR | 404 | The facility resource does not exist |
INVALID_FACILITY_ID | FACILITY_ERROR | 400 | The facility_id specified is invalid |
FACILITY_CANNOT_BE_CLOSED | FACILITY_ERROR | 400 | The facility is already closed |