The facility_id of the facility you want to retrieve
The application_id of the corresponding loan application for the facility
application_id
The borrower_id of the corresponding borrower the facility is for
borrower_id
The loan_agreement_id of the corresponding loan agreement the facility is for
loan_agreement_id
1curl https://production.pier-finance.com/api/facilities/fac_18e5a3726b3943cda2635f40e1041ba4 \2 -H "Authorization: Bearer <token>"
1{2 "id": "fac_18e5a3726b3943cda2635f40e1041ba4",3 "application_id": "app_f0467657bba948e6a87292e182132848",4 "borrower_id": "bor_a1d0c30d77104f35b4c842b99132624e",5 "loan_agreement_id": "doc_43da3b3f95c745e1985a71e9a00d6c27",6 "credit_type": "consumer_installment_loan",7 "created_on": "2023-05-12T19:46:09.293Z",8 "status": "active",9 "account_number": "401542198",10 "transactions": [],11 "statements": [],12 "payments_due": [],13 "terms": {14 "type": "loan_offer",15 "amount": 1000000,16 "id": "off_86c05092a4384d89b03ef514ea4fee31",17 "loan_term": {18 "term_type": "months",19 "term": 3620 },21 "first_payment_date": "2022-12-31",22 "grace_period": {23 "term": 0,24 "interest_rate": 025 },26 "interest_rate": 0,27 "late_payment_fee": 0,28 "origination_fee": 0,29 "payment_period": "monthly"30 },31 "amortization_schedule": [32 {33 "payment_date": "2023-11-02",34 "interest_payment_amount": 0,35 "principal_payment_amount": 8333,36 "other_payment_amount": 0,37 "total_payment_amount": 8333,38 "balance_amount": 91667,39 "item_index": 140 },41 {42 "payment_date": "2023-12-02",43 "interest_payment_amount": 0,44 "principal_payment_amount": 8333,45 "other_payment_amount": 0,46 "total_payment_amount": 8333,47 "balance_amount": 83334,48 "item_index": 249 }50 ],51 "repayment_bank_details": {52 "bank_account_number": "98989898",53 "bank_routing_number": "021000021",54 "type": "checking"55 },56 "balance": 5000000,57 "payoff_balance": 5000000,58 "origination_date": "2023-05-12",59 "disbursement_date": "2023-05-12",60 "remaining_term": 48,61 "next_payment_amount": 124425,62 "next_payment_due_date": "2023-06-12",63 "current_payment_due_date": "2023-06-12",64 "last_payment_date": null,65 "principal_paid_thru": "2023-05-11",66 "next_billing_date": "2023-05-28",67 "interest_accrued_thru": "2023-05-11",68 "next_accrual_cutoff_date": "2023-06-11",69 "scheduled_payoff_date": "2027-05-12",70 "autopay": {71 "authorized": false72 },73 "documents": {74 "unsigned_credit_agreement": {75 "document_url": "https://storage.googleapis.com/example/unsigned_credit_agreement.pdf",76 "document_id": "doc_1234567890abcdef"77 },78 "signed_credit_agreement": {79 "document_url": "https://storage.googleapis.com/example/signed_credit_agreement.pdf",80 "document_id": "doc_abcdef1234567890"81 },82 "unsigned_ach_authorization": {83 "document_url": "https://storage.googleapis.com/example/unsigned_ach_authorization.pdf",84 "document_id": "doc_fedcba9876543210"85 },86 "unsigned_autopay_ach_authorization": {87 "document_url": "https://storage.googleapis.com/example/unsigned_autopay_ach_authorization.pdf",88 "document_id": "doc_0123456789abcdef"89 },90 "signed_ach_authorization": {91 "document_url": "https://storage.googleapis.com/example/signed_ach_authorization.pdf",92 "document_id": "doc_fedcba0987654321"93 },94 "signed_autopay_ach_authorization": {95 "document_url": "https://storage.googleapis.com/example/signed_autopay_ach_authorization.pdf",96 "document_id": "doc_0123456789abcdef"97 }98 }99}