GET////
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
{
"count": 1,
"start_index": 0,
"end_index": 0,
"is_more": false,
"data": [
{
"token": "my_account_transition_token1234",
"account_token": "my_account_token_12",
"original_status": "UNACTIVATED",
"status": "ACTIVE",
"created_time": "2021-09-03T19:22:45Z"
}
]
}