Skip to main content
POST
Create substatus
POST//
Create a new substatus for a credit account, user, or business.

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 substatus.

events
object[]
required

List of events related to the substatus.

substatus
string
required

Type of substatus.

  • HARDSHIP, FRAUD, CEASE_AND_DESIST, BLOCKED, OPT_OUT, DO_NOT_CALL, DO_NOT_TEXT, SETTLEMENT_PROGRAM, DEBT_SETTLEMENT_AGENCY, NATURAL_DISASTER, and DEBT_VALIDATION can only be applied to the ACCOUNT resource type.
  • MLA, SCRA and DECEASED can only be applied to the USER resource type.
  • POWER_OF_ATTORNEY and BANKRUPTCY can be applied to either the USER or the BUSINESS resource type.
Required string length: 1 - 36
resource_type
enum<string>
required

Type of resource to which the substatus can be applied.

Available options:
USER,
ACCOUNT,
BUSINESS
resource_token
string
required

Unique identifier of the user or account or business for which you want to create a substatus.

  • Send a GET request to /credit/accounts to retrieve existing account tokens.
  • Send a GET request to /users to retrieve existing user tokens.
  • Send a GET request to /business to retrieve existing business tokens.
Required string length: 1 - 36
token
string

Unique identifier of the credit substatus.

Maximum string length: 36
Pattern: (?!^ +$)^.+$
attributes
SubstatusCreateReqAttributes · object[]

Additional dynamic attributes related to the substatus. If the substatus is BANKRUPTCY, SCRA or POWER_OF_ATTORNEY, then attributes are required. petition_date, attorney_name, discharge_date and deceased_certificate_received_at are rejected here; send them with PUT when the substatus moves to their state.

Response

Expected response to a valid request.

Contains information about the substatus.

state
enum<string>
required

Current state of the substatus.

Available options:
ACTIVE,
INACTIVE,
DECEASED_REPORTED,
DECEASED_CONFIRMED,
FRAUD_REPORTED,
FRAUD_CONFIRMED,
BANKRUPTCY_PENDING,
BANKRUPTCY_PENDING_INACTIVE,
BANKRUPTCY_FILED,
BANKRUPTCY_WITHDRAWN,
BANKRUPTCY_REAFFIRMED,
BANKRUPTCY_REAFFIRM_RESCINDED,
BANKRUPTCY_DISCHARGED,
BANKRUPTCY_DISMISSED,
BANKRUPTCY_FILED_INACTIVE,
BANKRUPTCY_WITHDRAWN_INACTIVE,
BANKRUPTCY_REAFFIRMED_INACTIVE,
BANKRUPTCY_REAFFIRM_RESCINDED_INACTIVE,
BANKRUPTCY_DISCHARGED_INACTIVE,
BANKRUPTCY_DISMISSED_INACTIVE
token
string
required

Unique identifier of the credit substatus.

Maximum string length: 36
is_active
boolean
required

Denotes whether a substatus is active.

substatus
string
required

Type of substatus.

Maximum string length: 36
resource_type
enum<string>
required

Type of resource to which the substatus is applied.

Available options:
ACCOUNT,
USER,
BUSINESS
resource_token
string
required

Unique identifier of the resource.

Maximum string length: 36
events
object[]

List of events related to the substatus.

attributes
SubstatusResponseAttributes · object[]

Additional dynamic attributes related to the substatus.

If the substatus is BANKRUPTCY, SCRA, or POWER_OF_ATTORNEY, then attributes are present. A DECEASED substatus has attributes if they were sent when it moved to DECEASED_CONFIRMED.

created_time
string<date-time>

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

updated_time
string<date-time>

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