NoteThis feature is currently in limited-availability alpha and subject to change. To learn more about the alpha program for this feature, contact your Marqeta representative.
Submit fraud intelligence data
Action:POSTEndpoint:
/fraud-intelligence/card
This operation allows you to provide additional context about a transaction. It does not generate a fraud decision or assessment itself; it transmits supplementary data only. Call this API immediately prior to submitting the transaction for authorization.
Request body
| Fields | Description |
|---|---|
| transaction_data object Required | Core transaction data that goes beyond standard authorization information. Allowable Values: bank_identification_number, last_four_card_number, purchase_amount, purchase_currency, transaction_timestamp, retrieval_reference_number |
| transaction_data.bank_identification_number string Required | Unique ID of the institution that issued the credit card used to make the purchase. Allowable Values: 8 char max |
| transaction_data.last_four_card_number string Required | Last four digits of the cardholder’s credit card number. Allowable Values: 4 char max |
| transaction_data.purchase_amount decimal Required | Total amount of the purchase. Allowable Values: decimal Format: 0.00 |
| transaction_data.purchase_currency string Required | Three-letter ISO 4217 currency code (such as USD or EUR).Allowable Values: Valid three-letter ISO 4217 currency code |
| transaction_data.transaction_timestamp datetime Optional | Date and time when the transaction took place, in UTC. Allowable Values: Format: yyyy-MM-ddThh:mm:ssZ |
| transaction_data.retrieval_reference_number string Optional | ISO 8583 Field 37 - Unique reference number for transaction retrieval. Allowable Values: 12 char max |
| order_data object Optional | Order and purchase details. Allowable Values: purchase_date, item_count, order_type, discount_amount, cart_items |
| order_data.purchase_date datetime Optional | Date and time when the purchase took place, in UTC. Allowable Values: Format: yyyy-MM-ddThh:mm:ssZ |
| order_data.item_count integer Optional | Number of items in the order. Allowable Values: Any integer |
| order_data.order_type string Optional | Channel through which the order was placed. Allowable Values: WEBSITE, MOBILE_APP, PHONE, MAIL_ORDER |
| order_data.discount_amount decimal Optional | Total amount of the discount applied to the order. If a discount was not applied to the order, enter 0.00.Allowable Values: decimal Format: 0.00 |
| order_data.cart_items array of objects Optional | List of all items in the shopping cart. Allowable Values: Valid array of cart item objects |
| order_data.cart_items[].item_id string Optional | Unique identifier for the item. Allowable Values: 64 char max |
| order_data.cart_items[].item_name string Optional | Name or title of the item. Allowable Values: 256 char max |
| order_data.cart_items[].item_type string Optional | Type of item (physical or digital). Allowable Values: PHYSICAL, DIGITAL |
| order_data.cart_items[].quantity integer Optional | Quantity of a single item in the cart. Allowable Values: Any integer |
| order_data.cart_items[].unit_price decimal Optional | Price per unit of the item. Allowable Values: decimal Format: 0.00 |
| order_data.cart_items[].total_price decimal Optional | Total price for this item (unit_price * quantity).Allowable Values: decimal Format: 0.00 |
| risk_data object Optional | Risk assessment data from partner systems. Allowable Values: merchant_risk_score, transaction_risk_score |
| risk_data.merchant_risk_score decimal Optional | Risk score associated with the merchant, as determined by partner systems. Allowable Values: 0-999 |
| risk_data.transaction_risk_score decimal Optional | Risk score for the specific transaction, as determined by partner systems. Allowable Values: 0-999 |
| device_data object Optional | Fingerprint and browser information of the device used to make the transaction. Used for fraud detection. Allowable Values: device_id, device_name, device_fingerprint, ip_address, user_agent, screen_resolution, timezone, language, platform, cookies_enabled, javascript_enabled |
| device_data.device_id string Optional | Unique identifier of the device used to make the transaction. Allowable Values: 64 char max |
| device_data.device_name string Optional | Name or model of the device used to make the transaction. Allowable Values: 64 char max |
| device_data.device_fingerprint string Optional | Unique fingerprint hash of the device used to make the transaction. Allowable Values: 128 char max |
| device_data.ip_address string Optional | Client IP address. Allowable Values: 39 char max |
| device_data.user_agent string Optional | User agent string of the browser or operating system used to make the transaction. Allowable Values: 255 char max |
| device_data.screen_resolution string Optional | Screen resolution of the device used to make the transaction. Allowable Values: Valid screen resolution (such as 1920x1080) |
| device_data.timezone string Optional | Client timezone in IANA / format. Allowable Values: Timezone in IANA format (such as America/New_York) |
| device_data.language string Optional | Browser language setting in ISO 639-1 format. Allowable Values: Valid two-letter ISO 639-1 code followed by a two-letter ISO 3166 alpha-2 code if needed (such as en-US) |
| device_data.platform string Optional | Operating system platform of the device used to make the transaction. Allowable Values: Valid operating system platform, such as windows or macOS |
| device_data.cookies_enabled boolean Optional | Whether or not cookies are enabled on the device used to make the transaction. Allowable Values: true, false |
| device_data.javascript_enabled boolean Optional | Whether or not JavaScript is enabled on the device used to make the transaction. Allowable Values: true, false |
| customer_data object Optional | Customer profile and account information. Allowable Values: first_name, last_name, email_address, phone |
| customer_data.first_name string Optional | First name of the customer. Allowable Values: 255 char max |
| customer_data.last_name string Optional | Last name of the customer. Allowable Values: 255 char max |
| customer_data.email_address email_address Optional | Email address of the customer. Allowable Values: Valid email address |
| customer_data.phone string Optional | Phone number of the customer. Allowable Values: Valid phone number in E. 164 format (such as +1234567890) |
| merchant_data object Optional | Information about the merchant involved in the transaction. Allowable Values: merchant_id, merchant_name, three_d_secure_supported |
| merchant_data.merchant_id string Optional | Alphanumeric string token that uniquely identifies the merchant involved in the transaction. Allowable Values: 64 char max |
| merchant_data.merchant_name string Optional | Merchant name, as registered with the card network. Allowable Values: 128 char max |
| merchant_data.three_d_secure_supported boolean Optional | Whether or not the merchant supports 3D Secure authentication. Allowable Values: true, false |
| shipping_data object Optional | Details about the type, method, and contact for shipping. Allowable Values: delivery_type, delivery_channel, phone, email, address_line_1, address_line_2, address_line_3, city, state, post_code, country |
| shipping_data.delivery_type string Optional | Type of delivery (physical or digital). Allowable Values: PHYSICAL, DIGITAL |
| shipping_data.delivery_channel string Optional | Method of delivery. Allowable Values: EMAIL, STORE_PICKUP, SAME_DAY, NEXT_DAY, TWO_OR_MORE_DAYS |
| shipping_data.phone string Optional | Phone number of the shipping contact. Allowable Values: Valid phone number in E. 164 format (such as +1234567890) |
| shipping_data.email Optional | Email address of the shipping contact. Allowable Values: 255 char max |
| shipping_data.address_line_1 string Optional | Address line 1. Allowable Values: 50 char max |
| shipping_data.address_line_2 string Optional | Address line 2. Allowable Values: 50 char max |
| shipping_data.address_line_3 string Optional | Address line 3. Allowable Values: 50 char max |
| shipping_data.city string Optional | City for shipping or billing. Allowable Values: 50 char max |
| shipping_data.state string Optional | State or province code for the shipping address (such as NY or QC).Allowable Values: 3 char max |
| shipping_data.post_code string Optional | US ZIP code or regional postal code. Allowable Values: 255 char max |
| shipping_data.country string Optional | Country code in ISO 3166-1 alpha-2 format (such as “US” for United States). Allowable Values: 2 char max |
| billing_data object Optional | Information about the shipping or billing address. Allowable Values: address_line_1, address_line_2, address_line_3, city, state, post_code, country |
| billing_data.address_line_1 string Optional | Address line 1. Allowable Values: 50 char max |
| billing_data.address_line_2 string Optional | Address line 2. Allowable Values: 50 char max |
| billing_data.address_line_3 string Optional | Address line 3. Allowable Values: 50 char max |
| billing_data.city string Optional | City for shipping or billing. Allowable Values: 50 char max |
| billing_data.state string Optional | State or province code for the billing address (such as NY or QC).Allowable Values: 3 char max |
| billing_data.post_code string Optional | US ZIP code or regional postal code. Allowable Values: 255 char max |
| billing_data.country string Optional | Country code in ISO 3166-1 alpha-2 format (such as “US” for United States). Allowable Values: 2 char max |
Sample request body
View all 81 lines
Response body
| Fields | Description |
|---|---|
| transaction_data_reference_id string Conditionally returned | Unique identifier for the submitted transaction data. Allowable Values: 255 char max |
Sample response body
JSON