Meu Ecommerce Rates API

The Rates API from Meu Ecommerce — 1 operation(s) for rates.

GitHub OpenAPI

Operations 1

POST /v1/rates Cotar frete (SEDEX/PAC...) para um carrinho #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/meuecommerce-com-br:meuecommerce-com-br-rates-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

meuecommerce-com-br-rates-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Meuecommerce Com Br Rates API
  version: 1.0.0
  description: 'Operations tagged Rates across 2 of this provider''s published API definitions: meuecommerce-com-br-dev-openapi.json, meuecommerce-com-br-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.meuecommerce.com.br
tags:
- name: Rates
paths:
  /v1/rates:
    post:
      operationId: getShippingRates
      summary: Cotar frete (SEDEX/PAC...) para um carrinho
      description: Retorna cada serviço habilitado com preço (BRL) e prazo. A loja vem da chave — não envie instanceId. Aceita chave pública (pk_) ou secreta (mk_). CORS habilitado para uso direto no frontend.
      security:
      - PublicKey: []
      - SecretKey: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - destinationCep
              - items
              properties:
                destinationCep:
                  type: string
                  description: CEP de destino (8 dígitos; traços/espaços são ignorados).
                  example: 20040-002
                items:
                  type: array
                  minItems: 1
                  maxItems: 50
                  items:
                    type: object
                    required:
                    - name
                    - quantity
                    - unitPriceBRL
                    properties:
                      name:
                        type: string
                        description: Product name.
                      quantity:
                        type: integer
                        minimum: 1
                        description: Units of this product in the cart.
                      unitPriceBRL:
                        type: number
                        minimum: 0
                        description: Unit price in BRL (used for free-shipping thresholds).
                      weightKg:
                        type: number
                        exclusiveMinimum: 0
                        description: Unit weight in kg. Defaults to 0.3kg if omitted.
                      productId:
                        type: string
                        maxLength: 200
                        description: 'Your catalog''s product id. Advanced plan: remembers this product''s estimated dimensions between quotes (otherwise the name is the key).'
                      variantId:
                        type: string
                        maxLength: 200
                        description: Variant id (size/color), so each variant keeps its own dimensions.
                      sku:
                        type: string
                        maxLength: 200
                        description: SKU, used as the product key when there is no productId.
                      dimensionsCm:
                        type: object
                        required:
                        - length
                        - width
                        - height
                        description: 'Unit dimensions in cm, when known. Advanced plan: used as-is instead of the AI estimate. Other plans ignore it (they pack into the store''s first box).'
                        properties:
                          length:
                            type: number
                            exclusiveMinimum: 0
                            maximum: 300
                          width:
                            type: number
                            exclusiveMinimum: 0
                            maximum: 300
                          height:
                            type: number
                            exclusiveMinimum: 0
                            maximum: 300
                requestId:
                  type: string
                  description: Id de correlação/idempotência. Gerado automaticamente se omitido.
      responses:
        '200':
          description: 'Cotação (pode vir vazia com um `reason` informativo, ex.: CEP sem cobertura).'
          content:
            application/json:
              schema:
                type: object
                required:
                - rates
                properties:
                  rates:
                    type: array
                    items:
                      type: object
                      required:
                      - code
                      - serviceId
                      - label
                      - deliveryDays
                      - price
                      properties:
                        code:
                          type: string
                          example: SEDEX
                        serviceId:
                          type: string
                          example: correios_sedex
                        label:
                          type: string
                          example: SEDEX
                        deliveryDays:
                          type: integer
                          example: 2
                        price:
                          type: number
                          example: 32.1
                        free:
                          type: boolean
                  reason:
                    type: string
                    description: Por que a lista veio vazia, quando aplicável.
                  actionUrl:
                    type: string
        '400':
          description: Corpo inválido.
          content:
            application/json:
              schema:
                type: object
                required:
                - error
                properties:
                  error:
                    type: object
                    required:
                    - code
                    - message
                    properties:
                      code:
                        type: string
                        example: invalid_api_key
                      message:
                        type: string
                      actionUrl:
                        type: string
                        description: When present, send the merchant here to finish setup.
        '401':
          description: Chave ausente ou inválida.
          content:
            application/json:
              schema:
                type: object
                required:
                - error
                properties:
                  error:
                    type: object
                    required:
                    - code
                    - message
                    properties:
                      code:
                        type: string
                        example: invalid_api_key
                      message:
                        type: string
                      actionUrl:
                        type: string
                        description: When present, send the merchant here to finish setup.
        '402':
          description: Assinatura necessária (`subscription_required`) ou franquia grátis do mês esgotada (`free_quota_exceeded`, com `Retry-After` até a virada do mês UTC).
          content:
            application/json:
              schema:
                type: object
                required:
                - error
                properties:
                  error:
                    type: object
                    required:
                    - code
                    - message
                    properties:
                      code:
                        type: string
                        example: invalid_api_key
                      message:
                        type: string
                      actionUrl:
                        type: string
                        description: When present, send the merchant here to finish setup.
        '404':
          description: Loja não encontrada.
          content:
            application/json:
              schema:
                type: object
                required:
                - error
                properties:
                  error:
                    type: object
                    required:
                    - code
                    - message
                    properties:
                      code:
                        type: string
                        example: invalid_api_key
                      message:
                        type: string
                      actionUrl:
                        type: string
                        description: When present, send the merchant here to finish setup.
        '413':
          description: Corpo grande demais.
          content:
            application/json:
              schema:
                type: object
                required:
                - error
                properties:
                  error:
                    type: object
                    required:
                    - code
                    - message
                    properties:
                      code:
                        type: string
                        example: invalid_api_key
                      message:
                        type: string
                      actionUrl:
                        type: string
                        description: When present, send the merchant here to finish setup.
        '429':
          description: Limite por minuto excedido (`rate_limited`). Aguarde os segundos indicados em `Retry-After`.
          content:
            application/json:
              schema:
                type: object
                required:
                - error
                properties:
                  error:
                    type: object
                    required:
                    - code
                    - message
                    properties:
                      code:
                        type: string
                        example: invalid_api_key
                      message:
                        type: string
                      actionUrl:
                        type: string
                        description: When present, send the merchant here to finish setup.
        '502':
          description: Falha ao consultar os Correios.
          content:
            application/json:
              schema:
                type: object
                required:
                - error
                properties:
                  error:
                    type: object
                    required:
                    - code
                    - message
                    properties:
                      code:
                        type: string
                        example: invalid_api_key
                      message:
                        type: string
                      actionUrl:
                        type: string
                        description: When present, send the merchant here to finish setup.
      tags:
      - Rates
    servers:
    - url: https://api.meuecommerce.com.br
components:
  securitySchemes:
    PublicKey:
      type: http
      scheme: bearer
      description: Chave pública pk_... (quote-only).
    SecretKey:
      type: http
      scheme: bearer
      description: Chave secreta mk_... (acesso completo).
x-refined-from:
- meuecommerce-com-br-dev-openapi.json
- meuecommerce-com-br-openapi.json