v3

latestOpenAPI 3.0.3Apache 2.02026-07-312637031.3 MB
Accounts

Patch account template

Patch account template

patch/accounts/templates/{template_id}

Path parameters

template_idstring uuid required
Example:a8943c51-e4ff-4e57-9558-08cab6b963c0

Account Template ID

Request body

descriptionstring

User provided account template description

is_enabledboolean

Whether this template can be used for account creation

namestring

Unique account template name

Example request

{
  "template": {
    "spend_control_ids": [
      "7d943c51-e4ff-4e57-9558-08cab6b963c7"
    ],
    "vendor_info": {
      "vendor_data": {
        "loanpro": {
          "cash_advance_bucket_id": 67890,
          "loc_product_id": 67890,
          "purchases_bucket_id": 12345,
          "tenant_id": "1"
        }
      },
      "vendor_type": "LOANPRO"
    }
  }
}

Response

Patch Account template

application_type'CREDIT' | 'LINE_OF_CREDIT' | 'RESTRICTED_ACCOUNT'

The type of the application to require.

  • CREDIT: Credit application
  • LINE_OF_CREDIT: (Deprecated) Line of credit application (if provided, this will be converted to a CREDIT type in the response)
  • RESTRICTED_ACCOUNT: restricted account application
descriptionstring

Account template description

idstring uuid

Generated ID for the template

is_enabledboolean required

Whether this template can be used for account creation

namestring required

Unique account template name

tenantstring

The id of the tenant containing the resource. This is relevant for Fintechs that have multiple workspaces.

Example response

{
  "template": {
    "auto_payment_period": 20,
    "bank_country": "US",
    "billing_period": {
      "start_date": "2022-01-01T00:00:00Z"
    },
    "currency": "USD",
    "spend_control_ids": [
      "7d943c51-e4ff-4e57-9558-08cab6b963c7"
    ],
    "vendor_info": {
      "vendor_data": {
        "loanpro": {
          "cash_advance_bucket_id": 67890,
          "loc_product_id": 67890,
          "purchases_bucket_id": 12345,
          "tenant_id": "1"
        }
      },
      "vendor_type": "LOANPRO"
    }
  },
  "tenant": "abcdef_ghijkl"
}