---
title: "POST /basket/price-search-selection"
method: POST
path: "/basket/price-search-selection"
tags: ["Basket"]
---

# POST /basket/price-search-selection

`POST /basket/price-search-selection`

## Request body

- object
  - `inventory` string
  - `searchId` string
  - `outwardAlternativeIds` string[]
  - `inwardAlternativeIds` string[]
  - `outwardAlternativeId` string
  - `inwardAlternativeId` string
  - `inwardSearchId` string

## Response `200`

OK

- object
  - `data` object, required
    - `key` string, required
    - `value` object, required — The price of a Basket
      - `basketId` string
      - `currencyCode` string
      - `id` string
      - `invoices` object[]
        - `id` string, required
        - `lineItems` object[], required
          - `originalRetailPriceInRequestedCurrency` object
            - `amount` number
            - `currencyCode` string
          - `amount` number
          - `amountInRequestedCurrency` number
          - `subLineItems` object[]
            - `amount` number
            - `amountInRequestedCurrency` number
            - `bookingFeeOnlyAmount` number
            - `bookingFeeOnlyAmountInRequestedCurrency` number
            - `splitSaveFeeAmount` number
            - `splitSaveFeeAmountInRequestedCurrency` number
            - `references` object[]
              - …
            - `reference` object — A generic entity that solely contains an ID. This is useful for properties that are merely references to other data in our tree
              - …
            - `category` string
          - `productId` string
          - `bookingFeeOnlyAmount` number
          - `bookingFeeOnlyAmountInRequestedCurrency` number
          - `splitSaveFeeAmount` number
          - `splitSaveFeeAmountInRequestedCurrency` number
          - `type` string
          - `vendor` string
        - `totalAmount` number, required
        - `totalSavings` object[]
          - `type` string
          - `price` object, required
        - `seller` string, required
        - `currencyCode` string, required
        - `requestedPrice` object, required
      - `meta` object
        - `appliedExperiments` object[]
          - `name` string
          - `variation` string
      - `totalAmount` number

---

[API](https://skmtc.net/thetrainline/apis/trainline-desktop-api.md) · [All operations](https://skmtc.net/thetrainline/apis/trainline-desktop-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/thetrainline/trainline-desktop-api/revisions/45a894ec56f4/schema)
