PUT
/
accounts
/
templates
/
{template_id}
Update account template
curl --request PUT \
  --url https://api-sandbox.synctera.com/v0/accounts/templates/{template_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "application_type": "CREDIT",
  "description": "<string>",
  "is_enabled": true,
  "name": "<string>",
  "template": {
    "account_type": "CHARGE_SECURED",
    "bank_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "bank_country": "US",
    "currency": "USD"
  }
}'
{
  "application_type": "CREDIT",
  "description": "<string>",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "is_enabled": true,
  "name": "<string>",
  "template": {
    "account_type": "CHARGE_SECURED",
    "auto_payment_period": 20,
    "balance_ceiling": {
      "balance": 1,
      "linked_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "overflow_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    },
    "balance_floor": {
      "balance": 123,
      "linked_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "overdraft_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    },
    "bank_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "bank_country": "US",
    "billing_period": {
      "frequency": "ANNUALLY",
      "start_date": "2022-01-01T00:00:00Z"
    },
    "currency": "USD",
    "fee_product_ids": [
      "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    ],
    "grace_period": 21,
    "interest_product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "is_ach_enabled": false,
    "is_card_enabled": false,
    "is_eft_ca_enabled": true,
    "is_external_card_enabled": false,
    "is_p2p_enabled": false,
    "is_sar_enabled": false,
    "is_synctera_pay_enabled": false,
    "is_wire_enabled": false,
    "minimum_payment": {
      "min_amount": 123,
      "rate": 123,
      "type": "FULL"
    },
    "overdraft_limit": 1,
    "spend_control_ids": [
      "7d943c51-e4ff-4e57-9558-08cab6b963c7"
    ],
    "spending_limits": {
      "day": {
        "amount": 1,
        "transactions": 1
      },
      "description": "<string>",
      "lifetime": {
        "amount": 1,
        "transactions": 1
      },
      "month": {
        "amount": 1,
        "transactions": 1
      },
      "transaction": {
        "amount": 1
      },
      "week": {
        "amount": 1,
        "transactions": 1
      }
    }
  },
  "tenant": "abcdef_ghijkl"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

template_id
string<uuid>
required

Account Template ID

Example:

"a8943c51-e4ff-4e57-9558-08cab6b963c0"

Body

application/json

Account template to update

is_enabled
boolean
required

Whether this template can be used for account creation

name
string
required

Unique account template name

template
object
required

In production, general ledger account templates can only be created or updated by a Synctera administrator. General ledger account templates are in Alpha status, and cannot yet be created. We may make breaking changes.

application_type
enum<string>

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
Available options:
CREDIT,
LINE_OF_CREDIT,
RESTRICTED_ACCOUNT
description
string

User provided account template description

Response

200 - application/json

Account template updated

is_enabled
boolean
required

Whether this template can be used for account creation

name
string
required

Unique account template name

template
object
required
application_type
enum<string>

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
Available options:
CREDIT,
LINE_OF_CREDIT,
RESTRICTED_ACCOUNT
description
string

Account template description

id
string<uuid>

Generated ID for the template

tenant
string

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

Example:

"abcdef_ghijkl"