Skip to main content
POST
/
execution
/
sell
/
quote
/
v1
Create a sell quote
curl --request POST \
  --url https://api.collectpure.com/execution/sell/quote/v1 \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "items": [
    {
      "offerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "quantity": 500000
    }
  ],
  "selectedOptionalIds": [
    "<string>"
  ]
}
'
{
  "success": true,
  "data": {
    "quoteId": "<string>",
    "expiresAt": "<string>",
    "refreshedAt": "<string>",
    "lineItems": [
      {
        "id": "<string>",
        "quantity": 123,
        "price": 123,
        "status": "<string>",
        "disabled": true,
        "error": "<string>",
        "product": {
          "sku": "<string>",
          "title": "<string>",
          "fulfillmentDays": 123
        },
        "variant": {
          "title": "<string>"
        },
        "offer": {
          "id": "<string>",
          "productId": "<string>",
          "variantId": "<string>",
          "price": 123,
          "quantity": 123,
          "spotPremium": 123,
          "spotPremiumDollar": 123
        }
      }
    ],
    "fees": [
      {
        "id": "<string>",
        "label": "<string>",
        "amount": 123,
        "rate": 123
      }
    ],
    "optionals": [
      {
        "id": "<string>",
        "title": "<string>",
        "description": "<string>",
        "fee": 123,
        "selected": true,
        "enabled": true,
        "disabledReason": "<string>",
        "disclaimer": {
          "label": "<string>",
          "url": "<string>"
        }
      }
    ],
    "subtotal": 123,
    "total": 123
  }
}

Authorizations

x-api-key
string
header
required

API key for authentication

Body

application/json
items
object[]
required

Items to include in the sell quote. Each item can specify an offerId or a productId+variantId pair.

Required array length: 1 - 50 elements
selectedOptionalIds
string[]

Optional IDs to select (e.g. instant payout). The quote will reflect fees for selected optionals.

Response

200 - application/json

Default Response

success
enum<boolean>
required
Available options:
true
data
object
required