Personalization Designs

The Personalization Design object

Attributes

  • idstring

    Unique identifier for the object.

  • objectstring

    String representing the object’s type. Objects of the same type share the same value.

  • card_logonullable stringExpandable

    The file for the card logo to use with physical bundles that support card logos. Must have a purpose value of issuing_logo.

  • carrier_textnullable object

    Hash containing carrier text, for use with physical bundles that support carrier text.

  • createdtimestamp

    Time at which the object was created. Measured in seconds since the Unix epoch.

  • livemodeboolean

    Has the value true if the object exists in live mode or the value false if the object exists in test mode.

  • lookup_keynullable string

    A lookup key used to retrieve personalization designs dynamically from a static string. This may be up to 200 characters.

  • metadataobject

    Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.

  • namenullable string

    Friendly display name.

  • physical_bundlestringExpandable

    The physical bundle object belonging to this personalization design.

  • preferencesobject

    Hash containing information on whether this personalization design is used to create cards when one is not specified.

  • rejection_reasonsobject

    Hash containing reasons why the personalization design was rejected.

  • statusenum

    Whether this personalization design can be used to create cards.

    Possible enum values
    active

    Personalization design can be used to create cards that fulfill immediately.

    inactive

    Personalization design cannot be used to create cards because it was deactivated.

    rejected

    Personalization design cannot be used to create cards because it was rejected by design review.

    review

    Personalization design can be used to create cards but cards will only be fulfilled once the personalization design is activated.

The Personalization Design object
{
"id": "ipcd_Oiw9GXcFRE81LZ",
"object": "issuing.personalization_design",
"livemode": true,
"card_logo": "file_1LzR9L2eZvKYlo2CelTpcvKu",
"carrier_text": null,
"lookup_key": "my_card_design_lookup_key",
"metadata": {},
"name": "My personalization design name",
"physical_bundle": "ics_Oiw9ahglMfql0U",
"preferences": {
"is_default": false
},
"rejection_reasons": {
"card_logo": [],
"carrier_text": []
},
"status": "review"
}

Create a personalization design

Creates a personalization design object.

Parameters

  • physical_bundlestringRequired

    The physical bundle object belonging to this personalization design.

  • card_logostring

    The file for the card logo, for use with physical bundles that support card logos. Must have a purpose value of issuing_logo.

  • carrier_textobject

    Hash containing carrier text, for use with physical bundles that support carrier text.

  • lookup_keystring

    A lookup key used to retrieve personalization designs dynamically from a static string. This may be up to 200 characters.

  • metadataobject

    Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to metadata.

  • namestring

    Friendly display name.

  • preferencesobject

    Information on whether this personalization design is used to create cards when one is not specified.

  • transfer_lookup_keyboolean

    If set to true, will atomically remove the lookup key from the existing personalization design, and assign it to this personalization design.

Returns

Returns the created personalization design object.

POST /v1/issuing/personalization_designs
curl https://api.stripe.com/v1/issuing/personalization_designs \
-u "sk_test_4eC39Hq...arjtT1zdp7dcsk_test_4eC39HqLyjWDarjtT1zdp7dc:" \
-d name="My personalization design name" \
-d "preferences[is_default]"=false \
-d card_logo=file_1LzR9L2eZvKYlo2CelTpcvKu \
-d physical_bundle=ics_Oiw9ahglMfql0U
Response
{
"id": "ipcd_Oiw9GXcFRE81LZ",
"object": "issuing.personalization_design",
"livemode": true,
"card_logo": "file_1LzR9L2eZvKYlo2CelTpcvKu",
"carrier_text": null,
"lookup_key": "my_card_design_lookup_key",
"metadata": {},
"name": "My personalization design name",
"physical_bundle": "ics_Oiw9ahglMfql0U",
"preferences": {
"is_default": false
},
"rejection_reasons": {
"card_logo": [],
"carrier_text": []
},
"status": "review"
}

Update a personalization design

Updates a card personalization object.

Parameters

  • card_logostring

    The file for the card logo, for use with physical bundles that support card logos. Must have a purpose value of issuing_logo.

  • carrier_textobject

    Hash containing carrier text, for use with physical bundles that support carrier text.

  • lookup_keystring

    A lookup key used to retrieve personalization designs dynamically from a static string. This may be up to 200 characters.

  • metadataobject

    Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to metadata.

  • namestring

    Friendly display name. Providing an empty string will set the field to null.

  • physical_bundlestring

    The physical bundle object belonging to this personalization design.

  • preferencesobject

    Information on whether this personalization design is used to create cards when one is not specified.

  • transfer_lookup_keyboolean

    If set to true, will atomically remove the lookup key from the existing personalization design, and assign it to this personalization design.

Returns

Returns the updated personalization design object.

POST /v1/issuing/personalization_designs/:id
curl https://api.stripe.com/v1/issuing/personalization_designs/ipcd_Oiw9GXcFRE81LZ \
-u "sk_test_4eC39Hq...arjtT1zdp7dcsk_test_4eC39HqLyjWDarjtT1zdp7dc:" \
-d "metadata[order_id]"=6735
Response
{
"id": "ipcd_Oiw9GXcFRE81LZ",
"object": "issuing.personalization_design",
"livemode": true,
"card_logo": "file_1LzR9L2eZvKYlo2CelTpcvKu",
"carrier_text": null,
"lookup_key": "my_card_design_lookup_key",
"metadata": {
"order_id": "6735"
},
"name": "My personalization design name",
"physical_bundle": "ics_Oiw9ahglMfql0U",
"preferences": {
"is_default": false
},
"rejection_reasons": {
"card_logo": [],
"carrier_text": []
},
"status": "review"
}

Retrieve a personalization design

Retrieves a personalization design object.

Parameters

No parameters.

Returns

Returns the personalization design object.

GET /v1/issuing/personalization_designs/:id
curl https://api.stripe.com/v1/issuing/personalization_designs/ipcd_Oiw9GXcFRE81LZ \
-u "sk_test_4eC39Hq...arjtT1zdp7dcsk_test_4eC39HqLyjWDarjtT1zdp7dc:"
Response
{
"id": "ipcd_Oiw9GXcFRE81LZ",
"object": "issuing.personalization_design",
"livemode": true,
"card_logo": "file_1LzR9L2eZvKYlo2CelTpcvKu",
"carrier_text": null,
"lookup_key": "my_card_design_lookup_key",
"metadata": {},
"name": "My personalization design name",
"physical_bundle": "ics_Oiw9ahglMfql0U",
"preferences": {
"is_default": false
},
"rejection_reasons": {
"card_logo": [],
"carrier_text": []
},
"status": "review"
}
Stripe Shell
Test mode
Welcome to the Stripe Shell! Stripe Shell is a browser-based shell with the Stripe CLI pre-installed. Log in to your Stripe account and press Control + Backtick (`) on your keyboard to start managing your Stripe resources in test mode. - View supported Stripe commands: - Find webhook events: - Listen for webhook events: - Call Stripe APIs: stripe [api resource] [operation] (e.g., )
The Stripe Shell is best experienced on desktop.
$