Skip to main content
POST
Create account
POST//
Create a new credit account.

Request body

Sample request body

JSON

Response body

Sample response body

JSON

Authorizations

Authorization
string
header
required

Token used to verify user identity and also authorize user to use service

Body

application/json

Contains information relevant to creating a credit account.

usages
object[]
required

Contains one or more usages objects that contain information on how a credit account is used and what types of balances are permitted on the account.

You can pass only one usages object per usages.type.

Minimum array length: 1
user_token
string
required

Unique identifier of the primary account holder or an administrative user of a business account.

You must pass user_token only.

credit_limit
number
required

Maximum balance the credit account can carry.

Required range: 0 < x <= 1000000
name
string

Name of the credit account.

Maximum string length: 255
token
string

Unique identifier of the credit account.

Maximum string length: 36
Pattern: (?!^ +$)^.+$
config
object

Contains information relevant for configuring an account's billing cycle day, payment due day, fees, and more.

description
string

Description for the credit account.

Maximum string length: 255
bundle_token
string

Unique identifier of the associated bundle.

You must pass either bundle_token or both credit_product_token and external_offer_id.

business_token
string

Unique identifier of the parent business program.

You must pass either user_token only, or both user_token and business_token.

apr_upper_limit
number

Maximum APR percentage value that can be applied to the credit account.

Required range: 0 <= x <= 100
application_token
string

Unique identifier of the associated credit account application.

Maximum string length: 36
external_offer_id
string

Unique identifier you provide of the associated external credit offer.

This field is required if passing credit_product_token.

You must pass both external_offer_id and credit_product_token, or bundle_token only.

Maximum string length: 36
credit_product_token
string

Unique identifier of the associated credit product.

This field is required if passing external_offer_id.

You must pass both credit_product_token and external_offer_id, or bundle_token only.

secured_account_token
string

Unique identifier of the secured account. This field is required when policy product subtype is SECURED.

Maximum string length: 36

Response

Expected response

Contains information on a credit account.

type
enum<string>
required

Type of credit account.

Available options:
CONSUMER,
BUSINESS
token
string
required

Unique identifier of the credit account.

Maximum string length: 36
config
object
required

Contains information returned when configuring an account's billing cycle day, payment due day, fees, and more.

status
enum<string>
required

Status of the credit account.

Available options:
UNACTIVATED,
ACTIVE,
SUSPENDED,
TERMINATED,
CHARGE_OFF
created_time
string<date-time>
required

Date and time when the credit account was created on Marqeta's credit platform, in UTC.

updated_time
string<date-time>
required

Date and time when the credit account was last updated on Marqeta's credit platform, in UTC.

currency_code
enum<string>
default:USD
required

Valid three-digit link:https://www.iso.org/iso-4217-currency-codes.html[ISO 4217 currency code, window="_blank"].

Available options:
USD
name
string

Name of the credit account.

usages
object[]

Contains one or more usages objects that contain information on how a credit account is used and what types of balances are permitted on the account. Optional for light responses.

user_token
string

Unique identifier of the primary account holder or an administrative user of a business account.

Either a user_token or business_token is returned, not both.

description
string

Description for the credit account.

substatuses
string[]

Substatuses of the credit account.

Substatus of the credit account.

bundle_token
string

Unique identifier of the associated bundle product.

credit_limit
number

Maximum balance the credit account can carry. Optional for light responses.

Required range: 0 < x <= 1000000
business_token
string

Unique identifier of the parent business program.

Either a user_token or business_token is returned, not both.

activation_time
string<date-time>

Date and time when the credit account was activated on Marqeta's credit platform, in UTC.

apr_upper_limit
number

Maximum APR percentage value that can be applied to the credit account.

Required range: 0 <= x <= 100
current_balance
number

Current purchase balance on the credit account. Optional for light responses.

pending_balance
number

Sum of all pending transactions that have been authorized but not yet settled on the credit account. Optional for light responses.

available_credit
number

Amount of credit available for use on the credit account. Optional for light responses.

user_substatuses
string[]

Substatuses of the users under the credit account.

Substatus of the user under the credit account.

external_offer_id
string

Unique identifier you provide of the associated external credit offer.

max_apr_schedules
object[]

Contains max_apr_schedule objects, which provide information about any temporary overrides of the APRs on the credit account. This could include special APR rates due to account/user substatus changes.

business_substatuses
string[]

Substatuses of the business under the credit account.

Substatus of the business under the credit account.

credit_product_token
string

Unique identifier of the associated credit product.

secured_account_token
string

Unique identifier of the secured account.

Maximum string length: 36
remaining_min_payment_due
number

Amount remaining on the latest statement's minimum payment after it is adjusted for payments, returned payments, and applicable credits that occurred after the latest statement's closing date. Optional for light responses.

latest_statement_cycle_type
enum<string>

Type of cycle.

  • BEGINNING_REVOLVING - Account is beginning to revolve and just started carrying a balance from the previous month.
  • REVOLVING - Account is revolving and has been carrying a balance from month to month for more than one month.
  • END_REVOLVING - Account is no longer revolving and the previous month's balance is paid off.
  • TRANSACTING - Account is not revolving and the balance is paid off each month.
  • NON_REVOLVING - Account never revolves; interest is not charged regardless of carried balance. Applies to charge card accounts.
Available options:
BEGINNING_REVOLVING,
REVOLVING,
END_REVOLVING,
TRANSACTING,
NON_REVOLVING
remaining_statement_balance
number

Amount remaining on the latest statement's balance after it is adjusted for payments, returned payments, and applicable credits that occurred after the latest statement's closing date. Optional for light responses.