---
title: "Get advanced settings"
description: "Read the advanced settings of a preorder offer: the purchase option (checkout_method) and the cart attributes."
url: https://docs.stoqapp.com/v2-reference/preorders-offers/get-advanced-settings/
api: "API v2 reference"
method: GET
path: "/preorders/offers/{id}/advanced"
---

# Get advanced settings

`GET https://app.stoqapp.com/api/v2/external/preorders/offers/{id}/advanced`

Read the advanced settings of a preorder offer: the purchase option (checkout_method) and the cart attributes.

**Note:** purchase_option_rules says, in plain sentences, what blocks turning the purchase option on, what needs it, and what turning it off would change. It is read-only.

## Path parameters

- `id` (string, required): The offer's ID, from [`GET /preorders/offers`](https://docs.stoqapp.com/v2-reference/preorders-offers/list-offers/).

## Query parameters

- `locale` (string): Language for translated text, such as fr or pt-BR. Omit for the shop's default language.

## Returns

- `checkout_method` (string): selling_plan uses a Shopify purchase option (selling plan); line_item_property runs the offer without one. One of: `selling_plan`, `line_item_property`.
- `cart_attributes` (object): What the offer adds to each preorder cart line.
  - `show_payment` (boolean): Whether payment details and savings show in the cart.
  - `show_shipping` (boolean): Whether the fulfillment timeline shows in the cart.
  - `custom_text` (null): Free text added to every preorder cart line. Null when not set.
- `purchase_option_rules` (object): Plain-sentence rules about the Shopify purchase option (checkout_method selling_plan) for this offer. Read-only.
  - `cannot_combine_with` (string): Settings that cannot be on while the purchase option is on. Present while it is on.
  - `payment_gateways` (string): What the purchase option means for payment gateways. Present while it is on.

Rate limit: this call costs 1 point ([rate limits](https://docs.stoqapp.com/docs/rate-limits/)).

## Examples

### Get advanced settings

```sh
curl "https://app.stoqapp.com/api/v2/external/preorders/offers/73a74948-2b57-4cc3-971f-2b441828c977/advanced" \
  -H "X-Auth-Token: $STOQ_API_KEY"
```

### Get advanced settings filtered by locale

```sh
curl "https://app.stoqapp.com/api/v2/external/preorders/offers/73a74948-2b57-4cc3-971f-2b441828c977/advanced?locale=fr" \
  -H "X-Auth-Token: $STOQ_API_KEY"
```

## 200

Success: the requested resource.

```json
{
  "checkout_method": "selling_plan",
  "cart_attributes": {
    "show_payment": true,
    "show_shipping": true,
    "custom_text": null
  },
  "purchase_option_rules": {
    "cannot_combine_with": "string",
    "payment_gateways": "string"
  }
}
```

## 401

Missing or invalid `X-Auth-Token`.

```json
{
  "errors": [
    "Invalid API key"
  ],
  "code": "auth_invalid",
  "details": [
    {
      "code": "auth_invalid",
      "message": "Invalid API key",
      "path": null,
      "value": null,
      "expected": null
    }
  ]
}
```

## 404

The resource does not exist for this shop, or the action path is not registered.

```json
{
  "errors": [
    "Offer not found"
  ],
  "code": "not_found",
  "details": [
    {
      "code": "not_found",
      "message": "Offer not found",
      "path": null,
      "value": null,
      "expected": null
    }
  ]
}
```

## 422

The request failed validation.

```json
{
  "errors": [
    "name is required"
  ],
  "code": "validation_failed",
  "details": [
    {
      "code": "validation_failed",
      "message": "name is required",
      "path": null,
      "value": null,
      "expected": null
    }
  ]
}
```

## 429

Rate limited: cost-weighted per token (read 1, write 2; 360 points / 60s). Check `Retry-After`.

```json
{
  "errors": [
    "Rate limit exceeded"
  ],
  "code": "rate_limited",
  "details": [
    {
      "code": "rate_limited",
      "message": "Rate limit exceeded",
      "path": null,
      "value": null,
      "expected": null
    }
  ]
}
```

