Authorizations
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
Was this section helpful? Yes No
Update an authorization
POST / v1 / issuing / authorizations /:id
Retrieve an authorization
GET / v1 / issuing / authorizations /:id
List all authorizations
GET / v1 / issuing / authorizations
Approve an authorization
POST / v1 / issuing / authorizations /:id / approve
Decline an authorization
POST / v1 / issuing / authorizations /:id / decline
Create a test-mode authorization
POST / v1 / test_helpers / issuing / authorizations
Capture a test-mode authorization
POST / v1 / test_helpers / issuing / authorizations /:id / capture
Expire a test-mode authorization
POST / v1 / test_helpers / issuing / authorizations /:id / expire
Finalize a test-mode authorization's amount
POST / v1 / test_helpers / issuing / authorizations /:id / finalize_amount
Increment a test-mode authorization
POST / v1 / test_helpers / issuing / authorizations /:id / increment
Respond to fraud challenge
POST / v1 / test_helpers / issuing / authorizations /:id / fraud_challenges / respond
Reverse a test-mode authorization
POST / v1 / test_helpers / issuing / authorizations /:id / reverse
The Authorization object
Attributes
- id string Unique identifier for the object.
- amount integer The total amount that was authorized or rejected. This amount is in
currencyand in the smallest currency unit.amountshould be the same asmerchant_amount, unlesscurrencyandmerchant_currencyare different. - approved boolean Whether the authorization has been approved.
- card object Card associated with this authorization.
- cardholder nullable string Expandable The cardholder to whom this authorization belongs.
- currency enum The currency of the cardholder. This currency can be different from the currency presented at authorization and the
merchant_currencyfield on this authorization. Three-letter ISO currency code, in lowercase. Must be a supported currency. - metadata map 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.
- status enum The current status of the authorization in its lifecycle. Possible enum values
closedThe authorization was declined or captured through one or more transactions.expiredThe authorization was expired without capture.pendingThe authorization was created and is awaiting approval or was approved and is awaiting capture.reversedThe authorization was reversed by the merchant.
More attributes
- object string, value is "issuing.authorization"
- amount _ details nullable object
- authorization _ method enum
- balance _ transactions array of objects
- card _ presence nullable enum
- created timestamp
- fleet nullable object
- fraud _ challenges nullable array of objects Includable
- fuel nullable object
- livemode boolean
- merchant _ amount integer
- merchant _ currency enum
- merchant _ data object
- network _ data nullable object
- pending _ request nullable object
- request _ history array of objects
- token nullable string Preview feature Expandable
- transactions array of objects
- verification _ data object
- verified _ by _ fraud _ challenge nullable boolean
- wallet nullable string
The Authorization object
{ "id": "iauth_1JVXl82eZvKYlo2CPIiWlzrn", "object": "issuing.authorization", "amount": 382, "amount_details": { "atm_fee": null }, "approved": false, "authorization_method": "online", "balance_transactions": [], "card": { "id": "ic_1JDmgz2eZvKYlo2CRXlTsXj6", "object": "issuing.card", "brand": "Visa", "cancellation_reason": null, "cardholder": { "id": "ich_1JDmfb2eZvKYlo2CwHUgaAxU", "object": "issuing.cardholder", "billing": { "address": { "city": "San Francisco", "country": "US", "line1": "123 Main Street", "line2": null, "postal_code": "94111", "state": "CA" } }, "company": null, "created": 1626425119, "email": "jenny.rosen@example.com", "individual": null, "livemode": false, "metadata": {}, "name": "Jenny Rosen", "phone_number": "+18008675309", "redaction": null, "requirements": { "disabled_reason": null, "past_due": [] }, "spending_controls": { "allowed_categories": [], "blocked_categories": [], "spending_limits": [], "spending_limits_currency": null }, "status": "active", "type": "individual" }, "created": 1626425206, "currency": "usd", "exp_month": 6, "exp_year": 2024, "last4": "8693", "livemode": false, "metadata": {}, "redaction": null, "replaced_by": null, "replacement_for": null, "replacement_reason": null, "shipping": null, "spending_controls": { "allowed_categories": null, "blocked_categories": null, "spending_limits": [ { "amount": 50000, "categories": [], "interval": "daily" } ], "spending_limits_currency": "usd" }, "status": "active", "type": "virtual", "wallets": { "apple_pay": { "eligible": true, "ineligible_reason": null }, "google_pay": { "eligible": true, "ineligible_reason": null }, "primary_account_identifier": null } }, "cardholder": "ich_1JDmfb2eZvKYlo2CwHUgaAxU", "created": 1630657706, "currency": "usd", "livemode": false, "merchant_amount": 382, "merchant_currency": "usd", "merchant_data": { "category": "computer_software_stores", "category_code": "5734", "city": "SAN FRANCISCO", "country": "US", "name": "STRIPE", "network_id": "1234567890", "postal_code": "94103", "state": "CA" }, "metadata": { "order_id": "6735" }, "network_data": null, "pending_request": null, "redaction": null, "request_history": [ { "amount": 382, "amount_details": { "atm_fee": null }, "approved": false, "created": 1630657706, "currency": "usd", "merchant_amount": 382, "merchant_currency": "usd", "reason": "verification_failed", "reason_message": null } ], "status": "closed", "transactions": [], "verification_data": { "address_line1_check": "not_provided", "address_postal_code_check": "not_provided", "cvc_check": "mismatch", "expiry_check": "match" }, "wallet": null}
Update an authorization
POST / v1 / issuing / authorizations /:id
Updates the specified Issuing Authorization object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Parameters
- metadata map Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to
metadata.
Returns
Returns an updated Issuing Authorization object if a valid identifier was provided.
Response
{ "id": "iauth_1JVXl82eZvKYlo2CPIiWlzrn", "object": "issuing.authorization", "amount": 382, "amount_details": { "atm_fee": null }, "approved": false, "authorization_method": "online", "balance_transactions": [], "card": { "id": "ic_1JDmgz2eZvKYlo2CRXlTsXj6", "object": "issuing.card", "brand": "Visa", "cancellation_reason": null, "cardholder": { "id": "ich_1JDmfb2eZvKYlo2CwHUgaAxU", "object": "issuing.cardholder", "billing": { "address": { "city": "San Francisco", "country": "US", "line1": "123 Main Street", "line2": null, "postal_code": "94111", "state": "CA" } }, "company": null, "created": 1626425119, "email": "jenny.rosen@example.com", "individual": null, "livemode": false, "metadata": {}, "name": "Jenny Rosen", "phone_number": "+18008675309", "redaction": null, "requirements": { "disabled_reason": null, "past_due": [] }, "spending_controls": { "allowed_categories": [], "blocked_categories": [], "spending_limits": [], "spending_limits_currency": null }, "status": "active", "type": "individual" }, "created": 1626425206, "currency": "usd", "exp_month": 6, "exp_year": 2024, "last4": "8693", "livemode": false, "metadata": {}, "redaction": null, "replaced_by": null, "replacement_for": null, "replacement_reason": null, "shipping": null, "spending_controls": { "allowed_categories": null, "blocked_categories": null, "spending_limits": [ { "amount": 50000, "categories": [], "interval": "daily" } ], "spending_limits_currency": "usd" }, "status": "active", "type": "virtual", "wallets": { "apple_pay": { "eligible": true, "ineligible_reason": null }, "google_pay": { "eligible": true, "ineligible_reason": null }, "primary_account_identifier": null } }, "cardholder": "ich_1JDmfb2eZvKYlo2CwHUgaAxU", "created": 1630657706, "currency": "usd", "livemode": false, "merchant_amount": 382, "merchant_currency": "usd", "merchant_data": { "category": "computer_software_stores", "category_code": "5734", "city": "SAN FRANCISCO", "country": "US", "name": "STRIPE", "network_id": "1234567890", "postal_code": "94103", "state": "CA" }, "metadata": { "order_id": "6735" }, "network_data": null, "pending_request": null, "redaction": null, "request_history": [ { "amount": 382, "amount_details": { "atm_fee": null }, "approved": false, "created": 1630657706, "currency": "usd", "merchant_amount": 382, "merchant_currency": "usd", "reason": "verification_failed", "reason_message": null } ], "status": "closed", "transactions": [], "verification_data": { "address_line1_check": "not_provided", "address_postal_code_check": "not_provided", "cvc_check": "mismatch", "expiry_check": "match" }, "wallet": null}
