Transition account status
Action:POSTEndpoint:
/credit/accounts/{account_token}/accounttransitions
Transition a credit account to a new status.
URL path parameters
| Fields | Description |
|---|---|
| account_token string Required | The unique identifier of the credit account for which to transition a status. Send a GET request to /credit/accounts to retrieve existing credit account tokens.Allowable Values: Existing account token |
Request body
| Fields | Description |
|---|---|
| status string Required | Status of the credit account. NOTE CHARGE_OFF is not an allowable value for original_status.Allowable Values: UNACTIVATED, ACTIVE, SUSPENDED, TERMINATED, CHARGE_OFF |
| token string Optional | Unique identifier of the credit account transition. Allowable Values: 36 char max |
Sample request body
JSON
Response body
| Fields | Description |
|---|---|
| token string Returned | Unique identifier of the credit account transition. Allowable Values: 36 char max |
| account_token string Returned | Unique identifier of the credit account for which to transition a status. Allowable Values: 36 char max |
| original_status string Returned | Status of the credit account prior to transition. Allowable Values: UNACTIVATED, ACTIVE, SUSPENDED, TERMINATED, CHARGE_OFF |
| status string Returned | Status to which the credit account transitioned. Allowable Values: UNACTIVATED, ACTIVE, SUSPENDED, TERMINATED, CHARGE_OFF |
| created_time datetime Returned | Date and time when the transition record was created on Marqeta’s credit platform, in UTC. Allowable Values: Format: yyyy-MM-ddThh:mm:ssZ |
Sample response body
JSON
List account transitions
Action:GETEndpoint:
/credit/accounts/{account_token}/accounttransitions
Retrieve an array of transitions on a credit account.
This endpoint supports sorting and pagination.
URL path parameters
| Fields | Description |
|---|---|
| account_token string Required | The unique identifier of the credit account for which you want to retrieve transitions. Send a GET request to /credit/accounts to retrieve existing credit account tokens.Allowable Values: Existing account token |
URL query parameters
| Fields | Description |
|---|---|
| count integer Optional | The number of resources to retrieve. Allowable Values: 1–100 |
| start_index integer Optional | Sort order index of the first resource in the returned array. Allowable Values: 0 min |
| sort_by string Optional | Field on which to sort. Prefix the field name with a hyphen (-) to sort in descending order. Omit the hyphen to sort in ascending order.NOTE: You must sort using system field names such as createdTime, and not by the field names appearing in response bodies such as created_time.Allowable Values: createdTime, -createdTime |
Response body
| Fields | Description |
|---|---|
| count integer Returned | Number of resources returned. Allowable Values: 1-10 |
| start_index integer Returned | Sort order index of the first resource in the returned array. Allowable Values: Any integer |
| end_index integer Returned | Sort order index of the last resource in the returned array. Allowable Values: Any integer |
| is_more boolean Returned | A value of true indicates that more unreturned resources exist.Allowable Values: true, false |
| data array of objects Returned | Contains one or more account transitions. Allowable Values: One or more account transition objects |
| data[].token string Returned | Unique identifier of the credit account transition. Allowable Values: 36 char max |
| data[].account_token string Returned | Unique identifier of the credit account for which to transition a status. Allowable Values: 36 char max |
| data[].original_status string Returned | Status of the credit account prior to transition. Allowable Values: UNACTIVATED, ACTIVE, SUSPENDED, TERMINATED, CHARGE_OFF |
| data[].status string Returned | Status to which the credit account transitioned. Allowable Values: UNACTIVATED, ACTIVE, SUSPENDED, TERMINATED, CHARGE_OFF |
| data[].created_time datetime Returned | Date and time when the transition record was created on Marqeta’s credit platform, in UTC. Allowable Values: Format: yyyy-MM-ddThh:mm:ssZ |
Sample response body
JSON
Retrieve account transition
Action:GETEndpoint:
/credit/accounts/{account_token}/accounttransitions/{token}
Retrieve a transition for a credit account.
URL path parameters
| Fields | Description |
|---|---|
| account_token string Required | The unique identifier of the credit account for which you want to retrieve a transition. Send a GET request to /credit/accounts to retrieve existing credit account tokens.Allowable Values: Existing account token |
| token string Required | The unique identifier of the account transition you want to retrieve. Send a GET request to /credit/accounts/{account_token}/accounttransitions to retrieve existing account transition tokens.Allowable Values: Existing account transition token |
Response body
| Fields | Description |
|---|---|
| token string Returned | Unique identifier of the credit account transition. Allowable Values: 36 char max |
| account_token string Returned | Unique identifier of the credit account for which to transition a status. Allowable Values: 36 char max |
| original_status string Returned | Status of the credit account prior to transition. Allowable Values: UNACTIVATED, ACTIVE, SUSPENDED, TERMINATED, CHARGE_OFF |
| status string Returned | Status to which the credit account transitioned. Allowable Values: UNACTIVATED, ACTIVE, SUSPENDED, TERMINATED, CHARGE_OFF |
| created_time datetime Returned | Date and time when the transition record was created on Marqeta’s credit platform, in UTC. Allowable Values: Format: yyyy-MM-ddThh:mm:ssZ |
Sample response body
JSON
Resend credit event notification
Action:POSTEndpoint:
/credit/webhooks/{event_type}/{resource_token}
Resends a credit event notification to your webhook endpoint.
Although you send this request as a POST, all parameters are passed in the URL and the body is empty. The event notification is resent to your webhook endpoint and also returned in the response to this request.
For details on how to configure your webhook endpoint, see the About Webhooks tutorial. For the complete /webhooks endpoint reference, see Webhooks.
URL path parameters
| Fields | Description |
|---|---|
| event_type string Required | Specifies the type of event you want to resend. Allowable Values: ledgerentry, journalentry, accounttransition, accountstatement, paymenttransition, delinquencytransition |
| resource_token string Required | The unique identifier of the resource for which you want to resend a notification. Send a GET request to /credit/accounts/{account_token}/journalentries to retrieve existing journal entry tokens.Send a GET request to /credit/accounts/{account_token}/ledgerentries to retrieve existing ledger entry tokens.Send a GET request to /accounts/{account_token}/accounttransitions to retrieve existing account transition tokens.Send a GET request to /credit/accounts/{account_token}/payments/{payment_token} to retrieve existing payment transition tokens.Send a GET request to /accounts/{account_token}/statements to retrieve existing statement summary tokens.Send a GET request to /accounts/{account_token}/delinquencystate/transitions to retrieve existing delinquency transition tokens.Allowable Values: Existing journal entry token, ledger entry token, account transition token, payment transition token, statement summary token, or delinquency transition token |
Response body
| Fields | Description |
|---|---|
| unused string Conditionally returned | The event notification that was resent to your webhook endpoint. Allowable Values: Valid event notification |
Sample response body
The following code block shows a sample of a resentcreditaccounttransitions event.
JSON
creditaccountstatements event.
JSON
creditjournalentries event.
JSON
creditledgerentries event.
JSON
creditpaymenttransitions event.
JSON
creditdelinquencytransitions event.
JSON