Skip to main content
PATCH
/
v1
/
businesses
/
{businessId}
/
loans
/
{loanId}
/
proceeds
/
{proceedId}
Update a loan proceed
curl --request PATCH \
  --url https://sandbox.layerfi.com/v1/businesses/{businessId}/loans/{loanId}/proceeds/{proceedId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount": 123,
  "date": "2023-12-25",
  "memo": "<string>",
  "metadata": {},
  "reference_number": "<string>"
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "business_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "loan_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "amount": 123,
    "date": "2023-12-25",
    "transaction_tags": [
      {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "key": "ExampleTagKey",
        "value": "ExampleTagValue",
        "dimension_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "definition_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "dimension_display_name": "<string>",
        "value_display_name": "<string>",
        "archived_at": "2023-11-07T05:31:56Z"
      }
    ],
    "external_id": "<string>",
    "asset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "archived_at": "2023-11-07T05:31:56Z",
    "memo": "<string>",
    "metadata": {},
    "reference_number": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

businessId
string<uuid>
required

The UUID of the business.

loanId
string<uuid>
required

The UUID of the loan.

proceedId
string<uuid>
required

The UUID of the loan proceed.

Body

application/json

The proceed fields to update.

Parameters for updating a loan proceed. Only include the fields you want to change.

amount
integer<int64>

Updated proceed amount, in cents.

date
string<date>

Updated proceed date.

method
enum<string>

Updated payment method.

Available options:
CASH,
CHECK,
CREDIT_CARD,
ACH,
CREDIT_BALANCE,
OTHER
memo
string | null

Updated internal note.

metadata
object

Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged.

reference_number
string | null

Updated reference number.

Response

200 - application/json

The updated loan proceed.

data
object
required

A loan proceed: funds (or an asset) received when a loan is drawn. See the Loan Proceed object.