# System Bet 2/4 Including 1 Ways

This is an example of a system 2/4 bet including 1 ways. There are 5 selections to make a system from. Three selections are independent, and the last two selections form a ways. A ways includes either two or up to 10 selections which all share the same eventId.\
In this example, we have one selection of "type":" system" (and size=2, to specify that this is as 2/4 system) which includes a total of four nested selections (3 non-ways selections and one selection of "type":" ways").\
The selection structure of this example can be depicted as follows:

*selection ("type": "system"), "size" \[2]*

* *selection 1 (selections 1,2,3 have different eventId and they are also different from that of selection 4,5)*
* *selection 2*
* *selection 3*
* *ways*
  * *selection 4  (selection 4 and selection 5 have the same eventId)*
  * *selection 5*&#x20;

\
The ticket contains only one bet (the Bets array length = 1).

\\

<details>

<summary><strong>Ticket Placement Request</strong></summary>

```json
{
  "operatorId": 9985,
  "content": {
    "type": "ticket",
    "ticketId": "Ticket_4910",
    "bets": [
      {
        "selections": [
          {
            "type": "system",
            "size": [
              2
            ],
            "selections": [
              {
                "type": "uf",
                "productId": "3",
                "eventId": "sr:match:14",
                "marketId": "818",
                "outcomeId": "1849",
                "specifiers": "total=1.5",
                "odds": {
                  "type": "decimal",
                  "value": "8.46"
                }
              },
              {
                "type": "uf",
                "productId": "3",
                "eventId": "sr:match:18",
                "marketId": "552",
                "outcomeId": "1747",
                "odds": {
                  "type": "decimal",
                  "value": "1.25"
                }
              },
              {
                "type": "uf",
                "productId": "3",
                "eventId": "sr:match:15",
                "marketId": "105",
                "outcomeId": "3",
                "specifiers": "from=1|to=10",
                "odds": {
                  "type": "decimal",
                  "value": "10.62"
                }
              },
              {
                "type": "ways",
                "selections": [
                  {
                    "type": "uf",
                    "productId": "3",
                    "eventId": "sr:match:16",
                    "marketId": "3",
                    "outcomeId": "5",
                    "odds": {
                      "type": "decimal",
                      "value": "1.21"
                    }
                  },
                  {
                    "type": "uf",
                    "productId": "3",
                    "eventId": "sr:match:16",
                    "marketId": "1",
                    "outcomeId": "2",
                    "odds": {
                      "type": "decimal",
                      "value": "2.08"
                    }
                  }
                ]
              }
            ]
          }
        ],
        "stake": [
          {
            "type": "cash",
            "currency": "EUR",
            "amount": "80"
          }
        ]
      }
    ],
    "context": {
      "channel": {
        "type": "internet",
        "ip": "212.33.11.90",
        "lang": "EN"
      },
      "endCustomer": {
        "id": "7864545"
      },
      "limitId": 1409
    }
  },
  "correlationId": "TwH298C38",
  "timestampUtc": 1678968675000,
  "operation": "ticket-placement",
  "version": "3.0"
}
```

</details>

<details>

<summary><strong>Ticket Placement Response</strong> </summary>

```json
{
  "content": {
    "type": "ticket-reply",
    "signature": "nnr1MuOnSlMjh5dZUhB2gNkZikArifGTVPIZIy2Gbjo=",
    "status": "accepted",
    "ticketId": "Ticket_4910",
    "code": 0,
    "message": "Transaction processed",
    "betDetails": [
      {
        "selectionDetails": [
          {
            "selection": {
              "type": "system",
              "size": [
                2
              ],
              "selections": [
                {
                  "type": "uf",
                  "productId": "3",
                  "eventId": "sr:match:14",
                  "marketId": "818",
                  "outcomeId": "1849",
                  "specifiers": "total=1.5",
                  "odds": {
                    "type": "decimal",
                    "value": "8.46"
                  }
                },
                {
                  "type": "uf",
                  "productId": "3",
                  "eventId": "sr:match:18",
                  "marketId": "552",
                  "outcomeId": "1747",
                  "odds": {
                    "type": "decimal",
                    "value": "1.25"
                  }
                },
                {
                  "type": "uf",
                  "productId": "3",
                  "eventId": "sr:match:15",
                  "marketId": "105",
                  "outcomeId": "3",
                  "specifiers": "from=1|to=10",
                  "odds": {
                    "type": "decimal",
                    "value": "10.62"
                  }
                },
                {
                  "type": "ways",
                  "selections": [
                    {
                      "type": "uf",
                      "productId": "3",
                      "eventId": "sr:match:16",
                      "marketId": "3",
                      "outcomeId": "5",
                      "odds": {
                        "type": "decimal",
                        "value": "1.21"
                      }
                    },
                    {
                      "type": "uf",
                      "productId": "3",
                      "eventId": "sr:match:16",
                      "marketId": "1",
                      "outcomeId": "2",
                      "odds": {
                        "type": "decimal",
                        "value": "2.08"
                      }
                    }
                  ]
                }
              ]
            },
            "code": 0,
            "message": "Transaction processed"
          }
        ],
        "code": 0,
        "message": "Transaction processed"
      }
    ],
    "exchangeRate":   [
      {
        "fromCurrency": "EUR",
        "toCurrency": "EUR",
        "rate": "1.00000"
      }
    ]
  },
  "correlationId": "TwH298C38",
  "timestampUtc": 1678968676000,
  "operation": "ticket-placement",
  "version": "3.0"
}
```

</details>
