Loan Agreements

Create a loan agreement

POST
A loan agreement can be created for an application with a status of approved. Expect 4-8 seconds of latency

Request

This endpoint expects an object.
application_id
stringRequired

The application_id of the application to create the loan agreement for

accepted_offer_id
stringRequired

The accepted_offer_id of the application’s offer to create the loan agreement for

Response

This endpoint returns an object
id
string
application_id
string

The application_id of the corresponding loan application the agreement is for

created_on
datetime
Timestamp the loan agreement object is created on
document_url
string
Url where the loan agreement document is hosted
status
enum
The status of the document
Allowed values: pending_signaturesignedexpired
type
enum
The type of document
Allowed values: credit_agreementach_authorizationautopay_ach_authorizationcredit_disclosure
signature_timestamp
datetimeOptional
Timestamp of when e-signature is completed

Errors

POST
1curl -X POST https://production.pier-finance.com/api/loan_agreements \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "application_id": "app_f0467657bba948e6a87292e182132848",
6 "accepted_offer_id": "off_86c05092a4384d89b03ef514ea4fee31"
7}'
1{
2 "id": "doc_43da3b3f95c745e1985a71e9a00d6c27",
3 "application_id": "app_a9d2f388030d4f4296f80fc327e08d0d",
4 "created_on": "2022-12-31T20:47:38.152Z",
5 "document_url": "https://example.com/document-endpoint-unique-hash",
6 "status": "pending_signature",
7 "type": "credit_agreement",
8 "signature_timestamp": null
9}