curl --request POST \
--url https://production.pier-finance.com/api/facilities \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"loan_agreement_id": "doc_234259b117854d0194bc5864a6c45b42"
}'
{
"terms": {
"type": "line_of_credit",
"amount": 1000000,
"apr": 0,
"annual_fee": 0,
"billing_cycle": 30,
"finance_charge": 0,
"grace_period": 21,
"grace_period_interest_rate": 0,
"interest_rate": 0,
"late_payment_fee": 0,
"origination_fee": 0,
"term": 24
},
"id": "fac_7264c6575a894548a386939434b0adf3",
"application_id": "app_ad1564ffb1d745f9ad482bb5182708e2",
"borrower_id": "bor_d965bea9f47a4b108562642dbb1dae9f",
"loan_agreement_id": "doc_234259b117854d0194bc5864a6c45b42",
"credit_type": "revolving_line_of_credit",
"status": "active",
"created_on": "2023-01-17T04:59:21.773Z"
}
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
The response is of type object
.
curl --request POST \
--url https://production.pier-finance.com/api/facilities \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"loan_agreement_id": "doc_234259b117854d0194bc5864a6c45b42"
}'
{
"terms": {
"type": "line_of_credit",
"amount": 1000000,
"apr": 0,
"annual_fee": 0,
"billing_cycle": 30,
"finance_charge": 0,
"grace_period": 21,
"grace_period_interest_rate": 0,
"interest_rate": 0,
"late_payment_fee": 0,
"origination_fee": 0,
"term": 24
},
"id": "fac_7264c6575a894548a386939434b0adf3",
"application_id": "app_ad1564ffb1d745f9ad482bb5182708e2",
"borrower_id": "bor_d965bea9f47a4b108562642dbb1dae9f",
"loan_agreement_id": "doc_234259b117854d0194bc5864a6c45b42",
"credit_type": "revolving_line_of_credit",
"status": "active",
"created_on": "2023-01-17T04:59:21.773Z"
}
curl --request POST \
--url https://production.pier-finance.com/api/facilities \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"loan_agreement_id": "doc_234259b117854d0194bc5864a6c45b42"
}'
{
"terms": {
"type": "line_of_credit",
"amount": 1000000,
"apr": 0,
"annual_fee": 0,
"billing_cycle": 30,
"finance_charge": 0,
"grace_period": 21,
"grace_period_interest_rate": 0,
"interest_rate": 0,
"late_payment_fee": 0,
"origination_fee": 0,
"term": 24
},
"id": "fac_7264c6575a894548a386939434b0adf3",
"application_id": "app_ad1564ffb1d745f9ad482bb5182708e2",
"borrower_id": "bor_d965bea9f47a4b108562642dbb1dae9f",
"loan_agreement_id": "doc_234259b117854d0194bc5864a6c45b42",
"credit_type": "revolving_line_of_credit",
"status": "active",
"created_on": "2023-01-17T04:59:21.773Z"
}
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
The response is of type object
.
curl --request POST \
--url https://production.pier-finance.com/api/facilities \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"loan_agreement_id": "doc_234259b117854d0194bc5864a6c45b42"
}'
{
"terms": {
"type": "line_of_credit",
"amount": 1000000,
"apr": 0,
"annual_fee": 0,
"billing_cycle": 30,
"finance_charge": 0,
"grace_period": 21,
"grace_period_interest_rate": 0,
"interest_rate": 0,
"late_payment_fee": 0,
"origination_fee": 0,
"term": 24
},
"id": "fac_7264c6575a894548a386939434b0adf3",
"application_id": "app_ad1564ffb1d745f9ad482bb5182708e2",
"borrower_id": "bor_d965bea9f47a4b108562642dbb1dae9f",
"loan_agreement_id": "doc_234259b117854d0194bc5864a6c45b42",
"credit_type": "revolving_line_of_credit",
"status": "active",
"created_on": "2023-01-17T04:59:21.773Z"
}