Transition a bundle
curl --request POST \
--url https://sandbox-api.marqeta.com/v3/credit/bundles/{token}/transitions \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"status": "PENDING_APPROVAL"
}
'import requests
url = "https://sandbox-api.marqeta.com/v3/credit/bundles/{token}/transitions"
payload = { "status": "PENDING_APPROVAL" }
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({status: 'PENDING_APPROVAL'})
};
fetch('https://sandbox-api.marqeta.com/v3/credit/bundles/{token}/transitions', 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/bundles/{token}/transitions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'status' => 'PENDING_APPROVAL'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox-api.marqeta.com/v3/credit/bundles/{token}/transitions"
payload := strings.NewReader("{\n \"status\": \"PENDING_APPROVAL\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox-api.marqeta.com/v3/credit/bundles/{token}/transitions")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"status\": \"PENDING_APPROVAL\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.marqeta.com/v3/credit/bundles/{token}/transitions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"status\": \"PENDING_APPROVAL\"\n}"
response = http.request(request)
puts response.read_body{
"token": "my_transition_token_1234",
"status": "PENDING_APPROVAL",
"bundle_token": "my_bundle_token_1234",
"created_time": "2025-06-04T05:59:14.979Z",
"original_status": "DRAFT"
}{
"code": 123,
"message": "<string>"
}Bundles
Transition a bundle
Transition the status of a specific bundle.
POST
/
credit
/
bundles
/
{token}
/
transitions
Transition a bundle
curl --request POST \
--url https://sandbox-api.marqeta.com/v3/credit/bundles/{token}/transitions \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"status": "PENDING_APPROVAL"
}
'import requests
url = "https://sandbox-api.marqeta.com/v3/credit/bundles/{token}/transitions"
payload = { "status": "PENDING_APPROVAL" }
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({status: 'PENDING_APPROVAL'})
};
fetch('https://sandbox-api.marqeta.com/v3/credit/bundles/{token}/transitions', 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/bundles/{token}/transitions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'status' => 'PENDING_APPROVAL'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox-api.marqeta.com/v3/credit/bundles/{token}/transitions"
payload := strings.NewReader("{\n \"status\": \"PENDING_APPROVAL\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox-api.marqeta.com/v3/credit/bundles/{token}/transitions")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"status\": \"PENDING_APPROVAL\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.marqeta.com/v3/credit/bundles/{token}/transitions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"status\": \"PENDING_APPROVAL\"\n}"
response = http.request(request)
puts response.read_body{
"token": "my_transition_token_1234",
"status": "PENDING_APPROVAL",
"bundle_token": "my_bundle_token_1234",
"created_time": "2025-06-04T05:59:14.979Z",
"original_status": "DRAFT"
}{
"code": 123,
"message": "<string>"
}POST////
Transition the status of a specific bundle.
URL path parameters
| Fields | Description |
|---|---|
| token string Required | Token of the bundle whose status you want to transition. Send a GET request to /credit/bundles to retrieve existing tokens.Allowable Values: Existing bundle token |
Request body
| Fields | Description |
|---|---|
| status string Required | Status of the bundle. - DRAFT - The bundle is in the process of being created.- PENDING_APPROVAL - The bundle has been created and is awaiting approval.- SENT_FOR_REVISION - The bundle has been returned for revision.- ACTIVE - The bundle is active.- REJECTED - The bundle has been rejected; this status cannot be changed.- ARCHIVED - The previously active bundle has been archived.- APPROVED - The bundle has been approved (after having been sent for approval).Allowable Values: DRAFT, PENDING_APPROVAL, SENT_FOR_REVISION, ACTIVE, REJECTED, ARCHIVED, APPROVED |
Sample request body
JSON
{
"status": "PENDING_APPROVAL"
}
Response body
| Fields | Description |
|---|---|
| token string Conditionally returned | Unique identifier of the bundle transition. Allowable Values: 36 char max |
| bundle_token string Conditionally returned | Unique identifier of the bundle. Allowable Values: 36 char max |
| original_status string Conditionally returned | Status of the bundle. - DRAFT - The bundle is in the process of being created.- PENDING_APPROVAL - The bundle has been created and is awaiting approval.- SENT_FOR_REVISION - The bundle has been returned for revision.- ACTIVE - The bundle is active.- REJECTED - The bundle has been rejected; this status cannot be changed.- ARCHIVED - The previously active bundle has been archived.- APPROVED - The bundle has been approved (after having been sent for approval).Allowable Values: DRAFT, PENDING_APPROVAL, SENT_FOR_REVISION, ACTIVE, REJECTED, ARCHIVED, APPROVED |
| status string Conditionally returned | Status of the bundle. - DRAFT - The bundle is in the process of being created.- PENDING_APPROVAL - The bundle has been created and is awaiting approval.- SENT_FOR_REVISION - The bundle has been returned for revision.- ACTIVE - The bundle is active.- REJECTED - The bundle has been rejected; this status cannot be changed.- ARCHIVED - The previously active bundle has been archived.- APPROVED - The bundle has been approved (after having been sent for approval).Allowable Values: DRAFT, PENDING_APPROVAL, SENT_FOR_REVISION, ACTIVE, REJECTED, ARCHIVED, APPROVED |
| created_time datetime Conditionally returned | Date and time when the bundle was changed the status on Marqeta’s credit platform, in UTC. Allowable Values: Format: yyyy-MM-ddThh:mm:ssZ |
Sample response body
JSON
{
"token": "my_transition_token_1234",
"bundle_token": "my_bundle_token_1234",
"original_status": "DRAFT",
"status": "PENDING_APPROVAL",
"created_time": "2025-06-04T05:59:14.979Z"
}
Authorizations
Path Parameters
Body
application/json
Contains information on a bundle transition.
Status of the bundle.
DRAFT- The bundle is in the process of being created.PENDING_APPROVAL- The bundle has been created and is awaiting approval.SENT_FOR_REVISION- The bundle has been returned for revision.ACTIVE- The bundle is active.REJECTED- The bundle has been rejected; this status cannot be changed.ARCHIVED- The previously active bundle has been archived.APPROVED- The bundle has been approved (after having been sent for approval).
Available options:
DRAFT, PENDING_APPROVAL, SENT_FOR_REVISION, ACTIVE, REJECTED, ARCHIVED, APPROVED Response
Expected response
Contains information on a bundle transition.
Status of the bundle.
DRAFT- The bundle is in the process of being created.PENDING_APPROVAL- The bundle has been created and is awaiting approval.SENT_FOR_REVISION- The bundle has been returned for revision.ACTIVE- The bundle is active.REJECTED- The bundle has been rejected; this status cannot be changed.ARCHIVED- The previously active bundle has been archived.APPROVED- The bundle has been approved (after having been sent for approval).
Available options:
DRAFT, PENDING_APPROVAL, SENT_FOR_REVISION, ACTIVE, REJECTED, ARCHIVED, APPROVED Status of the bundle.
DRAFT- The bundle is in the process of being created.PENDING_APPROVAL- The bundle has been created and is awaiting approval.SENT_FOR_REVISION- The bundle has been returned for revision.ACTIVE- The bundle is active.REJECTED- The bundle has been rejected; this status cannot be changed.ARCHIVED- The previously active bundle has been archived.APPROVED- The bundle has been approved (after having been sent for approval).
Available options:
DRAFT, PENDING_APPROVAL, SENT_FOR_REVISION, ACTIVE, REJECTED, ARCHIVED, APPROVED Was this page helpful?