Skip to content

Stripe: Test helpers schemas

36 Stripe schemas with complete fields and constraints.

← Test helpers operations · All schemas

Create a test clock — response body

FieldTypePresenceDescription and constraints
$objectRootA test clock enables deterministic control over objects in testmode. With a test clock, you can create
objects at a frozen time in the past or future, and advance to a specific future time to observe webhooks and state changes. After the clock advances,
you can either validate the current state of your scenario (and test your assumptions), change the current state of your scenario (and test more complex scenarios), or keep advancing forward in time.
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]+)?$
deletes_afterJSONRequired within parent
deletes_after (anyOf 1)integerAlternativeTime at which this clock is scheduled to auto delete.
Format: unix-time
deletes_after (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
frozen_timeJSONRequired within parent
frozen_time (anyOf 1)integerAlternativeTime at which all objects belonging to this clock are frozen.
Format: unix-time
frozen_time (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`.
nameJSONOptional
name (anyOf 1)stringAlternativeThe custom name supplied at creation.
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: test_helpers.test_clock
statusstringRequired within parentThe status of the Test Clock.
Known values: advancing, internal_failure, ready
status_detailsModelRequired within parentExpand Create a test clock — response body — status details

Referenced models: Create a test clock — response body — status details

Create a test clock — response body — status details

FieldTypePresenceDescription and constraints
$objectRoot
advancingModelOptionalExpand Create a test clock — response body — status details advancing

Referenced models: Create a test clock — response body — status details advancing

Create a test clock — response body — status details advancing

FieldTypePresenceDescription and constraints
$objectRoot
target_frozen_timeJSONRequired within parent
target_frozen_time (anyOf 1)integerAlternativeThe `frozen_time` that the Test Clock is advancing towards.
Format: unix-time
target_frozen_time (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Create a test-mode authorization — request body — body fleet

FieldTypePresenceDescription and constraints
$objectRootFleet-specific information for authorizations using Fleet cards.
cardholder_prompt_dataobjectOptional
cardholder_prompt_data.driver_idstringOptionalMaximum length: 5000
cardholder_prompt_data.odometerintegerOptional
cardholder_prompt_data.unspecified_idstringOptionalMaximum length: 5000
cardholder_prompt_data.user_idstringOptionalMaximum length: 5000
cardholder_prompt_data.vehicle_numberstringOptionalMaximum length: 5000
purchase_typestringOptionalOne of: fuel_and_non_fuel_purchase, fuel_purchase, non_fuel_purchase
Maximum length: 5000
reported_breakdownobjectOptional
reported_breakdown.fuelobjectOptional
reported_breakdown.fuel.gross_amount_decimalstringOptionalFormat: decimal
reported_breakdown.non_fuelobjectOptional
reported_breakdown.non_fuel.gross_amount_decimalstringOptionalFormat: decimal
reported_breakdown.taxobjectOptional
reported_breakdown.tax.local_amount_decimalstringOptionalFormat: decimal
reported_breakdown.tax.national_amount_decimalstringOptionalFormat: decimal
service_typestringOptionalOne of: full_service, non_fuel_transaction, self_service
Maximum length: 5000

Create a test-mode authorization — request body — body fuel

FieldTypePresenceDescription and constraints
$objectRootInformation about fuel that was purchased with this transaction.
industry_product_codestringOptionalMaximum length: 5000
quantity_decimalstringOptionalFormat: decimal
typestringOptionalOne of: diesel, other, unleaded_plus, unleaded_regular, unleaded_super
Maximum length: 5000
unitstringOptionalOne of: charging_minute, imperial_gallon, kilogram, kilowatt_hour, liter, other, pound, us_gallon
Maximum length: 5000
unit_cost_decimalstringOptionalFormat: decimal

Create a test-mode authorization — request body — body merchant data

FieldTypePresenceDescription and constraints
$objectRootDetails about the seller (grocery store, e-commerce website, etc.) where the card authorization happened.
categorystringOptionalOne of: ac_refrigeration_repair, accounting_bookkeeping_services, advertising_services, agricultural_cooperative, airlines_air_carriers, airports_flying_fields, ambulance_services, amusement_parks_carnivals, antique_reproductions, antique_shops, aquariums, architectural_surveying_services, art_dealers_and_galleries, artists_supply_and_craft_shops, auto_and_home_supply_stores, auto_body_repair_shops, auto_paint_shops, auto_service_shops, automated_cash_disburse, automated_fuel_dispensers, automobile_associations, automotive_parts_and_accessories_stores, automotive_tire_stores, bail_and_bond_payments, bakeries, bands_orchestras, barber_and_beauty_shops, betting_casino_gambling, bicycle_shops, billiard_pool_establishments, boat_dealers, boat_rentals_and_leases, book_stores, books_periodicals_and_newspapers, bowling_alleys, bus_lines, business_secretarial_schools, buying_shopping_services, cable_satellite_and_other_pay_television_and_radio, camera_and_photographic_supply_stores, candy_nut_and_confectionery_stores, car_and_truck_dealers_new_used, car_and_truck_dealers_used_only, car_rental_agencies, car_washes, carpentry_services, carpet_upholstery_cleaning, caterers, charitable_and_social_service_organizations_fundraising, chemicals_and_allied_products, child_care_services, childrens_and_infants_wear_stores, chiropodists_podiatrists, chiropractors, cigar_stores_and_stands, civic_social_fraternal_associations, cleaning_and_maintenance, clothing_rental, colleges_universities, commercial_equipment, commercial_footwear, commercial_photography_art_and_graphics, commuter_transport_and_ferries, computer_network_services, computer_programming, computer_repair, computer_software_stores, computers_peripherals_and_software, concrete_work_services, construction_materials, consulting_public_relations, correspondence_schools, cosmetic_stores, counseling_services, country_clubs, courier_services, court_costs, credit_reporting_agencies, cruise_lines, dairy_products_stores, dance_hall_studios_schools, dating_escort_services, dentists_orthodontists, department_stores, detective_agencies, digital_goods_applications, digital_goods_games, digital_goods_large_volume, digital_goods_media, direct_marketing_catalog_merchant, direct_marketing_combination_catalog_and_retail_merchant, direct_marketing_inbound_telemarketing, direct_marketing_insurance_services, direct_marketing_other, direct_marketing_outbound_telemarketing, direct_marketing_subscription, direct_marketing_travel, discount_stores, doctors, door_to_door_sales, drapery_window_covering_and_upholstery_stores, drinking_places, drug_stores_and_pharmacies, drugs_drug_proprietaries_and_druggist_sundries, dry_cleaners, durable_goods, duty_free_stores, eating_places_restaurants, educational_services, electric_razor_stores, electric_vehicle_charging, electrical_parts_and_equipment, electrical_services, electronics_repair_shops, electronics_stores, elementary_secondary_schools, emergency_services_gcas_visa_use_only, employment_temp_agencies, equipment_rental, exterminating_services, family_clothing_stores, fast_food_restaurants, financial_institutions, fines_government_administrative_entities, fireplace_fireplace_screens_and_accessories_stores, floor_covering_stores, florists, florists_supplies_nursery_stock_and_flowers, freezer_and_locker_meat_provisioners, fuel_dealers_non_automotive, funeral_services_crematories, furniture_home_furnishings_and_equipment_stores_except_appliances, furniture_repair_refinishing, furriers_and_fur_shops, general_services, gift_card_novelty_and_souvenir_shops, glass_paint_and_wallpaper_stores, glassware_crystal_stores, golf_courses_public, government_licensed_horse_dog_racing_us_region_only, government_licensed_online_casions_online_gambling_us_region_only, government_owned_lotteries_non_us_region, government_owned_lotteries_us_region_only, government_services, grocery_stores_supermarkets, hardware_equipment_and_supplies, hardware_stores, health_and_beauty_spas, hearing_aids_sales_and_supplies, heating_plumbing_a_c, hobby_toy_and_game_shops, home_supply_warehouse_stores, hospitals, hotels_motels_and_resorts, household_appliance_stores, industrial_supplies, information_retrieval_services, insurance_default, insurance_underwriting_premiums, intra_company_purchases, jewelry_stores_watches_clocks_and_silverware_stores, landscaping_services, laundries, laundry_cleaning_services, legal_services_attorneys, luggage_and_leather_goods_stores, lumber_building_materials_stores, manual_cash_disburse, marinas_service_and_supplies, marketplaces, masonry_stonework_and_plaster, massage_parlors, medical_and_dental_labs, medical_dental_ophthalmic_and_hospital_equipment_and_supplies, medical_services, membership_organizations, mens_and_boys_clothing_and_accessories_stores, mens_womens_clothing_stores, metal_service_centers, miscellaneous_apparel_and_accessory_shops, miscellaneous_auto_dealers, miscellaneous_business_services, miscellaneous_food_stores, miscellaneous_general_merchandise, miscellaneous_general_services, miscellaneous_home_furnishing_specialty_stores, miscellaneous_publishing_and_printing, miscellaneous_recreation_services, miscellaneous_repair_shops, miscellaneous_specialty_retail, mobile_home_dealers, motion_picture_theaters, motor_freight_carriers_and_trucking, motor_homes_dealers, motor_vehicle_supplies_and_new_parts, motorcycle_shops_and_dealers, motorcycle_shops_dealers, music_stores_musical_instruments_pianos_and_sheet_music, news_dealers_and_newsstands, non_fi_money_orders, non_fi_stored_value_card_purchase_load, nondurable_goods, nurseries_lawn_and_garden_supply_stores, nursing_personal_care, office_and_commercial_furniture, opticians_eyeglasses, optometrists_ophthalmologist, orthopedic_goods_prosthetic_devices, osteopaths, package_stores_beer_wine_and_liquor, paints_varnishes_and_supplies, parking_lots_garages, passenger_railways, pawn_shops, pet_shops_pet_food_and_supplies, petroleum_and_petroleum_products, photo_developing, photographic_photocopy_microfilm_equipment_and_supplies, photographic_studios, picture_video_production, piece_goods_notions_and_other_dry_goods, plumbing_heating_equipment_and_supplies, political_organizations, postal_services_government_only, precious_stones_and_metals_watches_and_jewelry, professional_services, public_warehousing_and_storage, quick_copy_repro_and_blueprint, railroads, real_estate_agents_and_managers_rentals, record_stores, recreational_vehicle_rentals, religious_goods_stores, religious_organizations, roofing_siding_sheet_metal, secretarial_support_services, security_brokers_dealers, service_stations, sewing_needlework_fabric_and_piece_goods_stores, shoe_repair_hat_cleaning, shoe_stores, small_appliance_repair, snowmobile_dealers, special_trade_services, specialty_cleaning, sporting_goods_stores, sporting_recreation_camps, sports_and_riding_apparel_stores, sports_clubs_fields, stamp_and_coin_stores, stationary_office_supplies_printing_and_writing_paper, stationery_stores_office_and_school_supply_stores, swimming_pools_sales, t_ui_travel_germany, tailors_alterations, tax_payments_government_agencies, tax_preparation_services, taxicabs_limousines, telecommunication_equipment_and_telephone_sales, telecommunication_services, telegraph_services, tent_and_awning_shops, testing_laboratories, theatrical_ticket_agencies, timeshares, tire_retreading_and_repair, tolls_bridge_fees, tourist_attractions_and_exhibits, towing_services, trailer_parks_campgrounds, transportation_services, travel_agencies_tour_operators, truck_stop_iteration, truck_utility_trailer_rentals, typesetting_plate_making_and_related_services, typewriter_stores, u_s_federal_government_agencies_or_departments, uniforms_commercial_clothing, used_merchandise_and_secondhand_stores, utilities, variety_stores, veterinary_services, video_amusement_game_supplies, video_game_arcades, video_tape_rental_stores, vocational_trade_schools, watch_jewelry_repair, welding_repair, wholesale_clubs, wig_and_toupee_stores, wires_money_orders, womens_accessory_and_specialty_shops, womens_ready_to_wear_stores, wrecking_and_salvage_yards
Maximum length: 5000
citystringOptionalMaximum length: 5000
countrystringOptionalMaximum length: 5000
namestringOptionalMaximum length: 5000
network_idstringOptionalMaximum length: 5000
postal_codestringOptionalMaximum length: 5000
statestringOptionalMaximum length: 5000
terminal_idstringOptionalMaximum length: 5000
urlstringOptionalMaximum length: 5000

Create a test-mode force capture — request body — body purchase details

FieldTypePresenceDescription and constraints
$objectRootAdditional purchase information that is optionally provided by the merchant.
fleetModelOptionalExpand Create a test-mode force capture — request body — body purchase details fleet
flightModelOptionalExpand Create a test-mode force capture — request body — body purchase details flight
fuelModelOptionalExpand Create a test-mode force capture — request body — body purchase details fuel
lodgingobjectOptional
lodging.check_in_atintegerOptionalFormat: unix-time
lodging.nightsintegerOptional
receiptarrayOptional
receipt[]objectEach item
receipt[].descriptionstringOptionalMaximum length: 26
receipt[].quantitystringOptionalFormat: decimal
receipt[].totalintegerOptional
receipt[].unit_costintegerOptional
referencestringOptionalMaximum length: 5000

Referenced models: Create a test-mode force capture — request body — body purchase details fleet, Create a test-mode force capture — request body — body purchase details flight, Create a test-mode force capture — request body — body purchase details fuel

Create a test-mode force capture — request body — body purchase details fleet

FieldTypePresenceDescription and constraints
$objectRoot
cardholder_prompt_dataobjectOptional
cardholder_prompt_data.driver_idstringOptionalMaximum length: 5000
cardholder_prompt_data.odometerintegerOptional
cardholder_prompt_data.unspecified_idstringOptionalMaximum length: 5000
cardholder_prompt_data.user_idstringOptionalMaximum length: 5000
cardholder_prompt_data.vehicle_numberstringOptionalMaximum length: 5000
purchase_typestringOptionalOne of: fuel_and_non_fuel_purchase, fuel_purchase, non_fuel_purchase
Maximum length: 5000
reported_breakdownobjectOptional
reported_breakdown.fuelobjectOptional
reported_breakdown.fuel.gross_amount_decimalstringOptionalFormat: decimal
reported_breakdown.non_fuelobjectOptional
reported_breakdown.non_fuel.gross_amount_decimalstringOptionalFormat: decimal
reported_breakdown.taxobjectOptional
reported_breakdown.tax.local_amount_decimalstringOptionalFormat: decimal
reported_breakdown.tax.national_amount_decimalstringOptionalFormat: decimal
service_typestringOptionalOne of: full_service, non_fuel_transaction, self_service
Maximum length: 5000

Create a test-mode force capture — request body — body purchase details flight

FieldTypePresenceDescription and constraints
$objectRoot
departure_atintegerOptionalFormat: unix-time
passenger_namestringOptionalMaximum length: 5000
refundablebooleanOptional
segmentsarrayOptional
segments[]objectEach item
segments[].arrival_airport_codestringOptionalMaximum length: 3
segments[].carrierstringOptionalMaximum length: 5000
segments[].departure_airport_codestringOptionalMaximum length: 3
segments[].flight_numberstringOptionalMaximum length: 5000
segments[].service_classstringOptionalMaximum length: 5000
segments[].stopover_allowedbooleanOptional
travel_agencystringOptionalMaximum length: 5000

Create a test-mode force capture — request body — body purchase details fuel

FieldTypePresenceDescription and constraints
$objectRoot
industry_product_codestringOptionalMaximum length: 5000
quantity_decimalstringOptionalFormat: decimal
typestringOptionalOne of: diesel, other, unleaded_plus, unleaded_regular, unleaded_super
Maximum length: 5000
unitstringOptionalOne of: charging_minute, imperial_gallon, kilogram, kilowatt_hour, liter, other, pound, us_gallon
Maximum length: 5000
unit_cost_decimalstringOptionalFormat: decimal

Delete a test clock — response body

FieldTypePresenceDescription and constraints
$objectRoot
deletedbooleanRequired within parentAlways true for a deleted object
Known values: True
idstringRequired within parentUnique identifier for the object.
Maximum length: 5000
objectstringRequired within parentString representing the object's type. Objects of the same type share the same value.
Known values: test_helpers.test_clock

Fail a testmode card — response body

FieldTypePresenceDescription and constraints
$objectRootYou can [create physical or virtual cards](https://docs.stripe.com/issuing) that are issued to cardholders.
brandstringRequired within parentThe brand of the card.
Maximum length: 5000
cancellation_reasonJSONOptional
cancellation_reason (anyOf 1)stringAlternativeThe reason why the card was canceled.
Known values: design_rejected, fulfillment_error, lost, stolen
cancellation_reason (anyOf 2)nullAlternative
cardholderModelRequired within parentExpand Create a cardholder — response body
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]+)?$
currencystringRequired within parentThree-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Supported currencies are `usd` in the US, `eur` in the EU, and `gbp` in the UK.
Format: currency
cvcstringOptionalThe card's CVC. For security reasons, this is only available for virtual cards, and will be omitted unless you explicitly request it with [the `expand` parameter](https://docs.stripe.com/api/expanding_objects). Additionally, it's only available via the ["Retrieve a card" endpoint](https://docs.stripe.com/api/issuing/cards/retrieve), not via "List all cards" or any other endpoint.
Maximum length: 5000
exp_monthJSONRequired within parent
exp_month (anyOf 1)integerAlternativeThe expiration month of the card.
exp_month (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
exp_yearJSONRequired within parent
exp_year (anyOf 1)integerAlternativeThe expiration year of the card.
exp_year (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
financial_accountJSONOptional
financial_account (anyOf 1)stringAlternativeThe financial account this card is attached to.
Maximum length: 5000
financial_account (anyOf 2)nullAlternative
idstringRequired within parentUnique identifier for the object.
Maximum length: 5000
last4stringRequired within parentThe last 4 digits of the card number.
Maximum length: 5000
latest_fraud_warningJSONOptional
latest_fraud_warning (anyOf 1)JSONAlternativeStripe’s assessment of whether this card’s details have been compromised. If this property isn't null, cancel and reissue the card to prevent fraudulent activity risk.
latest_fraud_warning (anyOf 1) (anyOf 1)ModelAlternativeExpand Fail a testmode card — response body — latest fraud warning value started at, type
latest_fraud_warning (anyOf 2)nullAlternative
lifecycle_controlsJSONOptional
lifecycle_controls (anyOf 1)JSONAlternativeRules that control the lifecycle of this card, such as automatic cancellation. Refer to our [documentation](/issuing/controls/lifecycle-controls) for more details.
lifecycle_controls (anyOf 1) (anyOf 1)ModelAlternativeExpand Fail a testmode card — response body — lifecycle controls value cancel after
lifecycle_controls (anyOf 2)nullAlternative
livemodebooleanRequired within parentIf the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
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
numberstringOptionalThe full unredacted card number. For security reasons, this is only available for virtual cards, and will be omitted unless you explicitly request it with [the `expand` parameter](https://docs.stripe.com/api/expanding_objects). Additionally, it's only available via the ["Retrieve a card" endpoint](https://docs.stripe.com/api/issuing/cards/retrieve), not via "List all cards" or any other endpoint.
Maximum length: 5000
objectstringRequired within parentString representing the object's type. Objects of the same type share the same value.
Known values: issuing.card
personalization_designJSONOptional
personalization_design (anyOf 1)JSONAlternativeThe personalization design object belonging to this card.
personalization_design (anyOf 1) (anyOf 1)stringAlternativeMaximum length: 5000
personalization_design (anyOf 1) (anyOf 2)ModelAlternativeExpand Create a personalization design — response body
personalization_design (anyOf 2)nullAlternative
replaced_byJSONOptional
replaced_by (anyOf 1)JSONAlternativeThe latest card that replaces this card, if any.
replaced_by (anyOf 1) (anyOf 1)stringAlternativeMaximum length: 5000
replaced_by (anyOf 1) (anyOf 2)ModelAlternativeExpand Fail a testmode card — response body
replaced_by (anyOf 2)nullAlternative
replacement_forJSONOptional
replacement_for (anyOf 1)JSONAlternativeThe card this card replaces, if any.
replacement_for (anyOf 1) (anyOf 1)stringAlternativeMaximum length: 5000
replacement_for (anyOf 1) (anyOf 2)ModelAlternativeExpand Fail a testmode card — response body
replacement_for (anyOf 2)nullAlternative
replacement_reasonJSONOptional
replacement_reason (anyOf 1)stringAlternativeThe reason why the previous card needed to be replaced.
Known values: damaged, expired, fulfillment_error, lost, stolen
replacement_reason (anyOf 2)nullAlternative
second_lineJSONOptional
second_line (anyOf 1)stringAlternativeText separate from cardholder name, printed on the card.
Maximum length: 5000
second_line (anyOf 2)nullAlternative
shippingJSONOptional
shipping (anyOf 1)JSONAlternativeWhere and how the card will be shipped.
shipping (anyOf 1) (anyOf 1)ModelAlternativeExpand Fail a testmode card — response body — shipping / Where and how the card will be shipped / service: express, priority, standard, type: bulk, individual
shipping (anyOf 2)nullAlternative
spending_controlsModelRequired within parentExpand Fail a testmode card — response body — spending controls
statusstringRequired within parentWhether authorizations can be approved on this card. May be blocked from activating cards depending on past-due Cardholder requirements. Defaults to `inactive`.
Known values: active, canceled, inactive
typestringRequired within parentThe type of the card.
Known values: physical, virtual
walletsJSONOptional
wallets (anyOf 1)JSONAlternativeInformation relating to digital wallets (like Apple Pay and Google Pay).
wallets (anyOf 1) (anyOf 1)ModelAlternativeExpand Fail a testmode card — response body — wallets value apple pay, google pay, primary account identifier
wallets (anyOf 2)nullAlternative

Referenced models: Fail a testmode card — response body, Create a cardholder — response body, Create a personalization design — response body, Fail a testmode card — response body — spending controls, Fail a testmode card — response body — latest fraud warning value started at, type, Fail a testmode card — response body — lifecycle controls value cancel after, Fail a testmode card — response body — shipping / Where and how the card will be shipped / service: express, priority, standard, type: bulk, individual, Fail a testmode card — response body — wallets value apple pay, google pay, primary account identifier

Fail a testmode card — response body — latest fraud warning value started at, type

FieldTypePresenceDescription and constraints
$objectRoot
started_atJSONOptional
started_at (anyOf 1)JSONAlternative
started_at (anyOf 1) (anyOf 1)integerAlternativeTimestamp of the most recent fraud warning.
Format: unix-time
started_at (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
started_at (anyOf 2)nullAlternative
typeJSONOptional
type (anyOf 1)stringAlternativeThe type of fraud warning that most recently took place on this card. This field updates with every new fraud warning, so the value changes over time. If populated, cancel and reissue the card.
Known values: card_testing_exposure, fraud_dispute_filed, third_party_reported, user_indicated_fraud
type (anyOf 2)nullAlternative

Fail a testmode card — response body — lifecycle controls value cancel after

FieldTypePresenceDescription and constraints
$objectRoot
cancel_afterModelRequired within parentExpand Fail a testmode card — response body — lifecycle controls value cancel after cancel after

Referenced models: Fail a testmode card — response body — lifecycle controls value cancel after cancel after

Fail a testmode card — response body — lifecycle controls value cancel after cancel after

FieldTypePresenceDescription and constraints
$objectRoot
payment_countJSONRequired within parent
payment_count (anyOf 1)integerAlternativeThe card is automatically cancelled when it makes this number of non-zero payment authorizations and transactions. The count includes penny authorizations, but doesn't include non-payment actions, such as authorization advice.
payment_count (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Fail a testmode card — response body — shipping / Where and how the card will be shipped / service: express, priority, standard, type: bulk, individual

FieldTypePresenceDescription and constraints
$objectRoot
addressModelRequired within parentExpand Create a Location — response body — address
address_validationJSONOptional
address_validation (anyOf 1)JSONAlternativeAddress validation details for the shipment.
address_validation (anyOf 1) (anyOf 1)ModelAlternativeExpand Fail a testmode card — response body — shipping / Where and how the card will be shipped / service: express, priority, standard, type: bulk, individual address validation Address validation details for the shipment mode: disabled, normalization only, validation and normalization
address_validation (anyOf 2)nullAlternative
business_nameJSONOptional
business_name (anyOf 1)stringAlternativeThe name of the business at the shipping address, used on the shipping label to ensure delivery when the card is shipped to a cardholder's workplace.
Maximum length: 5000
business_name (anyOf 2)nullAlternative
carrierJSONOptional
carrier (anyOf 1)stringAlternativeThe delivery company that shipped a card.
Known values: correos, dhl, fedex, royal_mail, usps
carrier (anyOf 2)nullAlternative
customsJSONOptional
customs (anyOf 1)JSONAlternativeAdditional information that may be required for clearing customs.
customs (anyOf 1) (anyOf 1)ModelAlternativeExpand Fail a testmode card — response body — shipping / Where and how the card will be shipped / service: express, priority, standard, type: bulk, individual customs value eori number
customs (anyOf 2)nullAlternative
etaJSONOptional
eta (anyOf 1)JSONAlternative
eta (anyOf 1) (anyOf 1)integerAlternativeA unix timestamp representing a best estimate of when the card will be delivered.
Format: unix-time
eta (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
eta (anyOf 2)nullAlternative
namestringRequired within parentRecipient name.
Maximum length: 5000
phone_numberJSONOptional
phone_number (anyOf 1)stringAlternativeThe phone number of the receiver of the shipment. Our courier partners will use this number to contact you in the event of card delivery issues. For individual shipments to the EU/UK, if this field is empty, we will provide them with the phone number provided when the cardholder was initially created.
Maximum length: 5000
phone_number (anyOf 2)nullAlternative
require_signatureJSONOptional
require_signature (anyOf 1)booleanAlternativeWhether a signature is required for card delivery. This feature is only supported for US users. Standard shipping service does not support signature on delivery. The default value for standard shipping service is false and for express and priority services is true.
require_signature (anyOf 2)nullAlternative
servicestringRequired within parentShipment service, such as `standard` or `express`.
Known values: express, priority, standard
statusJSONOptional
status (anyOf 1)stringAlternativeThe delivery status of the card.
Known values: canceled, delivered, failure, pending, returned, shipped, submitted
status (anyOf 2)nullAlternative
tracking_numberJSONOptional
tracking_number (anyOf 1)stringAlternativeA tracking number for a card shipment.
Maximum length: 5000
tracking_number (anyOf 2)nullAlternative
tracking_urlJSONOptional
tracking_url (anyOf 1)stringAlternativeA link to the shipping carrier's site where you can view detailed information about a card shipment.
Maximum length: 5000
tracking_url (anyOf 2)nullAlternative
typestringRequired within parentPackaging options.
Known values: bulk, individual

Referenced models: Create a Location — response body — address, Fail a testmode card — response body — shipping / Where and how the card will be shipped / service: express, priority, standard, type: bulk, individual address validation Address validation details for the shipment mode: disabled, normalization only, validation and normalization, Fail a testmode card — response body — shipping / Where and how the card will be shipped / service: express, priority, standard, type: bulk, individual customs value eori number

Fail a testmode card — response body — shipping / Where and how the card will be shipped / service: express, priority, standard, type: bulk, individual address validation Address validation details for the shipment mode: disabled, normalization only, validation and normalization

FieldTypePresenceDescription and constraints
$objectRoot
modestringRequired within parentThe address validation capabilities to use.
Known values: disabled, normalization_only, validation_and_normalization
normalized_addressJSONOptional
normalized_address (anyOf 1)JSONAlternativeThe normalized shipping address.
normalized_address (anyOf 1) (anyOf 1)ModelAlternativeExpand Create a Location — response body — address
normalized_address (anyOf 2)nullAlternative
resultJSONOptional
result (anyOf 1)stringAlternativeThe validation result for the shipping address.
Known values: indeterminate, likely_deliverable, likely_undeliverable
result (anyOf 2)nullAlternative

Referenced models: Create a Location — response body — address

Fail a testmode card — response body — shipping / Where and how the card will be shipped / service: express, priority, standard, type: bulk, individual customs value eori number

FieldTypePresenceDescription and constraints
$objectRoot
eori_numberJSONOptional
eori_number (anyOf 1)stringAlternativeA registration number used for customs in Europe. See [https://www.gov.uk/eori](https://www.gov.uk/eori) for the UK and [https://ec.europa.eu/taxation_customs/business/customs-procedures-import-and-export/customs-procedures/economic-operators-registration-and-identification-number-eori_en](https://ec.europa.eu/taxation_customs/business/customs-procedures-import-and-export/customs-procedures/economic-operators-registration-and-identification-number-eori_en) for the EU.
Maximum length: 5000
eori_number (anyOf 2)nullAlternative

Fail a testmode card — response body — spending controls

FieldTypePresenceDescription and constraints
$objectRoot
allowed_card_presencesJSONOptional
allowed_card_presences (anyOf 1)arrayAlternativeArray of card presence statuses from which authorizations will be allowed. Possible options are `present`, `not_present`. All other statuses will be blocked. Cannot be set with `blocked_card_presences`. Provide an empty value to unset this control.
allowed_card_presences (anyOf 1)[]stringEach itemKnown values: not_present, present
allowed_card_presences (anyOf 2)nullAlternative
allowed_categoriesJSONOptional
allowed_categories (anyOf 1)arrayAlternativeArray of strings containing [categories](https://docs.stripe.com/api#issuing_authorization_object-merchant_data-category) of authorizations to allow. All other categories will be blocked. Cannot be set with `blocked_categories`.
allowed_categories (anyOf 1)[]stringEach itemKnown values: ac_refrigeration_repair, accounting_bookkeeping_services, advertising_services, agricultural_cooperative, airlines_air_carriers, airports_flying_fields, ambulance_services, amusement_parks_carnivals, antique_reproductions, antique_shops, aquariums, architectural_surveying_services, art_dealers_and_galleries, artists_supply_and_craft_shops, auto_and_home_supply_stores, auto_body_repair_shops, auto_paint_shops, auto_service_shops, automated_cash_disburse, automated_fuel_dispensers, automobile_associations, automotive_parts_and_accessories_stores, automotive_tire_stores, bail_and_bond_payments, bakeries, bands_orchestras, barber_and_beauty_shops, betting_casino_gambling, bicycle_shops, billiard_pool_establishments, boat_dealers, boat_rentals_and_leases, book_stores, books_periodicals_and_newspapers, bowling_alleys, bus_lines, business_secretarial_schools, buying_shopping_services, cable_satellite_and_other_pay_television_and_radio, camera_and_photographic_supply_stores, candy_nut_and_confectionery_stores, car_and_truck_dealers_new_used, car_and_truck_dealers_used_only, car_rental_agencies, car_washes, carpentry_services, carpet_upholstery_cleaning, caterers, charitable_and_social_service_organizations_fundraising, chemicals_and_allied_products, child_care_services, childrens_and_infants_wear_stores, chiropodists_podiatrists, chiropractors, cigar_stores_and_stands, civic_social_fraternal_associations, cleaning_and_maintenance, clothing_rental, colleges_universities, commercial_equipment, commercial_footwear, commercial_photography_art_and_graphics, commuter_transport_and_ferries, computer_network_services, computer_programming, computer_repair, computer_software_stores, computers_peripherals_and_software, concrete_work_services, construction_materials, consulting_public_relations, correspondence_schools, cosmetic_stores, counseling_services, country_clubs, courier_services, court_costs, credit_reporting_agencies, cruise_lines, dairy_products_stores, dance_hall_studios_schools, dating_escort_services, dentists_orthodontists, department_stores, detective_agencies, digital_goods_applications, digital_goods_games, digital_goods_large_volume, digital_goods_media, direct_marketing_catalog_merchant, direct_marketing_combination_catalog_and_retail_merchant, direct_marketing_inbound_telemarketing, direct_marketing_insurance_services, direct_marketing_other, direct_marketing_outbound_telemarketing, direct_marketing_subscription, direct_marketing_travel, discount_stores, doctors, door_to_door_sales, drapery_window_covering_and_upholstery_stores, drinking_places, drug_stores_and_pharmacies, drugs_drug_proprietaries_and_druggist_sundries, dry_cleaners, durable_goods, duty_free_stores, eating_places_restaurants, educational_services, electric_razor_stores, electric_vehicle_charging, electrical_parts_and_equipment, electrical_services, electronics_repair_shops, electronics_stores, elementary_secondary_schools, emergency_services_gcas_visa_use_only, employment_temp_agencies, equipment_rental, exterminating_services, family_clothing_stores, fast_food_restaurants, financial_institutions, fines_government_administrative_entities, fireplace_fireplace_screens_and_accessories_stores, floor_covering_stores, florists, florists_supplies_nursery_stock_and_flowers, freezer_and_locker_meat_provisioners, fuel_dealers_non_automotive, funeral_services_crematories, furniture_home_furnishings_and_equipment_stores_except_appliances, furniture_repair_refinishing, furriers_and_fur_shops, general_services, gift_card_novelty_and_souvenir_shops, glass_paint_and_wallpaper_stores, glassware_crystal_stores, golf_courses_public, government_licensed_horse_dog_racing_us_region_only, government_licensed_online_casions_online_gambling_us_region_only, government_owned_lotteries_non_us_region, government_owned_lotteries_us_region_only, government_services, grocery_stores_supermarkets, hardware_equipment_and_supplies, hardware_stores, health_and_beauty_spas, hearing_aids_sales_and_supplies, heating_plumbing_a_c, hobby_toy_and_game_shops, home_supply_warehouse_stores, hospitals, hotels_motels_and_resorts, household_appliance_stores, industrial_supplies, information_retrieval_services, insurance_default, insurance_underwriting_premiums, intra_company_purchases, jewelry_stores_watches_clocks_and_silverware_stores, landscaping_services, laundries, laundry_cleaning_services, legal_services_attorneys, luggage_and_leather_goods_stores, lumber_building_materials_stores, manual_cash_disburse, marinas_service_and_supplies, marketplaces, masonry_stonework_and_plaster, massage_parlors, medical_and_dental_labs, medical_dental_ophthalmic_and_hospital_equipment_and_supplies, medical_services, membership_organizations, mens_and_boys_clothing_and_accessories_stores, mens_womens_clothing_stores, metal_service_centers, miscellaneous, miscellaneous_apparel_and_accessory_shops, miscellaneous_auto_dealers, miscellaneous_business_services, miscellaneous_food_stores, miscellaneous_general_merchandise, miscellaneous_general_services, miscellaneous_home_furnishing_specialty_stores, miscellaneous_publishing_and_printing, miscellaneous_recreation_services, miscellaneous_repair_shops, miscellaneous_specialty_retail, mobile_home_dealers, motion_picture_theaters, motor_freight_carriers_and_trucking, motor_homes_dealers, motor_vehicle_supplies_and_new_parts, motorcycle_shops_and_dealers, motorcycle_shops_dealers, music_stores_musical_instruments_pianos_and_sheet_music, news_dealers_and_newsstands, non_fi_money_orders, non_fi_stored_value_card_purchase_load, nondurable_goods, nurseries_lawn_and_garden_supply_stores, nursing_personal_care, office_and_commercial_furniture, opticians_eyeglasses, optometrists_ophthalmologist, orthopedic_goods_prosthetic_devices, osteopaths, package_stores_beer_wine_and_liquor, paints_varnishes_and_supplies, parking_lots_garages, passenger_railways, pawn_shops, pet_shops_pet_food_and_supplies, petroleum_and_petroleum_products, photo_developing, photographic_photocopy_microfilm_equipment_and_supplies, photographic_studios, picture_video_production, piece_goods_notions_and_other_dry_goods, plumbing_heating_equipment_and_supplies, political_organizations, postal_services_government_only, precious_stones_and_metals_watches_and_jewelry, professional_services, public_warehousing_and_storage, quick_copy_repro_and_blueprint, railroads, real_estate_agents_and_managers_rentals, record_stores, recreational_vehicle_rentals, religious_goods_stores, religious_organizations, roofing_siding_sheet_metal, secretarial_support_services, security_brokers_dealers, service_stations, sewing_needlework_fabric_and_piece_goods_stores, shoe_repair_hat_cleaning, shoe_stores, small_appliance_repair, snowmobile_dealers, special_trade_services, specialty_cleaning, sporting_goods_stores, sporting_recreation_camps, sports_and_riding_apparel_stores, sports_clubs_fields, stamp_and_coin_stores, stationary_office_supplies_printing_and_writing_paper, stationery_stores_office_and_school_supply_stores, swimming_pools_sales, t_ui_travel_germany, tailors_alterations, tax_payments_government_agencies, tax_preparation_services, taxicabs_limousines, telecommunication_equipment_and_telephone_sales, telecommunication_services, telegraph_services, tent_and_awning_shops, testing_laboratories, theatrical_ticket_agencies, timeshares, tire_retreading_and_repair, tolls_bridge_fees, tourist_attractions_and_exhibits, towing_services, trailer_parks_campgrounds, transportation_services, travel_agencies_tour_operators, truck_stop_iteration, truck_utility_trailer_rentals, typesetting_plate_making_and_related_services, typewriter_stores, u_s_federal_government_agencies_or_departments, uniforms_commercial_clothing, used_merchandise_and_secondhand_stores, utilities, variety_stores, veterinary_services, video_amusement_game_supplies, video_game_arcades, video_tape_rental_stores, vocational_trade_schools, watch_jewelry_repair, welding_repair, wholesale_clubs, wig_and_toupee_stores, wires_money_orders, womens_accessory_and_specialty_shops, womens_ready_to_wear_stores, wrecking_and_salvage_yards
allowed_categories (anyOf 2)nullAlternative
allowed_merchant_countriesJSONOptional
allowed_merchant_countries (anyOf 1)arrayAlternativeArray of strings containing representing countries from which authorizations will be allowed. Authorizations from merchants in all other countries will be declined. Country codes should be ISO 3166 alpha-2 country codes (e.g. `US`). Cannot be set with `blocked_merchant_countries`. Provide an empty value to unset this control.
allowed_merchant_countries (anyOf 1)[]stringEach itemMaximum length: 5000
allowed_merchant_countries (anyOf 2)nullAlternative
blocked_card_presencesJSONOptional
blocked_card_presences (anyOf 1)arrayAlternativeArray of card presence statuses from which authorizations will be declined. Possible options are `present`, `not_present`. Cannot be set with `allowed_card_presences`. Provide an empty value to unset this control.
blocked_card_presences (anyOf 1)[]stringEach itemKnown values: not_present, present
blocked_card_presences (anyOf 2)nullAlternative
blocked_categoriesJSONOptional
blocked_categories (anyOf 1)arrayAlternativeArray of strings containing [categories](https://docs.stripe.com/api#issuing_authorization_object-merchant_data-category) of authorizations to decline. All other categories will be allowed. Cannot be set with `allowed_categories`.
blocked_categories (anyOf 1)[]stringEach itemKnown values: ac_refrigeration_repair, accounting_bookkeeping_services, advertising_services, agricultural_cooperative, airlines_air_carriers, airports_flying_fields, ambulance_services, amusement_parks_carnivals, antique_reproductions, antique_shops, aquariums, architectural_surveying_services, art_dealers_and_galleries, artists_supply_and_craft_shops, auto_and_home_supply_stores, auto_body_repair_shops, auto_paint_shops, auto_service_shops, automated_cash_disburse, automated_fuel_dispensers, automobile_associations, automotive_parts_and_accessories_stores, automotive_tire_stores, bail_and_bond_payments, bakeries, bands_orchestras, barber_and_beauty_shops, betting_casino_gambling, bicycle_shops, billiard_pool_establishments, boat_dealers, boat_rentals_and_leases, book_stores, books_periodicals_and_newspapers, bowling_alleys, bus_lines, business_secretarial_schools, buying_shopping_services, cable_satellite_and_other_pay_television_and_radio, camera_and_photographic_supply_stores, candy_nut_and_confectionery_stores, car_and_truck_dealers_new_used, car_and_truck_dealers_used_only, car_rental_agencies, car_washes, carpentry_services, carpet_upholstery_cleaning, caterers, charitable_and_social_service_organizations_fundraising, chemicals_and_allied_products, child_care_services, childrens_and_infants_wear_stores, chiropodists_podiatrists, chiropractors, cigar_stores_and_stands, civic_social_fraternal_associations, cleaning_and_maintenance, clothing_rental, colleges_universities, commercial_equipment, commercial_footwear, commercial_photography_art_and_graphics, commuter_transport_and_ferries, computer_network_services, computer_programming, computer_repair, computer_software_stores, computers_peripherals_and_software, concrete_work_services, construction_materials, consulting_public_relations, correspondence_schools, cosmetic_stores, counseling_services, country_clubs, courier_services, court_costs, credit_reporting_agencies, cruise_lines, dairy_products_stores, dance_hall_studios_schools, dating_escort_services, dentists_orthodontists, department_stores, detective_agencies, digital_goods_applications, digital_goods_games, digital_goods_large_volume, digital_goods_media, direct_marketing_catalog_merchant, direct_marketing_combination_catalog_and_retail_merchant, direct_marketing_inbound_telemarketing, direct_marketing_insurance_services, direct_marketing_other, direct_marketing_outbound_telemarketing, direct_marketing_subscription, direct_marketing_travel, discount_stores, doctors, door_to_door_sales, drapery_window_covering_and_upholstery_stores, drinking_places, drug_stores_and_pharmacies, drugs_drug_proprietaries_and_druggist_sundries, dry_cleaners, durable_goods, duty_free_stores, eating_places_restaurants, educational_services, electric_razor_stores, electric_vehicle_charging, electrical_parts_and_equipment, electrical_services, electronics_repair_shops, electronics_stores, elementary_secondary_schools, emergency_services_gcas_visa_use_only, employment_temp_agencies, equipment_rental, exterminating_services, family_clothing_stores, fast_food_restaurants, financial_institutions, fines_government_administrative_entities, fireplace_fireplace_screens_and_accessories_stores, floor_covering_stores, florists, florists_supplies_nursery_stock_and_flowers, freezer_and_locker_meat_provisioners, fuel_dealers_non_automotive, funeral_services_crematories, furniture_home_furnishings_and_equipment_stores_except_appliances, furniture_repair_refinishing, furriers_and_fur_shops, general_services, gift_card_novelty_and_souvenir_shops, glass_paint_and_wallpaper_stores, glassware_crystal_stores, golf_courses_public, government_licensed_horse_dog_racing_us_region_only, government_licensed_online_casions_online_gambling_us_region_only, government_owned_lotteries_non_us_region, government_owned_lotteries_us_region_only, government_services, grocery_stores_supermarkets, hardware_equipment_and_supplies, hardware_stores, health_and_beauty_spas, hearing_aids_sales_and_supplies, heating_plumbing_a_c, hobby_toy_and_game_shops, home_supply_warehouse_stores, hospitals, hotels_motels_and_resorts, household_appliance_stores, industrial_supplies, information_retrieval_services, insurance_default, insurance_underwriting_premiums, intra_company_purchases, jewelry_stores_watches_clocks_and_silverware_stores, landscaping_services, laundries, laundry_cleaning_services, legal_services_attorneys, luggage_and_leather_goods_stores, lumber_building_materials_stores, manual_cash_disburse, marinas_service_and_supplies, marketplaces, masonry_stonework_and_plaster, massage_parlors, medical_and_dental_labs, medical_dental_ophthalmic_and_hospital_equipment_and_supplies, medical_services, membership_organizations, mens_and_boys_clothing_and_accessories_stores, mens_womens_clothing_stores, metal_service_centers, miscellaneous, miscellaneous_apparel_and_accessory_shops, miscellaneous_auto_dealers, miscellaneous_business_services, miscellaneous_food_stores, miscellaneous_general_merchandise, miscellaneous_general_services, miscellaneous_home_furnishing_specialty_stores, miscellaneous_publishing_and_printing, miscellaneous_recreation_services, miscellaneous_repair_shops, miscellaneous_specialty_retail, mobile_home_dealers, motion_picture_theaters, motor_freight_carriers_and_trucking, motor_homes_dealers, motor_vehicle_supplies_and_new_parts, motorcycle_shops_and_dealers, motorcycle_shops_dealers, music_stores_musical_instruments_pianos_and_sheet_music, news_dealers_and_newsstands, non_fi_money_orders, non_fi_stored_value_card_purchase_load, nondurable_goods, nurseries_lawn_and_garden_supply_stores, nursing_personal_care, office_and_commercial_furniture, opticians_eyeglasses, optometrists_ophthalmologist, orthopedic_goods_prosthetic_devices, osteopaths, package_stores_beer_wine_and_liquor, paints_varnishes_and_supplies, parking_lots_garages, passenger_railways, pawn_shops, pet_shops_pet_food_and_supplies, petroleum_and_petroleum_products, photo_developing, photographic_photocopy_microfilm_equipment_and_supplies, photographic_studios, picture_video_production, piece_goods_notions_and_other_dry_goods, plumbing_heating_equipment_and_supplies, political_organizations, postal_services_government_only, precious_stones_and_metals_watches_and_jewelry, professional_services, public_warehousing_and_storage, quick_copy_repro_and_blueprint, railroads, real_estate_agents_and_managers_rentals, record_stores, recreational_vehicle_rentals, religious_goods_stores, religious_organizations, roofing_siding_sheet_metal, secretarial_support_services, security_brokers_dealers, service_stations, sewing_needlework_fabric_and_piece_goods_stores, shoe_repair_hat_cleaning, shoe_stores, small_appliance_repair, snowmobile_dealers, special_trade_services, specialty_cleaning, sporting_goods_stores, sporting_recreation_camps, sports_and_riding_apparel_stores, sports_clubs_fields, stamp_and_coin_stores, stationary_office_supplies_printing_and_writing_paper, stationery_stores_office_and_school_supply_stores, swimming_pools_sales, t_ui_travel_germany, tailors_alterations, tax_payments_government_agencies, tax_preparation_services, taxicabs_limousines, telecommunication_equipment_and_telephone_sales, telecommunication_services, telegraph_services, tent_and_awning_shops, testing_laboratories, theatrical_ticket_agencies, timeshares, tire_retreading_and_repair, tolls_bridge_fees, tourist_attractions_and_exhibits, towing_services, trailer_parks_campgrounds, transportation_services, travel_agencies_tour_operators, truck_stop_iteration, truck_utility_trailer_rentals, typesetting_plate_making_and_related_services, typewriter_stores, u_s_federal_government_agencies_or_departments, uniforms_commercial_clothing, used_merchandise_and_secondhand_stores, utilities, variety_stores, veterinary_services, video_amusement_game_supplies, video_game_arcades, video_tape_rental_stores, vocational_trade_schools, watch_jewelry_repair, welding_repair, wholesale_clubs, wig_and_toupee_stores, wires_money_orders, womens_accessory_and_specialty_shops, womens_ready_to_wear_stores, wrecking_and_salvage_yards
blocked_categories (anyOf 2)nullAlternative
blocked_merchant_countriesJSONOptional
blocked_merchant_countries (anyOf 1)arrayAlternativeArray of strings containing representing countries from which authorizations will be declined. Country codes should be ISO 3166 alpha-2 country codes (e.g. `US`). Cannot be set with `allowed_merchant_countries`. Provide an empty value to unset this control.
blocked_merchant_countries (anyOf 1)[]stringEach itemMaximum length: 5000
blocked_merchant_countries (anyOf 2)nullAlternative
spending_limitsJSONOptional
spending_limits (anyOf 1)arrayAlternativeLimit spending with amount-based rules that apply across any cards this card replaced (i.e., its `replacement_for` card and _that_ card's `replacement_for` card, up the chain).
spending_limits (anyOf 1)[]ModelEach itemExpand Fail a testmode card — response body — spending controls spending limits array item
spending_limits (anyOf 2)nullAlternative
spending_limits_currencyJSONOptional
spending_limits_currency (anyOf 1)stringAlternativeCurrency of the amounts within `spending_limits`. Always the same as the currency of the card.
Format: currency
spending_limits_currency (anyOf 2)nullAlternative

Referenced models: Fail a testmode card — response body — spending controls spending limits array item

Fail a testmode card — response body — spending controls spending limits array item

FieldTypePresenceDescription and constraints
$objectRoot
amountJSONRequired within parent
amount (anyOf 1)integerAlternativeMaximum amount allowed to spend per interval. This amount is in the card's currency and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
amount (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
categoriesJSONOptional
categories (anyOf 1)arrayAlternativeArray of strings containing [categories](https://docs.stripe.com/api#issuing_authorization_object-merchant_data-category) this limit applies to. Omitting this field will apply the limit to all categories.
categories (anyOf 1)[]stringEach itemKnown values: ac_refrigeration_repair, accounting_bookkeeping_services, advertising_services, agricultural_cooperative, airlines_air_carriers, airports_flying_fields, ambulance_services, amusement_parks_carnivals, antique_reproductions, antique_shops, aquariums, architectural_surveying_services, art_dealers_and_galleries, artists_supply_and_craft_shops, auto_and_home_supply_stores, auto_body_repair_shops, auto_paint_shops, auto_service_shops, automated_cash_disburse, automated_fuel_dispensers, automobile_associations, automotive_parts_and_accessories_stores, automotive_tire_stores, bail_and_bond_payments, bakeries, bands_orchestras, barber_and_beauty_shops, betting_casino_gambling, bicycle_shops, billiard_pool_establishments, boat_dealers, boat_rentals_and_leases, book_stores, books_periodicals_and_newspapers, bowling_alleys, bus_lines, business_secretarial_schools, buying_shopping_services, cable_satellite_and_other_pay_television_and_radio, camera_and_photographic_supply_stores, candy_nut_and_confectionery_stores, car_and_truck_dealers_new_used, car_and_truck_dealers_used_only, car_rental_agencies, car_washes, carpentry_services, carpet_upholstery_cleaning, caterers, charitable_and_social_service_organizations_fundraising, chemicals_and_allied_products, child_care_services, childrens_and_infants_wear_stores, chiropodists_podiatrists, chiropractors, cigar_stores_and_stands, civic_social_fraternal_associations, cleaning_and_maintenance, clothing_rental, colleges_universities, commercial_equipment, commercial_footwear, commercial_photography_art_and_graphics, commuter_transport_and_ferries, computer_network_services, computer_programming, computer_repair, computer_software_stores, computers_peripherals_and_software, concrete_work_services, construction_materials, consulting_public_relations, correspondence_schools, cosmetic_stores, counseling_services, country_clubs, courier_services, court_costs, credit_reporting_agencies, cruise_lines, dairy_products_stores, dance_hall_studios_schools, dating_escort_services, dentists_orthodontists, department_stores, detective_agencies, digital_goods_applications, digital_goods_games, digital_goods_large_volume, digital_goods_media, direct_marketing_catalog_merchant, direct_marketing_combination_catalog_and_retail_merchant, direct_marketing_inbound_telemarketing, direct_marketing_insurance_services, direct_marketing_other, direct_marketing_outbound_telemarketing, direct_marketing_subscription, direct_marketing_travel, discount_stores, doctors, door_to_door_sales, drapery_window_covering_and_upholstery_stores, drinking_places, drug_stores_and_pharmacies, drugs_drug_proprietaries_and_druggist_sundries, dry_cleaners, durable_goods, duty_free_stores, eating_places_restaurants, educational_services, electric_razor_stores, electric_vehicle_charging, electrical_parts_and_equipment, electrical_services, electronics_repair_shops, electronics_stores, elementary_secondary_schools, emergency_services_gcas_visa_use_only, employment_temp_agencies, equipment_rental, exterminating_services, family_clothing_stores, fast_food_restaurants, financial_institutions, fines_government_administrative_entities, fireplace_fireplace_screens_and_accessories_stores, floor_covering_stores, florists, florists_supplies_nursery_stock_and_flowers, freezer_and_locker_meat_provisioners, fuel_dealers_non_automotive, funeral_services_crematories, furniture_home_furnishings_and_equipment_stores_except_appliances, furniture_repair_refinishing, furriers_and_fur_shops, general_services, gift_card_novelty_and_souvenir_shops, glass_paint_and_wallpaper_stores, glassware_crystal_stores, golf_courses_public, government_licensed_horse_dog_racing_us_region_only, government_licensed_online_casions_online_gambling_us_region_only, government_owned_lotteries_non_us_region, government_owned_lotteries_us_region_only, government_services, grocery_stores_supermarkets, hardware_equipment_and_supplies, hardware_stores, health_and_beauty_spas, hearing_aids_sales_and_supplies, heating_plumbing_a_c, hobby_toy_and_game_shops, home_supply_warehouse_stores, hospitals, hotels_motels_and_resorts, household_appliance_stores, industrial_supplies, information_retrieval_services, insurance_default, insurance_underwriting_premiums, intra_company_purchases, jewelry_stores_watches_clocks_and_silverware_stores, landscaping_services, laundries, laundry_cleaning_services, legal_services_attorneys, luggage_and_leather_goods_stores, lumber_building_materials_stores, manual_cash_disburse, marinas_service_and_supplies, marketplaces, masonry_stonework_and_plaster, massage_parlors, medical_and_dental_labs, medical_dental_ophthalmic_and_hospital_equipment_and_supplies, medical_services, membership_organizations, mens_and_boys_clothing_and_accessories_stores, mens_womens_clothing_stores, metal_service_centers, miscellaneous, miscellaneous_apparel_and_accessory_shops, miscellaneous_auto_dealers, miscellaneous_business_services, miscellaneous_food_stores, miscellaneous_general_merchandise, miscellaneous_general_services, miscellaneous_home_furnishing_specialty_stores, miscellaneous_publishing_and_printing, miscellaneous_recreation_services, miscellaneous_repair_shops, miscellaneous_specialty_retail, mobile_home_dealers, motion_picture_theaters, motor_freight_carriers_and_trucking, motor_homes_dealers, motor_vehicle_supplies_and_new_parts, motorcycle_shops_and_dealers, motorcycle_shops_dealers, music_stores_musical_instruments_pianos_and_sheet_music, news_dealers_and_newsstands, non_fi_money_orders, non_fi_stored_value_card_purchase_load, nondurable_goods, nurseries_lawn_and_garden_supply_stores, nursing_personal_care, office_and_commercial_furniture, opticians_eyeglasses, optometrists_ophthalmologist, orthopedic_goods_prosthetic_devices, osteopaths, package_stores_beer_wine_and_liquor, paints_varnishes_and_supplies, parking_lots_garages, passenger_railways, pawn_shops, pet_shops_pet_food_and_supplies, petroleum_and_petroleum_products, photo_developing, photographic_photocopy_microfilm_equipment_and_supplies, photographic_studios, picture_video_production, piece_goods_notions_and_other_dry_goods, plumbing_heating_equipment_and_supplies, political_organizations, postal_services_government_only, precious_stones_and_metals_watches_and_jewelry, professional_services, public_warehousing_and_storage, quick_copy_repro_and_blueprint, railroads, real_estate_agents_and_managers_rentals, record_stores, recreational_vehicle_rentals, religious_goods_stores, religious_organizations, roofing_siding_sheet_metal, secretarial_support_services, security_brokers_dealers, service_stations, sewing_needlework_fabric_and_piece_goods_stores, shoe_repair_hat_cleaning, shoe_stores, small_appliance_repair, snowmobile_dealers, special_trade_services, specialty_cleaning, sporting_goods_stores, sporting_recreation_camps, sports_and_riding_apparel_stores, sports_clubs_fields, stamp_and_coin_stores, stationary_office_supplies_printing_and_writing_paper, stationery_stores_office_and_school_supply_stores, swimming_pools_sales, t_ui_travel_germany, tailors_alterations, tax_payments_government_agencies, tax_preparation_services, taxicabs_limousines, telecommunication_equipment_and_telephone_sales, telecommunication_services, telegraph_services, tent_and_awning_shops, testing_laboratories, theatrical_ticket_agencies, timeshares, tire_retreading_and_repair, tolls_bridge_fees, tourist_attractions_and_exhibits, towing_services, trailer_parks_campgrounds, transportation_services, travel_agencies_tour_operators, truck_stop_iteration, truck_utility_trailer_rentals, typesetting_plate_making_and_related_services, typewriter_stores, u_s_federal_government_agencies_or_departments, uniforms_commercial_clothing, used_merchandise_and_secondhand_stores, utilities, variety_stores, veterinary_services, video_amusement_game_supplies, video_game_arcades, video_tape_rental_stores, vocational_trade_schools, watch_jewelry_repair, welding_repair, wholesale_clubs, wig_and_toupee_stores, wires_money_orders, womens_accessory_and_specialty_shops, womens_ready_to_wear_stores, wrecking_and_salvage_yards
categories (anyOf 2)nullAlternative
intervalstringRequired within parentInterval (or event) to which the amount applies.
Known values: all_time, daily, monthly, per_authorization, weekly, yearly

Fail a testmode card — response body — wallets value apple pay, google pay, primary account identifier

FieldTypePresenceDescription and constraints
$objectRoot
apple_payModelRequired within parentExpand Fail a testmode card — response body — wallets value apple pay, google pay, primary account identifier apple pay
google_payModelRequired within parentExpand Fail a testmode card — response body — wallets value apple pay, google pay, primary account identifier google pay
primary_account_identifierJSONOptional
primary_account_identifier (anyOf 1)stringAlternativeUnique identifier for a card used with digital wallets
Maximum length: 5000
primary_account_identifier (anyOf 2)nullAlternative

Referenced models: Fail a testmode card — response body — wallets value apple pay, google pay, primary account identifier apple pay, Fail a testmode card — response body — wallets value apple pay, google pay, primary account identifier google pay

Fail a testmode card — response body — wallets value apple pay, google pay, primary account identifier apple pay

FieldTypePresenceDescription and constraints
$objectRoot
eligiblebooleanRequired within parentApple Pay Eligibility
ineligible_reasonJSONOptional
ineligible_reason (anyOf 1)stringAlternativeReason the card is ineligible for Apple Pay
Known values: missing_agreement, missing_cardholder_contact, unsupported_region
ineligible_reason (anyOf 2)nullAlternative

Fail a testmode card — response body — wallets value apple pay, google pay, primary account identifier google pay

FieldTypePresenceDescription and constraints
$objectRoot
eligiblebooleanRequired within parentGoogle Pay Eligibility
ineligible_reasonJSONOptional
ineligible_reason (anyOf 1)stringAlternativeReason the card is ineligible for Google Pay
Known values: missing_agreement, missing_cardholder_contact, unsupported_region
ineligible_reason (anyOf 2)nullAlternative

Fund a test mode cash balance — response body

FieldTypePresenceDescription and constraints
$objectRootCustomers with certain payments enabled have a cash balance, representing funds that were paid
by the customer to a merchant, but have not yet been allocated to a payment. Cash Balance Transactions
represent when funds are moved into or out of this balance. This includes funding by the customer, allocation
to payments, and refunds to the customer.
adjusted_for_overdraftModelOptionalExpand Fund a test mode cash balance — response body — adjusted for overdraft
applied_to_paymentModelOptionalExpand Fund a test mode cash balance — response body — applied to payment
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]+)?$
currencystringRequired within parentThree-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
Maximum length: 5000
customerJSONRequired within parentThe customer whose available cash balance changed as a result of this transaction.
customer (anyOf 1)stringAlternativeMaximum length: 5000
customer (anyOf 2)ModelAlternativeExpand Create a customer — response body
customer_accountJSONOptional
customer_account (anyOf 1)stringAlternativeThe ID of an Account representing a customer whose available cash balance changed as a result of this transaction.
Maximum length: 5000
customer_account (anyOf 2)nullAlternative
ending_balanceJSONRequired within parent
ending_balance (anyOf 1)integerAlternativeThe total available cash balance for the specified currency after this transaction was applied. Represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
ending_balance (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
fundedModelOptionalExpand Fund a test mode cash balance — response body — funded
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`.
net_amountJSONRequired within parent
net_amount (anyOf 1)integerAlternativeThe amount by which the cash balance changed, represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). A positive value represents funds being added to the cash balance, a negative value represents funds being removed from the cash balance.
net_amount (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
objectstringRequired within parentString representing the object's type. Objects of the same type share the same value.
Known values: customer_cash_balance_transaction
refunded_from_paymentModelOptionalExpand Fund a test mode cash balance — response body — refunded from payment
transferred_to_balanceModelOptionalExpand Fund a test mode cash balance — response body — transferred to balance
typestringRequired within parentThe type of the cash balance transaction. New types may be added in future. See [Customer Balance](https://docs.stripe.com/payments/customer-balance#types) to learn more about these types.
Known values: adjusted_for_overdraft, applied_to_payment, funded, funding_reversed, refunded_from_payment, return_canceled, return_initiated, transferred_to_balance, unapplied_from_payment
unapplied_from_paymentModelOptionalExpand Fund a test mode cash balance — response body — unapplied from payment

Referenced models: Create a customer — response body, Fund a test mode cash balance — response body — adjusted for overdraft, Fund a test mode cash balance — response body — applied to payment, Fund a test mode cash balance — response body — funded, Fund a test mode cash balance — response body — refunded from payment, Fund a test mode cash balance — response body — transferred to balance, Fund a test mode cash balance — response body — unapplied from payment

Fund a test mode cash balance — response body — adjusted for overdraft

FieldTypePresenceDescription and constraints
$objectRoot
balance_transactionJSONRequired within parentThe [Balance Transaction](https://docs.stripe.com/api/balance_transactions/object) that corresponds to funds taken out of your Stripe balance.
balance_transaction (anyOf 1)stringAlternativeMaximum length: 5000
balance_transaction (anyOf 2)ModelAlternativeExpand Retrieve a balance transaction — balance get Balance History Id — response body
linked_transactionJSONRequired within parentThe [Cash Balance Transaction](https://docs.stripe.com/api/cash_balance_transactions/object) that brought the customer balance negative, triggering the clawback of funds.
linked_transaction (anyOf 1)stringAlternativeMaximum length: 5000
linked_transaction (anyOf 2)ModelAlternativeExpand Fund a test mode cash balance — response body

Referenced models: Retrieve a balance transaction — balance get Balance History Id — response body, Fund a test mode cash balance — response body

Fund a test mode cash balance — response body — applied to payment

FieldTypePresenceDescription and constraints
$objectRoot
payment_intentJSONRequired within parentThe [Payment Intent](https://docs.stripe.com/api/payment_intents/object) that funds were applied to.
payment_intent (anyOf 1)stringAlternativeMaximum length: 5000
payment_intent (anyOf 2)ModelAlternativeExpand Cancel a Payment Intent — response body

Referenced models: Cancel a Payment Intent — response body

Fund a test mode cash balance — response body — funded

FieldTypePresenceDescription and constraints
$objectRoot
bank_transferModelRequired within parentExpand Fund a test mode cash balance — response body — funded bank transfer

Referenced models: Fund a test mode cash balance — response body — funded bank transfer

Fund a test mode cash balance — response body — funded bank transfer

FieldTypePresenceDescription and constraints
$objectRoot
eu_bank_transferModelOptionalExpand Fund a test mode cash balance — response body — funded bank transfer eu bank transfer
gb_bank_transferModelOptionalExpand Fund a test mode cash balance — response body — funded bank transfer gb bank transfer
jp_bank_transferModelOptionalExpand Fund a test mode cash balance — response body — funded bank transfer jp bank transfer
referenceJSONOptional
reference (anyOf 1)stringAlternativeThe user-supplied reference field on the bank transfer.
Maximum length: 5000
reference (anyOf 2)nullAlternative
typestringRequired within parentThe funding method type used to fund the customer balance. Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
Known values: eu_bank_transfer, gb_bank_transfer, jp_bank_transfer, mx_bank_transfer, us_bank_transfer
us_bank_transferModelOptionalExpand Fund a test mode cash balance — response body — funded bank transfer us bank transfer

Referenced models: Fund a test mode cash balance — response body — funded bank transfer eu bank transfer, Fund a test mode cash balance — response body — funded bank transfer gb bank transfer, Fund a test mode cash balance — response body — funded bank transfer jp bank transfer, Fund a test mode cash balance — response body — funded bank transfer us bank transfer

Fund a test mode cash balance — response body — funded bank transfer eu bank transfer

FieldTypePresenceDescription and constraints
$objectRoot
bicJSONOptional
bic (anyOf 1)stringAlternativeThe BIC of the bank of the sender of the funding.
Maximum length: 5000
bic (anyOf 2)nullAlternative
iban_last4JSONOptional
iban_last4 (anyOf 1)stringAlternativeThe last 4 digits of the IBAN of the sender of the funding.
Maximum length: 5000
iban_last4 (anyOf 2)nullAlternative
sender_nameJSONOptional
sender_name (anyOf 1)stringAlternativeThe full name of the sender, as supplied by the sending bank.
Maximum length: 5000
sender_name (anyOf 2)nullAlternative

Fund a test mode cash balance — response body — funded bank transfer gb bank transfer

FieldTypePresenceDescription and constraints
$objectRoot
account_number_last4JSONOptional
account_number_last4 (anyOf 1)stringAlternativeThe last 4 digits of the account number of the sender of the funding.
Maximum length: 5000
account_number_last4 (anyOf 2)nullAlternative
sender_nameJSONOptional
sender_name (anyOf 1)stringAlternativeThe full name of the sender, as supplied by the sending bank.
Maximum length: 5000
sender_name (anyOf 2)nullAlternative
sort_codeJSONOptional
sort_code (anyOf 1)stringAlternativeThe sort code of the bank of the sender of the funding
Maximum length: 5000
sort_code (anyOf 2)nullAlternative

Fund a test mode cash balance — response body — funded bank transfer jp bank transfer

FieldTypePresenceDescription and constraints
$objectRoot
sender_bankJSONOptional
sender_bank (anyOf 1)stringAlternativeThe name of the bank of the sender of the funding.
Maximum length: 5000
sender_bank (anyOf 2)nullAlternative
sender_branchJSONOptional
sender_branch (anyOf 1)stringAlternativeThe name of the bank branch of the sender of the funding.
Maximum length: 5000
sender_branch (anyOf 2)nullAlternative
sender_nameJSONOptional
sender_name (anyOf 1)stringAlternativeThe full name of the sender, as supplied by the sending bank.
Maximum length: 5000
sender_name (anyOf 2)nullAlternative

Fund a test mode cash balance — response body — funded bank transfer us bank transfer

FieldTypePresenceDescription and constraints
$objectRoot
networkstringOptionalThe banking network used for this funding.
Known values: ach, domestic_wire_us, swift
sender_nameJSONOptional
sender_name (anyOf 1)stringAlternativeThe full name of the sender, as supplied by the sending bank.
Maximum length: 5000
sender_name (anyOf 2)nullAlternative

Fund a test mode cash balance — response body — refunded from payment

FieldTypePresenceDescription and constraints
$objectRoot
refundJSONRequired within parentThe [Refund](https://docs.stripe.com/api/refunds/object) that moved these funds into the customer's cash balance.
refund (anyOf 1)stringAlternativeMaximum length: 5000
refund (anyOf 2)ModelAlternativeExpand Cancel a refund — response body

Referenced models: Cancel a refund — response body

Fund a test mode cash balance — response body — transferred to balance

FieldTypePresenceDescription and constraints
$objectRoot
balance_transactionJSONRequired within parentThe [Balance Transaction](https://docs.stripe.com/api/balance_transactions/object) that corresponds to funds transferred to your Stripe balance.
balance_transaction (anyOf 1)stringAlternativeMaximum length: 5000
balance_transaction (anyOf 2)ModelAlternativeExpand Retrieve a balance transaction — balance get Balance History Id — response body

Referenced models: Retrieve a balance transaction — balance get Balance History Id — response body

Fund a test mode cash balance — response body — unapplied from payment

FieldTypePresenceDescription and constraints
$objectRoot
payment_intentJSONRequired within parentThe [Payment Intent](https://docs.stripe.com/api/payment_intents/object) that funds were unapplied from.
payment_intent (anyOf 1)stringAlternativeMaximum length: 5000
payment_intent (anyOf 2)ModelAlternativeExpand Cancel a Payment Intent — response body

Referenced models: Cancel a Payment Intent — response body

Test mode: Update an Outbound Payment — request body — body

FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
expandarrayOptionalSpecifies which fields in the response should be expanded.
expand[]stringEach itemMaximum length: 5000
tracking_detailsobjectRequired within parentDetails about network-specific tracking information.
tracking_details.achobjectOptional
tracking_details.ach.trace_idstringRequired within parentMaximum length: 5000
tracking_details.typestringRequired within parentOne of: ach, us_domestic_wire
tracking_details.us_domestic_wireobjectOptional
tracking_details.us_domestic_wire.chipsstringOptionalMaximum length: 5000
tracking_details.us_domestic_wire.imadstringOptionalMaximum length: 5000
tracking_details.us_domestic_wire.omadstringOptionalMaximum length: 5000

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.