curl --request PATCH \
--url https://api.sandbox.lead.bank/v0/applications/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"metadata": {
"external_id": "APP-2024-001"
}
}
'{
"id": "application_xyz123",
"client_application_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"status": "approved",
"entities": {
"account_holder_type": "commercial",
"account_holders": [
"entity_xyz123"
],
"authorized_signers": [
"entity_xyz123"
]
},
"details": {
"product_name": "Growth Business Credit Line",
"credit": {
"is_secured": true,
"is_mla": true,
"currency": "AED",
"underwriting_grade": "99",
"limit": 5000000,
"max_limit": 10000000,
"report": {
"score": 575,
"non_score_value": "unestablished",
"pulled_at": "2023-11-07T05:31:56Z",
"source": "equifax"
}
},
"adverse_action_notice": {
"delivered_at": "2023-11-07T05:31:56Z",
"reason": "<string>",
"delivery_method": "email"
}
},
"decision": {
"decided_at": "2023-11-07T05:31:56Z",
"reason": "<string>",
"exception_approval_reason": "<string>"
},
"documents": [
{
"document_id": "document_2N5Hk8xYmQpL9rBvC3jD",
"type": "aan",
"displayed_at": "2023-11-07T05:31:56Z",
"consented_at": "2023-11-07T05:31:56Z",
"version": "v1"
}
],
"metadata": {}
}{
"code": "<string>",
"title": "<string>",
"detail": "<string>",
"status": "<string>",
"invalid_parameters": [
{
"parameter": "transaction_type",
"reason": "<string>"
}
],
"instance": "<string>"
}{
"code": "<string>",
"title": "<string>",
"detail": "<string>",
"status": "<string>",
"invalid_parameters": [
{
"parameter": "transaction_type",
"reason": "<string>"
}
],
"instance": "<string>"
}{
"code": "<string>",
"title": "<string>",
"detail": "<string>",
"status": "<string>",
"invalid_parameters": [
{
"parameter": "transaction_type",
"reason": "<string>"
}
],
"instance": "<string>"
}{
"code": "<string>",
"title": "<string>",
"detail": "<string>",
"status": "<string>",
"invalid_parameters": [
{
"parameter": "transaction_type",
"reason": "<string>"
}
],
"instance": "<string>"
}{
"code": "<string>",
"title": "<string>",
"detail": "<string>",
"status": "<string>",
"invalid_parameters": [
{
"parameter": "transaction_type",
"reason": "<string>"
}
],
"instance": "<string>"
}{
"code": "<string>",
"title": "<string>",
"detail": "<string>",
"status": "<string>",
"invalid_parameters": [
{
"parameter": "transaction_type",
"reason": "<string>"
}
],
"instance": "<string>"
}{
"code": "<string>",
"title": "<string>",
"detail": "<string>",
"status": "<string>",
"invalid_parameters": [
{
"parameter": "transaction_type",
"reason": "<string>"
}
],
"instance": "<string>"
}{
"code": "<string>",
"title": "<string>",
"detail": "<string>",
"status": "<string>",
"invalid_parameters": [
{
"parameter": "transaction_type",
"reason": "<string>"
}
],
"instance": "<string>"
}Update an Application
Updates properties on an existing application.
Uses JSON Merge Patch semantics (RFC 7396): omitted fields are unchanged, explicit values overwrite, nested objects merge recursively.
Note: Entity relationships are set when the application is created and cannot be modified afterward. There is no endpoint for adding or removing entity relationships on an existing application; GET /v0/applications//entity_relationships is read-only.
Idempotency
The Idempotency-Key header is required.
curl --request PATCH \
--url https://api.sandbox.lead.bank/v0/applications/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"metadata": {
"external_id": "APP-2024-001"
}
}
'{
"id": "application_xyz123",
"client_application_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"status": "approved",
"entities": {
"account_holder_type": "commercial",
"account_holders": [
"entity_xyz123"
],
"authorized_signers": [
"entity_xyz123"
]
},
"details": {
"product_name": "Growth Business Credit Line",
"credit": {
"is_secured": true,
"is_mla": true,
"currency": "AED",
"underwriting_grade": "99",
"limit": 5000000,
"max_limit": 10000000,
"report": {
"score": 575,
"non_score_value": "unestablished",
"pulled_at": "2023-11-07T05:31:56Z",
"source": "equifax"
}
},
"adverse_action_notice": {
"delivered_at": "2023-11-07T05:31:56Z",
"reason": "<string>",
"delivery_method": "email"
}
},
"decision": {
"decided_at": "2023-11-07T05:31:56Z",
"reason": "<string>",
"exception_approval_reason": "<string>"
},
"documents": [
{
"document_id": "document_2N5Hk8xYmQpL9rBvC3jD",
"type": "aan",
"displayed_at": "2023-11-07T05:31:56Z",
"consented_at": "2023-11-07T05:31:56Z",
"version": "v1"
}
],
"metadata": {}
}{
"code": "<string>",
"title": "<string>",
"detail": "<string>",
"status": "<string>",
"invalid_parameters": [
{
"parameter": "transaction_type",
"reason": "<string>"
}
],
"instance": "<string>"
}{
"code": "<string>",
"title": "<string>",
"detail": "<string>",
"status": "<string>",
"invalid_parameters": [
{
"parameter": "transaction_type",
"reason": "<string>"
}
],
"instance": "<string>"
}{
"code": "<string>",
"title": "<string>",
"detail": "<string>",
"status": "<string>",
"invalid_parameters": [
{
"parameter": "transaction_type",
"reason": "<string>"
}
],
"instance": "<string>"
}{
"code": "<string>",
"title": "<string>",
"detail": "<string>",
"status": "<string>",
"invalid_parameters": [
{
"parameter": "transaction_type",
"reason": "<string>"
}
],
"instance": "<string>"
}{
"code": "<string>",
"title": "<string>",
"detail": "<string>",
"status": "<string>",
"invalid_parameters": [
{
"parameter": "transaction_type",
"reason": "<string>"
}
],
"instance": "<string>"
}{
"code": "<string>",
"title": "<string>",
"detail": "<string>",
"status": "<string>",
"invalid_parameters": [
{
"parameter": "transaction_type",
"reason": "<string>"
}
],
"instance": "<string>"
}{
"code": "<string>",
"title": "<string>",
"detail": "<string>",
"status": "<string>",
"invalid_parameters": [
{
"parameter": "transaction_type",
"reason": "<string>"
}
],
"instance": "<string>"
}{
"code": "<string>",
"title": "<string>",
"detail": "<string>",
"status": "<string>",
"invalid_parameters": [
{
"parameter": "transaction_type",
"reason": "<string>"
}
],
"instance": "<string>"
}Mutable Fields
The following top-level fields accept updates on this endpoint.| Field | Notes |
|---|---|
status | Correct a previously reported terminal state. Allowed values: approved, declined, canceled. |
details | Partial update of product_name, credit, and adverse_action_notice. Subfields merge recursively per JSON Merge Patch. |
decision | Partial update of the decision sub-object. |
documents | Replaces the entire array. To add or remove a single document, send the full intended array. |
metadata | Replaces the entire metadata object. |
POST /v0/applications. See Applications API validations for the rule set.
Immutable Fields
The following fields cannot be modified after the application is created.id— Server-generated on creation.created_at,updated_at— Server-managed timestamps.entities(account holders, authorized signers, authorized users) — Set when the application is created and immutable afterward. There is no endpoint for adding or removing entity relationships on an existing application;GET /v0/applications/{id}/entity_relationshipsis read-only.
422 parameters_invalid with the offending field name in invalid_parameters.
Idempotency
TheIdempotency-Key header is required on every request.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Unique key to ensure idempotent requests
255Path Parameters
Application ID
Unique identifier for the application. Prefixed with application_.
^application_\w+$"application_xyz123"
Body
Request body for updating an existing application
Terminal state of the application. Possible values: approved, declined, canceled.
approved, declined, canceled Details for updating an application (all fields optional)
Show child attributes
Show child attributes
Decision-related information for the application
Show child attributes
Show child attributes
Documents associated with the application
Document reference for creating applications and accounts.
One of displayed_at or consented_at is required depending on document type:
displayed_at: Required for aan, loan_agreement, loc_agreement, truth_in_lending_document, ach_authorization, notice_of_incompleteness, credit_score_notice, offer_summary, personal_guarantee, consumer_credit_auth, partner_privacy_policy, lead_privacy_policy, terms_of_use, fcra_notice, tcpa_consent, patriot_act_notice, mla_notice, pre_approval_terms, eft_authorization, prohibited_industry_certification, decision_maker_document, bo_certification, missed_payments_policy, lead_funds_transfer_agreement, periodic_statementconsented_at: Required for esign_agreement, credit_pull_consent, consent_to_link_account, consent_to_link_hsa, negative_option_consent, deposit_agreement, cardholder_agreement, autopay_authorization
- Disclosure
- Consent
Show child attributes
Show child attributes
Arbitrary metadata associated with the application
Show child attributes
Show child attributes
Response
Application updated successfully.
An application object representing a credit application
Unique identifier for the application. Prefixed with application_.
^application_\w+$"application_xyz123"
Client-provided identifier for the application. Optional: present only for applications created via file upload, and omitted for applications created through the API, which are identified solely by their server-generated ID.
Lead server-generated ISO 8601 timestamp when the application was created.
Lead server-generated ISO 8601 timestamp when the application was last updated.
Terminal state of the application. Possible values: approved, declined, canceled.
approved, declined, canceled Entity relationships associated with the application (response only)
Show child attributes
Show child attributes
Application details (response, all properties optional)
Show child attributes
Show child attributes
Decision-related information (response, all properties optional)
Show child attributes
Show child attributes
Documents associated with the application
Show child attributes
Show child attributes
Arbitrary metadata associated with the application
Show child attributes
Show child attributes
Was this page helpful?

