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

# PaymentTransactionSalesOrderSuggestion

> A sales order the transaction probably pays. Assign it with 'AssignPaymentTransactionToSalesOrder'.



**Kind**: `object`

## Implements

- `PaymentTransactionSuggestion`

## Fields

**`targetType`**: `PaymentTransactionSuggestionTargetType!`

The kind of document.

---

**`rank`**: `Int!`

The position, 1 for the best candidate.

---

**`score`**: `Decimal!`

How well the document matches: the sum of the points of the matched rules. From 0.3 a document is suggested; the automatic assignment takes a document from 0.5 when no other one comes within 0.25.

---

**`openAmount`**: `Decimal!`

The open amount of the document.

---

**`currencyCode`**: `String!`

The currency of the open amount (ISO 4217).

---

**`matchedRules`**: `[String!]!`

The keys of the rules that matched, for example OrderNumber, InvoiceNumber, Amount, CustomerNumber or Name. The list of keys can grow; a client that does not know a key shows it as it is.

---

**`salesOrderId`**: `ID!`

The ID of the sales order.

