> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fraudeg.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Fields

> Which fields to send and which signal category each one enables

`POST /analyze` accepts a flat object with the transaction data. Four fields are
required; the rest are optional, and each one enables an additional signal category.

## Required fields

| Field | Type | Accepted wire alias |
| - | - | - |
| `order_id` | string | — |
| `user_id` | string | — |
| `transaction_amount` | number | — |
| `payment_method` | string | `paymentInstrumentType` |

The canonical name you should send is `payment_method`. `paymentInstrumentType` is the
same concept under another name in the JSON, not a second field. Values and rails:
[Payment methods](https://docs.fraudeg.com/en/referencia/metodos-de-pago.md).

## Optional fields

| Field | Type | Category it enables |
| - | - | - |
| `cavv_result` | string | authentication |
| `cvv_result` | string | authentication |
| `cc_verified` | boolean | authentication |
| `avs_result` | string | authentication |
| `auth_response_code` | string | authentication |
| `cc_is_foreign_bin` | boolean | geo |
| `merchant_country_code` | string | geo |
| `bin_country_code` | string | geo |
| `country_id` | string | geo |
| `store_to_user_distance` | number | geo |
| `ip_address` | string | network |
| `device_id` | string | device |
| `device_fingerprint` | string | device |
| `device_age_days` | integer | device |
| `is_new_device_login` | boolean | device |
| `shipping_address_hash` | string | shipping |
| `billing_address_hash` | string | shipping |
| `user_email` | string | user |
| `user_age_days` | integer | user |
| `session_id` | string | user |
| `session_start_time` | string | user |
| `time_to_checkout_sec` | integer | user |
| `login_attempt_count` | integer | user |
| `login_success` | boolean | user |
| `password_reset_flag` | boolean | user |
| `is_guest_checkout` | boolean | user |
| `currency` | string | payment |
| `transaction_type` | string | payment |
| `customer_present` | string | payment |
| `pos_entry_mode` | string | payment |
| `card_hash` | string | payment |
| `expanded_bin` | string | payment |
| `merchant_id` | string | payment |
| `channel` | string | payment |
| `mcc` | string | payment |
| `is_subscription` | boolean | payment |
| `payment_attempts_count` | integer | payment |
| `cards_tried_count` | integer | payment |
| `declined_before_approved` | integer | payment |

`auth_response_code` is also accepted as `response_code` (same field).

> [!NOTE]
>
> `device_id`, `ip_address`, and `user_id`, besides enabling their direct categories, are
> also the basis on which velocity signals are calculated across transactions —
> there is no single field that activates that category on its own.

## Other accepted fields

* `created_at` (optional, ISO 8601): the transaction timestamp. If you do not send it,
  the time of the request is used.
* `is_chargeback`, `is_friendly_fraud`: historical outcome labels, useful for
  retraining — they are not scoring signals.
* `extra_fields`, `tags`: they do not take part in scoring; they are stored as additional
  transaction information. Do not use `tags` to simulate sandbox mode: that is the
  [`/analyze/sandbox`](https://docs.fraudeg.com/en/referencia/analyze-sandbox) path.

## More fields, more coverage

There is no minimum number of optional fields required — the engine scores with whatever it receives. But
the more fields you send, the more signal categories are evaluated. There is no fixed relationship
between how many fields you send and the result: two transactions with the same field
coverage can end up with different decisions.

Next step: [Going to production](https://docs.fraudeg.com/en/integrar/produccion.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.