Asendia NPI API

The NPI API from Asendia — 2 operation(s) for npi.

GitHub OpenAPI

Operations 3

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /api/A1/Operation/NPI/Bin Get the bin for a tracking number · Get api a1 operation npi bin #
Ask an LLM
“Which bin is a given tracking number assigned to?”
“Can I look up an NPI bin by tracking number and processing location?”
Tell an agent
Get the bin for tracking number {trackingNumber} at {processingLocation}.
Look up NPI bin {id} for {trackingNumber} in {processingLocation}.
PUT /api/A1/Operation/NPI/Bin Assign a bin to a tracking number · Replace api a1 operation npi bin #
Ask an LLM
“How do I assign a bin to a tracking number?”
“Can I record an error when setting an NPI bin?”
Tell an agent
Assign bin {binNumber} to tracking number {trackingNumber} at {processingLocation}.
Set NPI bin {binNumber} for {trackingNumber} at {processingLocation} with error {errorCode}: {errorDescription}.
PUT /api/A1/Operation/NPI/BinClose Close an NPI bin · Replace api a1 operation npi bin close #
Ask an LLM
“How do I close an NPI bin?”
“Can I mark an NPI bin as closed at a processing location?”
Tell an agent
Close NPI bin {binNumber} at {processingLocation}.
Mark NPI bin {binNumber} as closed in {processingLocation}.

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/asendia:asendia-npi-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

asendia-npi-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Asendia NPI API
  version: NPI v1.0
  contact:
    name: Asendia USA Web Service Team for any questions or comments.
    email: john.mcshane@asendia.com;chris.joiner@asendia.com;katie.vogt@asendia.com;ammi.cabrera@asendia.com
  description: 'Operations tagged NPI across 2 of this provider''s published API definitions: asendia-a1-npi-swagger.json, asendia-a1-npi-openapi.yml. Each path carries the servers of the definition it was published in.'
tags:
- name: NPI
paths:
  /api/A1/Operation/NPI/Bin:
    get:
      tags:
      - NPI
      parameters:
      - name: processingLocation
        in: query
        description: 'The Asendia''s location in where the physical package will be processed.

          Possible values: SFO, MIA, JFK, PHL, ORD, LAX, SLC, TOR, CAL'
        required: true
        schema:
          maxLength: 3
          minLength: 3
          type: string
      - name: trackingNumber
        in: query
        description: Array of tracking numbers
        required: true
        schema:
          type: array
          items:
            type: string
      - name: id
        in: query
        description: NPI Package Unique identifier
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: Success
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/getBinNumberResponseApiResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/getBinNumberResponseApiResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/getBinNumberResponseApiResponse'
      summary: Get api a1 operation npi bin
      x-summary-source: derived
      operationId: getApiA1OperationNPIBin
      x-operation-id-source: derived
    put:
      tags:
      - NPI
      requestBody:
        content:
          application/json-patch+json:
            schema:
              $ref: '#/components/schemas/putPackageToBinRequest'
          application/json:
            schema:
              $ref: '#/components/schemas/putPackageToBinRequest'
          text/json:
            schema:
              $ref: '#/components/schemas/putPackageToBinRequest'
          application/*+json:
            schema:
              $ref: '#/components/schemas/putPackageToBinRequest'
      responses:
        '200':
          description: Success
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/BooleanApiResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/BooleanApiResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/BooleanApiResponse'
      summary: Replace api a1 operation npi bin
      x-summary-source: derived
      operationId: putApiA1OperationNPIBin
      x-operation-id-source: derived
  /api/A1/Operation/NPI/BinClose:
    put:
      tags:
      - NPI
      requestBody:
        content:
          application/json-patch+json:
            schema:
              $ref: '#/components/schemas/putBinCloseRequest'
          application/json:
            schema:
              $ref: '#/components/schemas/putBinCloseRequest'
          text/json:
            schema:
              $ref: '#/components/schemas/putBinCloseRequest'
          application/*+json:
            schema:
              $ref: '#/components/schemas/putBinCloseRequest'
      responses:
        '200':
          description: Success
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/BooleanApiResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/BooleanApiResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/BooleanApiResponse'
      summary: Replace api a1 operation npi bin close
      x-summary-source: derived
      operationId: putApiA1OperationNPIBinClose
      x-operation-id-source: derived
components:
  schemas:
    getBinNumberResponseApiResponse:
      type: object
      properties:
        data:
          allOf:
          - $ref: '#/components/schemas/getBinNumberResponse'
        responseStatus:
          allOf:
          - $ref: '#/components/schemas/ResponseStatus'
      additionalProperties: false
    putBinCloseRequest:
      required:
      - binNumber
      - processingLocation
      type: object
      properties:
        binNumber:
          type: string
          description: The Bin number of the request
        processingLocation:
          maxLength: 3
          minLength: 3
          type: string
          description: 'The Asendia''s location in where the physical package will be processed.

            Possible values: SFO, MIA, JFK, PHL, ORD, LAX, SLC, TOR, CAL'
      additionalProperties: false
    putPackageToBinRequest:
      required:
      - binNumber
      - processingLocation
      - trackingNumber
      type: object
      properties:
        binNumber:
          type: string
          description: The Bin number of the request
        processingLocation:
          maxLength: 3
          minLength: 3
          type: string
          description: 'The Asendia''s location in where the physical package will be processed.

            Possible values: SFO, MIA, JFK, PHL, ORD, LAX, SLC, TOR, CAL'
        trackingNumber:
          type: string
          description: The Tracking number of the request
        errorCode:
          type:
          - string
          - 'null'
          description: Error Code
        errorDescription:
          type:
          - string
          - 'null'
          description: Error Description
      additionalProperties: false
    ResponseStatus:
      type: object
      properties:
        responseStatusCode:
          type: integer
          description: This is used to display the code for the return status.
          format: int32
        responseStatusMessage:
          type:
          - string
          - 'null'
          description: This is used for a human readable return status message.
      additionalProperties: false
      description: Displays the status of the Return
    BooleanApiResponse:
      type: object
      properties:
        data:
          type: boolean
        responseStatus:
          allOf:
          - $ref: '#/components/schemas/ResponseStatus'
      additionalProperties: false
    getBinNumberResponse:
      required:
      - bin
      - trackingNumber
      type: object
      properties:
        bin:
          type: array
          items:
            type: string
          description: Array of assigned bins
        trackingNumber:
          type: string
          description: Tracking number found
      additionalProperties: false
x-refined-from:
- asendia-a1-npi-swagger.json
- asendia-a1-npi-openapi.yml