Loggi Package Cancel API

The PackageCancelAPI API from Loggi — 1 operation(s) for packagecancelapi.

Operations 1

POST /v1/companies/{company_id}/packages/cancel Cancelar envio #

Specifications

Schemas & Data

📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/loggi/refs/heads/main/json-schema/loggi-service-account-token-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/loggi/refs/heads/main/json-schema/loggi-service-account-token-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/loggi/refs/heads/main/json-schema/loggi-quote-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/loggi/refs/heads/main/json-schema/loggi-quote-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/loggi/refs/heads/main/json-schema/loggi-v1-integrator-company-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/loggi/refs/heads/main/json-schema/loggi-v1-create-label-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/loggi/refs/heads/main/json-schema/loggi-v1-create-label-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/loggi/refs/heads/main/json-schema/loggi-v1-package-details-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/loggi/refs/heads/main/json-schema/loggi-v1-package-update-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/loggi/refs/heads/main/json-schema/loggi-v1-package-update-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/loggi/refs/heads/main/json-schema/loggi-v1-package-cancel-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/loggi/refs/heads/main/json-schema/loggi-list-dropoff-locations-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/loggi/refs/heads/main/json-schema/loggi-list-dropoff-locations-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/loggi/refs/heads/main/json-schema/loggi-v1-create-async-shipment-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/loggi/refs/heads/main/json-schema/loggi-v1-create-async-shipment-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/loggi/refs/heads/main/json-schema/loggi-v1-track-package-tracking-code-response-schema.json

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/loggi:loggi-packagecancelapi-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

loggi-packagecancelapi-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Package Cancel API
  version: v1
  description: Disponibiliza serviços para atuar sobre um pacote.
servers:
- url: https://stg.api.loggi.com
- url: https://api.loggi.com
tags:
- name: PackageCancelAPI
paths:
  /v1/companies/{company_id}/packages/cancel:
    post:
      summary: Cancelar envio
      description: ''
      operationId: PackageCancel
      security:
      - OAuth2: []
      responses:
        '200':
          description: Pacote cancelado com sucesso
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/v1PackageCancelResponse'
        '400':
          description: Mensagem do cliente não segue a especificação
          content:
            application/json:
              example:
                code: 3
                message: Mensagem do cliente não segue a especificação
                details: []
              schema:
                $ref: '#/components/schemas/ErrorMessage'
        '401':
          description: Falha de autenticação
          content:
            application/json:
              example:
                code: 16
                message: Falha de autenticação
                details: []
              schema:
                $ref: '#/components/schemas/ErrorMessage'
        '403':
          description: Sem autorização para acessar o serviço
          content:
            application/json:
              example:
                code: 7
                message: Acesso não autorizado
                details: []
              schema:
                $ref: '#/components/schemas/ErrorMessage'
        '404':
          description: Recurso não encontrado
          content:
            application/json:
              example:
                code: 5
                message: Recurso não encontrado
                details: []
              schema:
                $ref: '#/components/schemas/ErrorMessage'
        '429':
          description: Requisições massivas bloqueadas
          content:
            application/json:
              example:
                code: 8
                message: Requisições massivas bloqueadas
                details: []
              schema:
                $ref: '#/components/schemas/ErrorMessage'
        '500':
          description: Erro interno
          content:
            application/json:
              example:
                code: 13
                message: Erro interno
                details: []
              schema:
                $ref: '#/components/schemas/ErrorMessage'
        '503':
          description: Serviço temporariamente indisponível
          content:
            application/json:
              example:
                code: 14
                message: Serviço temporariamente indisponível
                details: []
              schema:
                $ref: '#/components/schemas/ErrorMessage'
      parameters:
      - name: company_id
        in: path
        required: true
        description: Código numérico fornecido pela Loggi para identificação.
        schema:
          type: string
      - name: loggi_key
        in: query
        required: false
        description: Código único gerado pela Loggi, ou seja, cada pacote deve ter um loggi_key único.
        schema:
          type: string
      - name: tracking_code
        in: query
        required: false
        description: Código de rastreio do pacote, que é gerado pela Loggi ou pelo parceiro por meio da API de envio.
        schema:
          type: string
      tags:
      - PackageCancelAPI
components:
  schemas:
    ErrorMessage:
      type: object
      properties:
        code:
          type: integer
          format: int32
          description: 'Código numérico referente à falha.

            INVALID_ARGUMENT = 3

            NOT_FOUND = 5

            PERMISSION_DENIED = 7

            RESOURCE_EXHAUSTED = 8

            FAILED_PRECONDITION = 9

            INTERNAL = 13

            UNAVAILABLE = 14

            UNAUTHENTICATED = 16'
          example: 14
        message:
          type: string
          description: Texto pequeno informativo sobre a falha.
          example: Requisição com credenciais inválidas.
        details:
          type: array
          description: Detalhes sobre a falha. Nesta versão da API ainda não está sendo retornado, mas deve ser considerado um array de objetos de tipos distintos.
          items: {}
          example: []
    v1PackageCancelResponse:
      type: object
      properties:
        warning_type:
          type: string
          description: Mensagem com a constante que identifica casos em que o cancelamento não pode ser confirmado.
          example: REDISPATCH_CANCELLATION
        warning_message:
          type: string
          description: Mensagem de alerta para casos em que o cancelamento não pode ser confirmado.
          example: O pacote está com os correios. Vamos tentar cancelar e devolver pra você.
      description: Objeto que configura a resposta da API de cancelamento de pacotes.
  securitySchemes:
    OAuth2:
      type: oauth2
      description: Autenticação OAuth 2.0 para clientes da API.
      flows:
        clientCredentials:
          tokenUrl: https://api.loggi.com/oauth2/token
          scopes: {}
x-provenance:
  method: searched
  source: https://docs.api.loggi.com/reference
  harvested: '2026-10-14'
  tool: harvest-readme-openapi.py
  note: Assembled verbatim from the OpenAPI definition ReadMe embeds in each operation page of the provider's developer portal; paths and components merged by API title, nothing authored.
  assembled_from:
  - https://docs.api.loggi.com/reference/packagecancel.md
  - https://docs.api.loggi.com/reference/packagecancelapi.md
  - https://docs.api.loggi.com/reference/packageupdate.md
  - https://docs.api.loggi.com/reference/packageupdateapi.md
  merge:
    pages: 4
    deduped: 11
    conflicts_kept_first: 0