Skip to content

Stripe: Deactivate a testmode personalization design

Stripe testHelpers.postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivate: arguments, response, policy and SDK examples.

← Test helpers operations · Get started

Operation stripe.posttesthelpersissuingpersonalizationdesignspersonalizationdesigndeactivate

Provider route: POST /v1/test_helpers/issuing/personalization_designs/{personalization_design}/deactivate. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/stripe with npm, or alter-sdk-stripe with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { StripeIntegration } from "@alter-ai/stripe";
async function execute(input: Parameters<StripeIntegration["testHelpers"]["postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivate"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new StripeIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.testHelpers.postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivate(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_stripe import StripeIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = StripeIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.test_helpers.post_test_helpers_issuing_personalization_designs_personalization_design_deactivate(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.personalization_designstringRequired within parentMaximum length: 5000
headersobjectOptionalAdditional keys: not allowed
headers.Idempotency-KeystringOptionalMinimum length: 1
Maximum length: 255
bodyobjectOptionalAdditional keys: not allowed
body.expandarrayOptionalSpecifies which fields in the response should be expanded.
body.expand[]stringEach itemMaximum length: 5000

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$ModelRootExpand Create a personalization design — response body

Referenced models: Create a personalization design — response body

5 more schemas are linked from the tables above, on the schema pages.

Create a personalization design — response body
FieldTypePresenceDescription and constraints
$objectRootA Personalization Design is a logical grouping of a Physical Bundle, card logo, and carrier text that represents a product line.
card_logoJSONOptional
card_logo (anyOf 1)JSONAlternativeThe file for the card logo to use with physical bundles that support card logos. Must have a `purpose` value of `issuing_logo`. Image must be in PNG format with dimensions of 1000px by 200px. It must be a binary (black and white) image containing a black logo on a white background. We don't accept grayscale.
card_logo (anyOf 1) (anyOf 1)stringAlternativeMaximum length: 5000
card_logo (anyOf 1) (anyOf 2)ModelAlternativeExpand Create a file — response body
card_logo (anyOf 2)nullAlternative
carrier_textJSONOptional
carrier_text (anyOf 1)JSONAlternativeHash containing carrier text, for use with physical bundles that support carrier text.
carrier_text (anyOf 1) (anyOf 1)ModelAlternativeExpand Create a personalization design — response body — carrier text value footer body, footer title, header body, header title
carrier_text (anyOf 2)nullAlternative
createdJSONRequired within parent
created (anyOf 1)integerAlternativeTime at which the object was created. Measured in seconds since the Unix epoch.
Format: unix-time
created (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
idstringRequired within parentUnique identifier for the object.
Maximum length: 5000
livemodebooleanRequired within parentIf the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
lookup_keyJSONOptional
lookup_key (anyOf 1)stringAlternativeA lookup key used to retrieve personalization designs dynamically from a static string. This may be up to 200 characters.
Maximum length: 5000
lookup_key (anyOf 2)nullAlternative
metadataobjectRequired within parentSet of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
Additional keys: see wildcard field
metadata.*stringAdditional keysMaximum length: 500
nameJSONOptional
name (anyOf 1)stringAlternativeFriendly display name.
Maximum length: 5000
name (anyOf 2)nullAlternative
objectstringRequired within parentString representing the object's type. Objects of the same type share the same value.
Known values: issuing.personalization_design
physical_bundleJSONRequired within parentThe physical bundle object belonging to this personalization design.
physical_bundle (anyOf 1)stringAlternativeMaximum length: 5000
physical_bundle (anyOf 2)ModelAlternativeExpand Retrieve a physical bundle — response body
preferencesModelRequired within parentExpand Create a personalization design — response body — preferences
rejection_reasonsModelRequired within parentExpand Create a personalization design — response body — rejection reasons
statusstringRequired within parentWhether this personalization design can be used to create cards.
Known values: active, inactive, rejected, review

Referenced models: Create a file — response body, Retrieve a physical bundle — response body, Create a personalization design — response body — carrier text value footer body, footer title, header body, header title, Create a personalization design — response body — preferences, Create a personalization design — response body — rejection reasons

Create a file — response body
FieldTypePresenceDescription and constraints
$objectRootThis object represents files hosted on Stripe's servers. You can upload
files with the [create file](https://docs.stripe.com/api#create_file) request
(for example, when uploading dispute evidence). Stripe also
creates files independently (for example, the results of a [Sigma scheduled
query](#scheduled_queries)).

Related guide: [File upload guide](https://docs.stripe.com/file-upload)
createdJSONRequired within parent
created (anyOf 1)integerAlternativeTime at which the object was created. Measured in seconds since the Unix epoch.
Format: unix-time
created (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
expires_atJSONOptional
expires_at (anyOf 1)JSONAlternative
expires_at (anyOf 1) (anyOf 1)integerAlternativeThe file expires and isn't available at this time in epoch seconds.
Format: unix-time
expires_at (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
expires_at (anyOf 2)nullAlternative
filenameJSONOptional
filename (anyOf 1)stringAlternativeThe suitable name for saving the file to a filesystem.
Maximum length: 5000
filename (anyOf 2)nullAlternative
idstringRequired within parentUnique identifier for the object.
Maximum length: 5000
linksJSONOptional
links (anyOf 1)objectAlternativeA list of [file links](https://docs.stripe.com/api#file_links) that point at this file.
links (anyOf 1).dataarrayRequired within parentDetails about each object.
links (anyOf 1).data[]ModelEach itemExpand Create a file link — response body
links (anyOf 1).has_morebooleanRequired within parentTrue if this list has another page of items after this one that can be fetched.
links (anyOf 1).objectstringRequired within parentString representing the object's type. Objects of the same type share the same value. Always has the value `list`.
Known values: list
links (anyOf 1).urlstringRequired within parentThe URL where this list can be accessed.
Maximum length: 5000
Pattern: ^/v1/file_links
links (anyOf 2)nullAlternative
objectstringRequired within parentString representing the object's type. Objects of the same type share the same value.
Known values: file
purposestringRequired within parentThe [purpose](https://docs.stripe.com/file-upload#uploading-a-file) of the uploaded file.
Known values: account_requirement, additional_verification, business_icon, business_logo, customer_signature, dispute_evidence, document_provider_identity_document, finance_report_run, financial_account_statement, identity_document, identity_document_downloadable, issuing_regulatory_reporting, pci_document, platform_terms_of_service, selfie, sigma_scheduled_query, tax_document_user_upload, terminal_android_apk, terminal_reader_splashscreen, terminal_wifi_certificate, terminal_wifi_private_key
sizeJSONRequired within parent
size (anyOf 1)integerAlternativeThe size of the file object in bytes.
size (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
titleJSONOptional
title (anyOf 1)stringAlternativeA suitable title for the document.
Maximum length: 5000
title (anyOf 2)nullAlternative
typeJSONOptional
type (anyOf 1)stringAlternativeThe returned file type (for example, `csv`, `pdf`, `jpg`, or `png`).
Maximum length: 5000
type (anyOf 2)nullAlternative
urlJSONOptional
url (anyOf 1)stringAlternativeUse your live secret API key to download the file from this URL.
Maximum length: 5000
url (anyOf 2)nullAlternative

Referenced models: Create a file link — response body

Retrieve a physical bundle — response body
FieldTypePresenceDescription and constraints
$objectRootA Physical Bundle represents the bundle of physical items - card stock, carrier letter, and envelope - that is shipped to a cardholder when you create a physical card.
featuresModelRequired within parentExpand Retrieve a physical bundle — response body — features
idstringRequired within parentUnique identifier for the object.
Maximum length: 5000
livemodebooleanRequired within parentIf the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
namestringRequired within parentFriendly display name.
Maximum length: 5000
objectstringRequired within parentString representing the object's type. Objects of the same type share the same value.
Known values: issuing.physical_bundle
statusstringRequired within parentWhether this physical bundle can be used to create cards.
Known values: active, inactive, review
typestringRequired within parentWhether this physical bundle is a standard Stripe offering or custom-made for you.
Known values: custom, standard

Referenced models: Retrieve a physical bundle — response body — features

SDK function policy ID: stripe.posttesthelpersissuingpersonalizationdesignspersonalizationdesigndeactivate. Catalog operation: PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivate. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Pinned headers: {"Stripe-Version": "2026-09-30.endive"}

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.