View Source Stripe.Issuing.Authorization (Striped v0.5.0) (generated)
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.
Link to this section Summary
Functions
Approves a pending Issuing Authorization object. This request should be made within the timeout window of the real-time authorization flow. You can also respond directly to the webhook request to approve an authorization (preferred). More details can be found here.
Declines a pending Issuing Authorization object. This request should be made within the timeout window of the real time authorization flow.You can also respond directly to the webhook request to decline an authorization (preferred). More details can be found here.
Returns a list of Issuing Authorization objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
Retrieves an Issuing Authorization object.
Updates the specified Issuing Authorization object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Link to this section Types
@type t() :: %Stripe.Issuing.Authorization{ amount: integer(), amount_details: term() | nil, approved: boolean(), authorization_method: binary(), balance_transactions: term(), card: Stripe.Issuing.Card.t(), cardholder: (binary() | Stripe.Issuing.Cardholder.t()) | nil, created: integer(), currency: binary(), id: binary(), livemode: boolean(), merchant_amount: integer(), merchant_currency: binary(), merchant_data: term(), metadata: term(), network_data: term() | nil, object: binary(), pending_request: term() | nil, request_history: term(), status: binary(), transactions: term(), treasury: term() | nil, verification_data: term(), wallet: binary() | nil }
The issuing.authorization type.
amountThe total amount that was authorized or rejected. This amount is in the card's currency and in the smallest currency unit.amount_detailsDetailed breakdown of amount components. These amounts are denominated incurrencyand in the smallest currency unit.approvedWhether the authorization has been approved.authorization_methodHow the card details were provided.balance_transactionsList of balance transactions associated with this authorization.cardcardholderThe cardholder to whom this authorization belongs.createdTime at which the object was created. Measured in seconds since the Unix epoch.currencyThree-letter ISO currency code, in lowercase. Must be a supported currency.idUnique identifier for the object.livemodeHas the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.merchant_amountThe total amount that was authorized or rejected. This amount is in themerchant_currencyand in the smallest currency unit.merchant_currencyThe currency that was presented to the cardholder for the authorization. Three-letter ISO currency code, in lowercase. Must be a supported currency.merchant_datametadataSet 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_dataDetails about the authorization, such as identifiers, set by the card network.objectString representing the object's type. Objects of the same type share the same value.pending_requestThe pending authorization request. This field will only be non-null during anissuing_authorization.requestwebhook.request_historyHistory of every timepending_requestwas approved/denied, either by you directly or by Stripe (e.g. based on yourspending_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.statusThe current status of the authorization in its lifecycle.transactionsList of transactions associated with this authorization.treasuryTreasury details related to this authorization if it was created on a FinancialAccount.verification_datawalletThe digital wallet used for this authorization. One ofapple_pay,google_pay, orsamsung_pay.
Link to this section Functions
@spec approve( client :: Stripe.t(), authorization :: binary(), params :: %{ optional(:amount) => integer(), optional(:expand) => [binary()], optional(:metadata) => %{optional(binary()) => binary()} | binary() }, opts :: Keyword.t() ) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Approves a pending Issuing Authorization object. This request should be made within the timeout window of the real-time authorization flow. You can also respond directly to the webhook request to approve an authorization (preferred). More details can be found here.
Details
- Method:
post - Path:
/v1/issuing/authorizations/{authorization}/approve
@spec decline( client :: Stripe.t(), authorization :: binary(), params :: %{ optional(:expand) => [binary()], optional(:metadata) => %{optional(binary()) => binary()} | binary() }, opts :: Keyword.t() ) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Declines a pending Issuing Authorization object. This request should be made within the timeout window of the real time authorization flow.You can also respond directly to the webhook request to decline an authorization (preferred). More details can be found here.
Details
- Method:
post - Path:
/v1/issuing/authorizations/{authorization}/decline
@spec list( client :: Stripe.t(), params :: %{ optional(:card) => binary(), optional(:cardholder) => binary(), optional(:created) => created() | integer(), optional(:ending_before) => binary(), optional(:expand) => [binary()], optional(:limit) => integer(), optional(:starting_after) => binary(), optional(:status) => :closed | :pending | :reversed }, opts :: Keyword.t() ) :: {:ok, Stripe.List.t(t())} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Returns a list of Issuing Authorization objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
Details
- Method:
get - Path:
/v1/issuing/authorizations
@spec retrieve( client :: Stripe.t(), authorization :: binary(), params :: %{optional(:expand) => [binary()]}, opts :: Keyword.t() ) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Retrieves an Issuing Authorization object.
Details
- Method:
get - Path:
/v1/issuing/authorizations/{authorization}
@spec update( client :: Stripe.t(), authorization :: binary(), params :: %{ optional(:expand) => [binary()], optional(:metadata) => %{optional(binary()) => binary()} | binary() }, opts :: Keyword.t() ) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Updates the specified Issuing Authorization object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Details
- Method:
post - Path:
/v1/issuing/authorizations/{authorization}