Skip to content

// docs

Casas Bahia: Get shipping quotes

Extracts shipping quotes from Casas Bahia for a specific product by URL and CEP, resolving seller from the offer returned by the source.

casasbahia.com.br:quote · 1 credit per request

Standard credit cost. Your account pricing is shown in the sandbox.

Try this operation in the sandbox

HTTP request

cURL
curl -X POST https://api.geckoapi.com.br/v1/extract \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://www.casasbahia.com.br/p/55066000",
  "target": "casasbahia.com.br",
  "type": "quote",
  "zipCode": "01001-000"
}'

Keep your API key on your server. See the quickstart for authentication and response handling.

MCP request

The hosted MCP tool fixes target and type for this operation. Its remaining arguments use the same input rules as Extract.

POST /v1/mcp · Bearer or X-API-Key authentication

casasbahia_com_br_quote · tools/call
{
  "jsonrpc": "2.0",
  "id": 3,
  "method": "tools/call",
  "params": {
    "name": "casasbahia_com_br_quote",
    "arguments": {
      "url": "https://www.casasbahia.com.br/p/55066000",
      "zipCode": "01001-000",
      "executionId": "exec_example_123"
    }
  }
}

Supported inputs

Conditional fields depend on the alternatives and constraints in the rule column. Fields marked unsupported are omitted.

FieldTypeRequirementRuleDefaultExample
url
URL extraction target. For some PLPs it can be omitted when API assembles URL from other fields.
string (URL) Required URL publishes from the Casas Bahia product page. The worker extracts SKU from the pattern /p/<sku>. - https://www.casasbahia.com.br/p/55066000
zipCode
CEP used in APIs with automatic geographic resolution. API accepts with or without a hyphen and normalizes to 8 digits.
string (CEP) Required Target CEP in the format 00000-000 or 8 digits. The backend normalizes to 8 digits. - 01001-000
target
Target source for extraction.
enum Required Always mandatory in the payload and must be casasbahia.com.br. casasbahia.com.br casasbahia.com.br
type
Extraction type: pdp, idp, plp, ilp, quote, review or places.
enum Required Always mandatory in the payload and must be quote. quote quote

Request examples

Shipping per product and CEP

Calculates delivery options for SKU from the reported URL and uses the seller resolved by the offer from Casas Bahia.

Shipping per product and CEP
{
  "url": "https://www.casasbahia.com.br/p/55066000",
  "target": "casasbahia.com.br",
  "type": "quote",
  "zipCode": "01001-000"
}

Response schema

Leaf paths and expected types. Field names and enum values are part of the API contract.

responseSchema
{
  "requestId": "string (uuid)",
  "executionId": "string (uuid)",
  "data.source": "string",
  "data.type": "string",
  "data.parser": "\"1.0.0\"",
  "data.url": "string",
  "data.requestUrl": "string",
  "data.extractedAt": "string (ISO 8601)",
  "data.sku": "string",
  "data.zipCode": "string",
  "data.responseZipCode": "string | null",
  "data.sellerId": "string",
  "data.sellerName": "string | null",
  "data.sellerSource": "string",
  "data.offerAvailable": "boolean | null",
  "data.offerPrice": "number | null",
  "data.totalOptions": "integer",
  "data.options[].sectionName": "string | null",
  "data.options[].name": "string | null",
  "data.options[].id": "string | null",
  "data.options[].type": "string | null",
  "data.options[].priceText": "string | null",
  "data.options[].price": "number | null",
  "data.options[].currency": "string",
  "data.options[].deadlineText": "string | null",
  "data.options[].deadlineDays": "integer | null",
  "data.options[].deliveryDate": "string | null",
  "data.options[].available": "boolean | null",
  "data.options[].message": "string | null"
}

Example response

Illustrative response. Product names, reviews and other source content retain their original language. Missing and null values do not imply zero stock, free shipping or zero reviews.

responseExample
{
  "requestId": "4c5e18d7-5b1d-41c0-9b9a-f9ab45d42c8b",
  "executionId": "a4360f20-c423-4c21-8fc8-8c9b72158498",
  "data": {
    "source": "casasbahia.com.br",
    "type": "quote",
    "parser": "1.0.0",
    "url": "https://www.casasbahia.com.br/p/55066000",
    "requestUrl": "https://www.casasbahia.com.br/p/55066000",
    "extractedAt": "2026-06-03T00:00:00.000Z",
    "sku": "55066000",
    "zipCode": "01001000",
    "responseZipCode": "01001000",
    "sellerId": "10037",
    "sellerName": "Casas Bahia",
    "sellerSource": "offer.idLojista",
    "offerAvailable": true,
    "offerPrice": 279,
    "totalOptions": 2,
    "options": [
      {
        "sectionName": "Receba em casa",
        "name": "Normal",
        "id": "normal",
        "type": "normal",
        "priceText": "19.9",
        "price": 19.9,
        "currency": "BRL",
        "deadlineText": "ate sabado, 06 de junho",
        "deadlineDays": 3,
        "deliveryDate": "06/06/2026",
        "available": true,
        "message": "Entrega disponivel para o CEP informado"
      },
      {
        "sectionName": "Receba em casa",
        "name": "Agendada",
        "id": "agendada",
        "type": "agendada",
        "priceText": "19.9",
        "price": 19.9,
        "currency": "BRL",
        "deadlineText": "A partir de 18 de agosto, terca",
        "deadlineDays": 76,
        "deliveryDate": "18/08/2026",
        "available": true,
        "message": "Entrega agendada disponivel"
      }
    ]
  }
}

Complete field reference

PathTypeDescriptionExample
data.extractedAt string (ISO 8601) Timestamp ISO at which the extraction was completed. 2026-06-03T00:00:00.000Z
data.offerAvailable boolean | null Availability of the offer used to resolve shipping. true
data.offerPrice number | null Current price of the offer used to resolve shipping when returned. 279
data.options[].available boolean | null Modality availability when returned. true
data.options[].currency string Standardized currency code. BRL
data.options[].deadlineDays integer | null Deadline in days when the source exposes a numeric field. 3
data.options[].deadlineText string | null Textual term returned by the source. ate sabado, 06 de junho
data.options[].deliveryDate string | null Expected delivery date when returned. 06/06/2026
data.options[].id string | null Modality identifier when returned. normal
data.options[].message string | null Additional modality message when returned. Entrega disponivel para o CEP informado
data.options[].name string | null Name of the delivery method. Normal
data.options[].price number | null Numerical shipping price in BRL. 19.9
data.options[].priceText string | null Textual shipping price before normalization. 19.9
data.options[].sectionName string | null Delivery section of origin, for example Receive at home. Receba em casa
data.options[].type string | null Type or technical modality when returned. normal
data.parser "1.0.0" Stable version of the API response format. 1.0.0
data.requestUrl string Same value as `data.url`; never exposes the queried internal endpoint. https://www.casasbahia.com.br/p/55066000
data.responseZipCode string | null CEP returned by the shipping endpoint when present. 01001000
data.sellerId string Seller used in the freight quote, resolved based on the origin's offer. 10037
data.sellerName string | null Name of seller resolved when the offer exposes this field. Casas Bahia
data.sellerSource string Offer field used to resolve seller: offer.idLojista or offer.marketplace.lojistaPadrao.id. offer.idLojista
data.sku string SKU extracted from URL published on the product page. 55066000
data.source string Normalized extraction source. casasbahia.com.br
data.totalOptions integer Number of standard delivery options. 2
data.type string Type of operation executed. quote
data.url string URL publishes product sent in request. https://www.casasbahia.com.br/p/55066000
data.zipCode string CEP normalized to 8 digits. 01001000
executionId string (uuid) Unique identifier of the worker execution for traceability. a4360f20-c423-4c21-8fc8-8c9b72158498
requestId string (uuid) Unique identifier of the request HTTP in GeckoAPI. 4c5e18d7-5b1d-41c0-9b9a-f9ab45d42c8b

Errors and missing data

When supported by this operation, an entity not found upstream can return HTTP 200 with data: null and notFound: true. Check the documented response fields before interpreting an empty result. Source-specific behavior and exceptions are described above.

HTTP statusError codeMeaning
400INVALID_PAYLOADInvalid JSON or a request that violates the documented validation rules.
401UNAUTHORIZEDMissing authorization or an invalid API key or token.
402INSUFFICIENT_CREDITSThe account has insufficient credits for this operation.
403FORBIDDENThe account does not have access, or the API is temporarily disabled.
409EXECUTION_CONFLICTThe execution identifier conflicts with an incompatible execution state.
429RATE_LIMIT_EXCEEDED / TOO_MANY_INFLIGHT_REQUESTSA rate limit or simultaneous request limit was exceeded.
5xxUPSTREAM_TIMEOUT / UPSTREAM_HTTP_ERROR / WORKER_FUNCTION_ERRORAn upstream, worker or gateway failure. Failed requests follow the platform refund policy.

Other Casas Bahia operations