POST /v1/test_helpers/issuing/authorizations
Create a test-mode authorization.
Servers
- https://api.stripe.com/
Request headers
| Name | Type | Required | Description |
|---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/x-www-form-urlencoded" |
Request body fields
| Name | Type | Required | Description |
|---|---|---|---|
authorization_method |
String | No |
How the card details were provided. Defaults to online. Valid values:
|
is_amount_controllable |
Boolean | No |
If set |
expand[] |
Array | No |
Specifies which fields in the response should be expanded. |
fraud_disputability_likelihood |
String | No |
Probability that this transaction can be disputed in the event of fraud. Assessed by comparing the characteristics of the authorization to card network rules. Valid values:
|
amount_details |
Object | No |
Detailed breakdown of amount components. These amounts are denominated in |
amount_details.cashback_amount |
Integer | No | |
amount_details.atm_fee |
Integer | No | |
card |
String | Yes |
Card associated with this authorization. |
merchant_amount |
Integer | No |
The total amount to attempt to authorize. This amount is in the provided merchant currency, and in the smallest currency unit. |
fleet |
Object | No |
Fleet-specific information for authorizations using Fleet cards. |
fleet.purchase_type |
String | No |
Valid values:
|
fleet.cardholder_prompt_data |
Object | No | |
fleet.cardholder_prompt_data.unspecified_id |
String | No | |
fleet.cardholder_prompt_data.driver_id |
String | No | |
fleet.cardholder_prompt_data.vehicle_number |
String | No | |
fleet.cardholder_prompt_data.user_id |
String | No | |
fleet.cardholder_prompt_data.odometer |
Integer | No | |
fleet.reported_breakdown |
Object | No | |
fleet.reported_breakdown.tax |
Object | No | |
fleet.reported_breakdown.tax.local_amount_decimal |
String | No | |
fleet.reported_breakdown.tax.national_amount_decimal |
String | No | |
fleet.reported_breakdown.non_fuel |
Object | No | |
fleet.reported_breakdown.non_fuel.gross_amount_decimal |
String | No | |
fleet.reported_breakdown.fuel |
Object | No | |
fleet.reported_breakdown.fuel.gross_amount_decimal |
String | No | |
fleet.service_type |
String | No |
Valid values:
|
currency |
String | No |
The currency of the authorization. If not provided, defaults to the currency of the card. Three-letter ISO currency code, in lowercase. Must be a supported currency. |
verification_data |
Object | No |
Verifications that Stripe performed on information that the cardholder provided to the merchant. |
verification_data.address_line1_check |
String | No |
Valid values:
|
verification_data.cvc_check |
String | No |
Valid values:
|
verification_data.expiry_check |
String | No |
Valid values:
|
verification_data.address_postal_code_check |
String | No |
Valid values:
|
verification_data.three_d_secure |
Object | No | |
verification_data.three_d_secure.result |
String | Yes |
Valid values:
|
verification_data.authentication_exemption |
Object | No | |
verification_data.authentication_exemption.claimed_by |
String | Yes |
Valid values:
|
verification_data.authentication_exemption.type |
String | Yes |
Valid values:
|
merchant_data |
Object | No |
Details about the seller (grocery store, e-commerce website, etc.) where the card authorization happened. |
merchant_data.category |
String | No |
Valid values:
|
merchant_data.terminal_id |
String | No | |
merchant_data.name |
String | No | |
merchant_data.url |
String | No | |
merchant_data.postal_code |
String | No | |
merchant_data.country |
String | No | |
merchant_data.state |
String | No | |
merchant_data.city |
String | No | |
merchant_data.network_id |
String | No | |
wallet |
String | No |
The digital wallet used for this transaction. One of Valid values:
|
amount |
Integer | No |
The total amount to attempt to authorize. This amount is in the provided currency, or defaults to the card's currency, and in the smallest currency unit. |
fuel |
Object | No |
Information about fuel that was purchased with this transaction. |
fuel.industry_product_code |
String | No | |
fuel.type |
String | No |
Valid values:
|
fuel.unit_cost_decimal |
String | No | |
fuel.quantity_decimal |
String | No | |
fuel.unit |
String | No |
Valid values:
|
merchant_currency |
String | No |
The currency of the authorization. If not provided, defaults to the currency of the card. Three-letter ISO currency code, in lowercase. Must be a supported currency. |
risk_assessment |
Object | No |
Stripe’s assessment of the fraud risk for this authorization. |
risk_assessment.card_testing_risk |
Object | No | |
risk_assessment.card_testing_risk.invalid_credentials_decline_rate_past_hour |
Integer | No | |
risk_assessment.card_testing_risk.level |
String | Yes |
Valid values:
|
risk_assessment.card_testing_risk.invalid_account_number_decline_rate_past_hour |
Integer | No | |
risk_assessment.fraud_risk |
Object | No | |
risk_assessment.fraud_risk.score |
Number | No | |
risk_assessment.fraud_risk.level |
String | Yes |
Valid values:
|
risk_assessment.merchant_dispute_risk |
Object | No | |
risk_assessment.merchant_dispute_risk.dispute_rate |
Integer | No | |
risk_assessment.merchant_dispute_risk.level |
String | Yes |
Valid values:
|
network_data |
Object | No |
Details about the authorization, such as identifiers, set by the card network. |
network_data.acquiring_institution_id |
String | No |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.