curl --request POST \
--url https://api-sandbox.synctera.com/v0/accounts/templates \
--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"
}
Create an account template. An account template is needed to create an account in a lead mode.
curl --request POST \
--url https://api-sandbox.synctera.com/v0/accounts/templates \
--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"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
An idempotency key is an arbitrary unique value generated by client to detect subsequent retries of the same request. It is recommended that a UUID or a similar random identifier be used as an idempotency key. A different key must be used for each request, unless it is a retry.
"7d943c51-e4ff-4e57-9558-08cab6b963c7"
Account template to create
The body is of type object
.
Account template created
The response is of type object
.
Was this page helpful?