experimental

Get a cart-wizard run

Returns the current state of a run — status, best-so-far option totals while solving, and the full per-seller breakdown once done.

Path Parameters
  • id
    Type: string
    min length:  
    1
    required

    The run id returned by POST /v1/optimizer/runs. Path parameter.

Responses
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for get/optimizer/runs/{id}
curl 'https://public-api.cardnexus.com/v1/optimizer/runs/{id}' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "id": "opt_9f2c1a7b3d4e5f60",
  "status": "solving",
  "progress": {
    "fraction": 0.7,
    "options": [
      {
        "modes": [
          "lowest_price"
        ],
        "sellerCount": 6,
        "total": {
          "amount": 222.65,
          "currency": "USD"
        },
        "subtotal": {
          "amount": 208.49,
          "currency": "USD"
        },
        "shipping": {
          "amount": 5.4,
          "currency": "USD"
        }
      }
    ]
  }
}