# Creates a fresh guest shopping basket. Creates a fresh guest (aka anonymous) shopping basket. If the query parameter "jayToken" is specified this methods creates the credentials to access a transferred basket.Products can be added directly to this basket. Some restrictions apply on a guest basket:- no comfort functions are available- a guest basket is accessible for 30 daysIf you add the same product multiple times they become a single product entry in the basket. Endpoint: POST /baskets/guests Version: 2025-09-15 ## Query parameters: - `jayToken` (string) The Jay transfer token to access a transferred basket. - `provider_id` (string) Optional provider identifier to use as a fallback when tracking session is unavailable or does not contain provider information. This ensures tracking events can still be attributed to the correct provider. Example: "netflix" ## Header parameters: - `X-API-Key` (string, required) API access key for authorized use of the checkout endpoints. Partners, please contact Transfermedia to retrieve a valid key. - `X-JAY-Tracking` (string) Tracking session header for user tracking and analytics. This is set by the /playouts/tracking/session endpoint. Example: "eyJzZXNzaW9uX2lkIjoiZXhhbXBsZS1zZXNzaW9uLWlkLTEyMzQiLCJzdGFydF90aW1lIjoiMjAyNS0wMS0wMVQxMjowMDowMC4wMDAwMDAiLCJzb3VyY2UiOiJqYXkuYXBpLnBsYXlvdXQuZXhhbXBsZSJ9" - `x-jay-api-version` (string) The version of the API to use. Defaults to 2025-09-15. ## Request fields (application/json): - `products` (array) The products to initially add to the freshly created guest basket. If you add identical products multiple times they are merged together to one product entry in the basket. - `products.productId` (string, required) The product identifier. - `products.count` (integer) The number of products to order. Default is 1. A value above zero place the product in the cart. A value equal to zero places the product in the saved list. ## Response 200 fields (application/json): - `data` (object) The response data. Example: {"userId":"string","jwtToken":"string"} - `data.userId` (string, required) The user id of this fresh guest (aka anonymous) basket. Example: "string" - `data.jwtToken` (string, required) The JWT token (created by Jay) to use to authenticate with. Note that this token is valid for only 30 days Example: "string" - `nextToken` (string) The token, which can be used to retrieve the next page of data. - `error` (object) Details of the error that occurred during the API request, including error code and message. This field is only present when the request results in an error. - `error.code` (integer, required) The API error code Enum: 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1011, 1012, 1013, 1014, 2001, 2002, 2003, 2004, 2005, 2006, 2008, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025, 3000, 3001, 3002, 3003, 3004, 3005, 3006, 3007, 4001, 4002, 5001, 5002, 5003, 5004, 200, 201, 202, 204, 400, 401, 403, 404, 405, 406, 422, 423, 501, 503 - `error.message` (string, required) The API error message. - `error.details` (any) The HTTP error details. ## Response 422 fields (application/json): - `data` (object) The response data. Example: {"userId":"string","jwtToken":"string"} - `data.userId` (string, required) The user id of this fresh guest (aka anonymous) basket. Example: "string" - `data.jwtToken` (string, required) The JWT token (created by Jay) to use to authenticate with. Note that this token is valid for only 30 days Example: "string" - `nextToken` (string) The token, which can be used to retrieve the next page of data. - `error` (object) Details of the error that occurred during the API request, including error code and message. This field is only present when the request results in an error. - `error.code` (integer, required) The API error code Enum: 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1011, 1012, 1013, 1014, 2001, 2002, 2003, 2004, 2005, 2006, 2008, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025, 3000, 3001, 3002, 3003, 3004, 3005, 3006, 3007, 4001, 4002, 5001, 5002, 5003, 5004, 200, 201, 202, 204, 400, 401, 403, 404, 405, 406, 422, 423, 501, 503 - `error.message` (string, required) The API error message. - `error.details` (any) The HTTP error details.