Retrieve account transition
curl --request GET \
--url https://sandbox-api.marqeta.com/v3/credit/accounts/{account_token}/accounttransitions/{token} \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://sandbox-api.marqeta.com/v3/credit/accounts/{account_token}/accounttransitions/{token}"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://sandbox-api.marqeta.com/v3/credit/accounts/{account_token}/accounttransitions/{token}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox-api.marqeta.com/v3/credit/accounts/{account_token}/accounttransitions/{token}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox-api.marqeta.com/v3/credit/accounts/{account_token}/accounttransitions/{token}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox-api.marqeta.com/v3/credit/accounts/{account_token}/accounttransitions/{token}")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.marqeta.com/v3/credit/accounts/{account_token}/accounttransitions/{token}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"token": "my_account_transition_token1234",
"status": "ACTIVE",
"created_time": "2021-09-03T19:22:45.290Z",
"account_token": "my_account_token_12",
"original_status": "UNACTIVATED"
}{
"code": 123,
"message": "<string>"
}Account Transitions
Retrieve account transition
Retrieve a transition for a credit account.
GET
/
credit
/
accounts
/
{account_token}
/
accounttransitions
/
{token}
Retrieve account transition
curl --request GET \
--url https://sandbox-api.marqeta.com/v3/credit/accounts/{account_token}/accounttransitions/{token} \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://sandbox-api.marqeta.com/v3/credit/accounts/{account_token}/accounttransitions/{token}"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://sandbox-api.marqeta.com/v3/credit/accounts/{account_token}/accounttransitions/{token}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox-api.marqeta.com/v3/credit/accounts/{account_token}/accounttransitions/{token}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox-api.marqeta.com/v3/credit/accounts/{account_token}/accounttransitions/{token}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox-api.marqeta.com/v3/credit/accounts/{account_token}/accounttransitions/{token}")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.marqeta.com/v3/credit/accounts/{account_token}/accounttransitions/{token}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"token": "my_account_transition_token1234",
"status": "ACTIVE",
"created_time": "2021-09-03T19:22:45.290Z",
"account_token": "my_account_token_12",
"original_status": "UNACTIVATED"
}{
"code": 123,
"message": "<string>"
}GET/////
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
{
"token": "my_account_transition_token1234",
"account_token": "my_account_token_12",
"original_status": "UNACTIVATED",
"status": "ACTIVE",
"created_time": "2021-09-03T19:22:45Z"
}
Authorizations
Path Parameters
Response
A JSON object containing account transition record.
Information on the credit account transition.
The reason for the account transition.
Available options:
FRAUD_REPORTED, FRAUD_CONFIRMED, DECEASED_REPORTED, DECEASED_CONFIRMED, BANKRUPTCY_FILED, BANKRUPTCY_PENDING, PAST_DUE_THRESHOLD_REACHED, PAST_DUE_ESCALATION, PAST_DUE_CURED, SEVERELY_DELINQUENT, BUREAU_BANKRUPTCY, BUREAU_TAX_LIEN, BUREAU_DECEASED, BUREAU_CHARGEOFF, BUREAU_COLLECTIONS, BUREAU_DELINQUENCY, VOLUNTARY_CLOSURE, API, UNKNOWN Was this page helpful?