IssuingAuthorization
When an issued card is used to make a purchase, an Issuing Authorization
object is created. Authorizations must be approved for the
purchase to be completed successfully.
Related guide: Issued card authorizations
Summary
Types
@type amount_details() :: %{ optional(:atm_fee) => integer() | nil, optional(:cashback_amount) => integer() | nil, optional(String.t()) => term() }
atm_fee- The fee charged by the ATM for the cash withdrawal. Nullable.cashback_amount- The amount of cash requested by the cardholder. Nullable.
@type fleet() :: %{ optional(:cardholder_prompt_data) => fleet_cardholder_prompt_data() | nil, optional(:purchase_type) => String.t() | nil, optional(:reported_breakdown) => fleet_reported_breakdown() | nil, optional(:service_type) => String.t() | nil, optional(String.t()) => term() }
cardholder_prompt_data- Answers to prompts presented to the cardholder at the point of sale. Prompted fields vary depending on the configuration of your physical fleet cards. Typical points of sale support only numeric entry. Nullable.purchase_type- The type of purchase. Possible values:fuel_and_non_fuel_purchase,fuel_purchase,non_fuel_purchase. Nullable.reported_breakdown- More information about the total amount. Typically this information is received from the merchant after the authorization has been approved and the fuel dispensed. This information is not guaranteed to be accurate as some merchants may provide unreliable data. Nullable.service_type- The type of fuel service. Possible values:full_service,non_fuel_transaction,self_service. Nullable.
@type fleet_cardholder_prompt_data() :: %{ optional(:alphanumeric_id) => String.t() | nil, optional(:driver_id) => String.t() | nil, optional(:odometer) => integer() | nil, optional(:unspecified_id) => String.t() | nil, optional(:user_id) => String.t() | nil, optional(:vehicle_number) => String.t() | nil, optional(String.t()) => term() }
alphanumeric_id- [Deprecated] An alphanumeric ID, though typical point of sales only support numeric entry. The card program can be configured to prompt for a vehicle ID, driver ID, or generic ID. Max length: 5000. Nullable.driver_id- Driver ID. Max length: 5000. Nullable.odometer- Odometer reading. Nullable.unspecified_id- An alphanumeric ID. This field is used when a vehicle ID, driver ID, or generic ID is entered by the cardholder, but the merchant or card network did not specify the prompt type. Max length: 5000. Nullable.user_id- User ID. Max length: 5000. Nullable.vehicle_number- Vehicle number. Max length: 5000. Nullable.
@type fleet_reported_breakdown() :: %{ optional(:fuel) => fleet_reported_breakdown_fuel() | nil, optional(:non_fuel) => fleet_reported_breakdown_non_fuel() | nil, optional(:tax) => fleet_reported_breakdown_tax() | nil, optional(String.t()) => term() }
fuel- Breakdown of fuel portion of the purchase. Nullable.non_fuel- Breakdown of non-fuel portion of the purchase. Nullable.tax- Information about tax included in this transaction. Nullable.
@type fleet_reported_breakdown_fuel() :: %{ optional(:gross_amount_decimal) => String.t() | nil, optional(String.t()) => term() }
gross_amount_decimal- Gross fuel amount that should equal Fuel Quantity multiplied by Fuel Unit Cost, inclusive of taxes. Format: decimal string. Nullable.
@type fleet_reported_breakdown_non_fuel() :: %{ optional(:gross_amount_decimal) => String.t() | nil, optional(String.t()) => term() }
gross_amount_decimal- Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes. Format: decimal string. Nullable.
@type fleet_reported_breakdown_tax() :: %{ optional(:local_amount_decimal) => String.t() | nil, optional(:national_amount_decimal) => String.t() | nil, optional(String.t()) => term() }
local_amount_decimal- Amount of state or provincial Sales Tax included in the transaction amount.nullif not reported by merchant or not subject to tax. Format: decimal string. Nullable.national_amount_decimal- Amount of national Sales Tax or VAT included in the transaction amount.nullif not reported by merchant or not subject to tax. Format: decimal string. Nullable.
@type fraud_challenges() :: %{ optional(:channel) => String.t() | nil, optional(:status) => String.t() | nil, optional(:undeliverable_reason) => String.t() | nil, optional(String.t()) => term() }
channel- The method by which the fraud challenge was delivered to the cardholder. Possible values:sms.status- The status of the fraud challenge. Possible values:expired,pending,rejected,undeliverable,verified.undeliverable_reason- If the challenge is not deliverable, the reason why. Possible values:no_phone_number,unsupported_phone_number. Nullable.
@type fuel() :: %{ optional(:industry_product_code) => String.t() | nil, optional(:quantity_decimal) => String.t() | nil, optional(:type) => String.t() | nil, optional(:unit) => String.t() | nil, optional(:unit_cost_decimal) => String.t() | nil, optional(String.t()) => term() }
industry_product_code- Conexxus Payment System Product Code identifying the primary fuel product purchased. Max length: 5000. Nullable.quantity_decimal- The quantity ofunits of fuel that was dispensed, represented as a decimal string with at most 12 decimal places. Format: decimal string. Nullable.type- The type of fuel that was purchased. Possible values:diesel,other,unleaded_plus,unleaded_regular,unleaded_super. Nullable.unit- The units forquantity_decimal. Possible values:charging_minute,imperial_gallon,kilogram,kilowatt_hour,liter,other,pound,us_gallon. Nullable.unit_cost_decimal- The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places. Format: decimal string. Nullable.
@type merchant_data() :: %{ optional(:category) => String.t() | nil, optional(:category_code) => String.t() | nil, optional(:city) => String.t() | nil, optional(:country) => String.t() | nil, optional(:name) => String.t() | nil, optional(:network_id) => String.t() | nil, optional(:postal_code) => String.t() | nil, optional(:state) => String.t() | nil, optional(:tax_id) => String.t() | nil, optional(:terminal_id) => String.t() | nil, optional(:url) => String.t() | nil, optional(String.t()) => term() }
category- A categorization of the seller's type of business. See our merchant categories guide for a list of possible values. Max length: 5000.category_code- The merchant category code for the seller’s business Max length: 5000.city- City where the seller is located Max length: 5000. Nullable.country- Country where the seller is located Max length: 5000. Nullable.name- Name of the seller Max length: 5000. Nullable.network_id- Identifier assigned to the seller by the card network. Different card networks may assign different network_id fields to the same merchant. Max length: 5000.postal_code- Postal code where the seller is located Max length: 5000. Nullable.state- State where the seller is located Max length: 5000. Nullable.tax_id- The seller's tax identification number. Currently populated for French merchants only. Max length: 5000. Nullable.terminal_id- An ID assigned by the seller to the location of the sale. Max length: 5000. Nullable.url- URL provided by the merchant on a 3DS request Max length: 5000. Nullable.
@type network_data() :: %{ optional(:acquiring_institution_id) => String.t() | nil, optional(:system_trace_audit_number) => String.t() | nil, optional(:transaction_id) => String.t() | nil, optional(String.t()) => term() }
acquiring_institution_id- Identifier assigned to the acquirer by the card network. Sometimes this value is not provided by the network; in this case, the value will benull. Max length: 5000. Nullable.system_trace_audit_number- The System Trace Audit Number (STAN) is a 6-digit identifier assigned by the acquirer. Prefernetwork_data.transaction_idif present, unless you have special requirements. Max length: 5000. Nullable.transaction_id- Unique identifier for the authorization assigned by the card network used to match subsequent messages, disputes, and transactions. Max length: 5000. Nullable.
@type pending_request() :: %{ optional(:amount) => integer() | nil, optional(:amount_details) => pending_request_amount_details() | nil, optional(:currency) => String.t() | nil, optional(:is_amount_controllable) => boolean() | nil, optional(:merchant_amount) => integer() | nil, optional(:merchant_currency) => String.t() | nil, optional(:network_risk_score) => integer() | nil, optional(String.t()) => term() }
amount- The additional amount Stripe will hold if the authorization is approved, in the card's currency and in the smallest currency unit.amount_details- Detailed breakdown of amount components. These amounts are denominated incurrencyand in the smallest currency unit. Nullable.currency- Three-letter ISO currency code, in lowercase. Must be a supported currency. Format: ISO 4217 currency code.is_amount_controllable- If settrue, you may provide amount to control how much to hold for the authorization.merchant_amount- The amount the merchant is requesting to be authorized in themerchant_currency. The amount is in the smallest currency unit.merchant_currency- The local currency the merchant is requesting to authorize. Format: ISO 4217 currency code.network_risk_score- The card network's estimate of the likelihood that an authorization is fraudulent. Takes on values between 1 and 99. Nullable.
@type pending_request_amount_details() :: %{ optional(:atm_fee) => integer() | nil, optional(:cashback_amount) => integer() | nil, optional(String.t()) => term() }
atm_fee- The fee charged by the ATM for the cash withdrawal. Nullable.cashback_amount- The amount of cash requested by the cardholder. Nullable.
@type request_history() :: %{ optional(:amount) => integer() | nil, optional(:amount_details) => request_history_amount_details() | nil, optional(:approved) => boolean() | nil, optional(:authorization_code) => String.t() | nil, optional(:created) => integer() | nil, optional(:currency) => String.t() | nil, optional(:merchant_amount) => integer() | nil, optional(:merchant_currency) => String.t() | nil, optional(:network_risk_score) => integer() | nil, optional(:reason) => String.t() | nil, optional(:reason_message) => String.t() | nil, optional(:requested_at) => integer() | nil, optional(String.t()) => term() }
amount- Thepending_request.amountat the time of the request, presented in your card's currency and in the smallest currency unit. Stripe held this amount from your account to fund the authorization if the request was approved.amount_details- Detailed breakdown of amount components. These amounts are denominated incurrencyand in the smallest currency unit. Nullable.approved- Whether this request was approved.authorization_code- A code created by Stripe which is shared with the merchant to validate the authorization. This field will be populated if the authorization message was approved. The code typically starts with the letter "S", followed by a six-digit number. For example, "S498162". Please note that the code is not guaranteed to be unique across authorizations. Max length: 5000. Nullable.created- Time at which the object was created. Measured in seconds since the Unix epoch. Format: Unix timestamp.currency- Three-letter ISO currency code, in lowercase. Must be a supported currency. Max length: 5000.merchant_amount- Thepending_request.merchant_amountat the time of the request, presented in themerchant_currencyand in the smallest currency unit.merchant_currency- The currency that was collected by the merchant and presented to the cardholder for the authorization. Three-letter ISO currency code, in lowercase. Must be a supported currency. Max length: 5000.network_risk_score- The card network's estimate of the likelihood that an authorization is fraudulent. Takes on values between 1 and 99. Nullable.reason- When an authorization is approved or declined by you or by Stripe, this field provides additional detail on the reason for the outcome. Possible values:account_disabled,card_active,card_canceled,card_expired,card_inactive,cardholder_blocked,cardholder_inactive,cardholder_verification_required,insecure_authorization_method,insufficient_funds,network_fallback,not_allowed,pin_blocked,spending_controls,suspected_fraud,verification_failed,webhook_approved,webhook_declined,webhook_error,webhook_timeout.reason_message- If therequest_history.reasoniswebhook_errorbecause the direct webhook response is invalid (for example, parsing errors or missing parameters), we surface a more detailed error message via this field. Max length: 5000. Nullable.requested_at- Time when the card network received an authorization request from the acquirer in UTC. Referred to by networks as transmission time. Format: Unix timestamp. Nullable.
@type request_history_amount_details() :: %{ optional(:atm_fee) => integer() | nil, optional(:cashback_amount) => integer() | nil, optional(String.t()) => term() }
atm_fee- The fee charged by the ATM for the cash withdrawal. Nullable.cashback_amount- The amount of cash requested by the cardholder. Nullable.
@type t() :: %Stripe.Resources.Issuing.Authorization{ amount: integer(), amount_details: amount_details(), approved: boolean(), authorization_method: String.t(), balance_transactions: [Stripe.Resources.BalanceTransaction.t()], card: Stripe.Resources.Issuing.Card.t(), cardholder: String.t() | Stripe.Resources.Issuing.Cardholder.t(), created: integer(), currency: String.t(), fleet: fleet(), fraud_challenges: [fraud_challenges()] | nil, fuel: fuel(), id: String.t(), livemode: boolean(), merchant_amount: integer(), merchant_currency: String.t(), merchant_data: merchant_data(), metadata: %{required(String.t()) => String.t()}, network_data: network_data(), object: String.t(), pending_request: pending_request(), request_history: [request_history()], status: String.t(), token: String.t() | Stripe.Resources.Issuing.Token.t() | nil, transactions: [Stripe.Resources.Issuing.Transaction.t()], treasury: treasury() | nil, verification_data: verification_data(), verified_by_fraud_challenge: boolean(), wallet: String.t() }
amount- The total amount that was authorized or rejected. This amount is incurrencyand in the smallest currency unit.amountshould be the same asmerchant_amount, unlesscurrencyandmerchant_currencyare different.amount_details- Detailed breakdown of amount components. These amounts are denominated incurrencyand in the smallest currency unit. Nullable. Expandable.approved- Whether the authorization has been approved.authorization_method- How the card details were provided. Possible values:chip,contactless,keyed_in,online,swipe.balance_transactions- List of balance transactions associated with this authorization. Expandable.card- Expandable.cardholder- The cardholder to whom this authorization belongs. Nullable. Expandable.created- Time at which the object was created. Measured in seconds since the Unix epoch. Format: Unix timestamp.currency- The currency of the cardholder. This currency can be different from the currency presented at authorization and themerchant_currencyfield on this authorization. Three-letter ISO currency code, in lowercase. Must be a supported currency. Format: ISO 4217 currency code.fleet- Fleet-specific information for authorizations using Fleet cards. Nullable. Expandable.fraud_challenges- Fraud challenges sent to the cardholder, if this authorization was declined for fraud risk reasons. Nullable. Expandable.fuel- Information about fuel that was purchased with this transaction. Typically this information is received from the merchant after the authorization has been approved and the fuel dispensed. Nullable. Expandable.id- Unique identifier for the object. Max length: 5000.livemode- Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.merchant_amount- The total amount that was authorized or rejected. This amount is in themerchant_currencyand in the smallest currency unit.merchant_amountshould be the same asamount, unlessmerchant_currencyandcurrencyare different.merchant_currency- The local currency that was presented to the cardholder for the authorization. This currency can be different from the cardholder currency and thecurrencyfield on this authorization. Three-letter ISO currency code, in lowercase. Must be a supported currency. Format: ISO 4217 currency code.merchant_data- Expandable.metadata- 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.network_data- Details about the authorization, such as identifiers, set by the card network. Nullable. Expandable.object- String representing the object's type. Objects of the same type share the same value. Possible values:issuing.authorization.pending_request- The pending authorization request. This field will only be non-null during anissuing_authorization.requestwebhook. Nullable. Expandable.request_history- History of every time apending_requestauthorization was approved/declined, either by you directly or by Stripe (e.g. based on your spending_controls). If the merchant changes the authorization by performing an incremental authorization, you can look at this field to see the previous requests for the authorization. This field can be helpful in determining why a given authorization was approved/declined. Expandable.status- The current status of the authorization in its lifecycle. Possible values:closed,expired,pending,reversed.token- Token object used for this authorization. If a network token was not used for this authorization, this field will be null. Nullable. Expandable.transactions- List of transactions associated with this authorization. Expandable.treasury- Treasury details related to this authorization if it was created on a FinancialAccount. Nullable. Expandable.verification_data- Expandable.verified_by_fraud_challenge- Whether the authorization bypassed fraud risk checks because the cardholder has previously completed a fraud challenge on a similar high-risk authorization from the same merchant. Nullable.wallet- The digital wallet used for this transaction. One ofapple_pay,google_pay, orsamsung_pay. Will populate asnullwhen no digital wallet was utilized. Max length: 5000. Nullable.
@type treasury() :: %{ optional(:received_credits) => [String.t()] | nil, optional(:received_debits) => [String.t()] | nil, optional(:transaction) => String.t() | nil, optional(String.t()) => term() }
received_credits- The array of ReceivedCredits associated with this authorizationreceived_debits- The array of ReceivedDebits associated with this authorizationtransaction- The Treasury Transaction associated with this authorization Max length: 5000. Nullable.
@type verification_data() :: %{ optional(:address_line1_check) => String.t() | nil, optional(:address_postal_code_check) => String.t() | nil, optional(:authentication_exemption) => verification_data_authentication_exemption() | nil, optional(:cvc_check) => String.t() | nil, optional(:expiry_check) => String.t() | nil, optional(:postal_code) => String.t() | nil, optional(:three_d_secure) => verification_data_three_d_secure() | nil, optional(String.t()) => term() }
address_line1_check- Whether the cardholder provided an address first line and if it matched the cardholder’sbilling.address.line1. Possible values:match,mismatch,not_provided.address_postal_code_check- Whether the cardholder provided a postal code and if it matched the cardholder’sbilling.address.postal_code. Possible values:match,mismatch,not_provided.authentication_exemption- The exemption applied to this authorization. Nullable.cvc_check- Whether the cardholder provided a CVC and if it matched Stripe’s record. Possible values:match,mismatch,not_provided.expiry_check- Whether the cardholder provided an expiry date and if it matched Stripe’s record. Possible values:match,mismatch,not_provided.postal_code- The postal code submitted as part of the authorization used for postal code verification. Max length: 5000. Nullable.three_d_secure- 3D Secure details. Nullable.
@type verification_data_authentication_exemption() :: %{ optional(:claimed_by) => String.t() | nil, optional(:type) => String.t() | nil, optional(String.t()) => term() }
claimed_by- The entity that requested the exemption, either the acquiring merchant or the Issuing user. Possible values:acquirer,issuer.type- The specific exemption claimed for this authorization. Possible values:low_value_transaction,transaction_risk_analysis,unknown.
@type verification_data_three_d_secure() :: %{ optional(:result) => String.t() | nil, optional(String.t()) => term() }
result- The outcome of the 3D Secure authentication request. Possible values:attempt_acknowledged,authenticated,failed,required.