Asendia Close Shipment API

The CloseShipment API from Asendia — 2 operation(s) for closeshipment.

Operations 2

POST /api/A1/CloseShipment/CloseShipment Create api a1 close shipment close shipment #
POST /api/A1/CloseShipment/CloseDAShipment Create api a1 close shipment close da shipment #

Specifications

Schemas & Data

📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-consolidation-orders-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-consolidation-orders-response-api-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-ttevents-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-ttevents-response-api-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-volumizer-pre-process-parcel-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-generic-pre-process-parcel-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-pre-process-parcel-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-volumizer-pre-process-parcel-response-api-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-generic-pre-process-parcel-response-api-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-vitronic-data-item-list-api-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-external-invoice-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-boolean-api-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-sales-order-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-purchase-order-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-void-sales-order-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-inventory-adjustment-response-list-api-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-response-sales-order-api-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-item-receipt-api-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-insert-processing-entry-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-close-bag-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-finish-run-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-int32-api-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-put-package-to-bin-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-put-bin-close-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-get-bin-number-response-api-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-post-parcel-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-response-status-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-delete-parcel-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-post-close-dashipment-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-post-close-shipment-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-close-shipment-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-pudo-locator-response-api-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-barcode-scan-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-string-api-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-post-receptacle-api-model-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-create-receptacle-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-get-receptacle-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-customer-account-list-api-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-customer-contact-list-api-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-post-package-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-post-pre-alert-request-with-receptacle-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-post-pre-alert-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-post-close-direct-shipment-dispatch-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-post-close-dispatch-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-post-package-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-post-package-bulk-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-get-tracking-milestone-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-get-tracking-detail-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-tracking-milestone-list-api-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/asendia/json-schema/asendia-tracking-detail-list-api-response-schema.json

Other Resources

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

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

OpenAPI Specification

asendia-closeshipment-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Asendia Close Shipment API
  version: Parcel 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 CloseShipment across 2 of this provider''s published API definitions: asendia-a1-parcel-swagger.json, asendia-a1-parcel-openapi.yml. Each path carries the servers of the definition it was published in.'
tags:
- name: CloseShipment
paths:
  /api/A1/CloseShipment/CloseShipment:
    post:
      tags:
      - CloseShipment
      requestBody:
        content:
          application/json-patch+json:
            schema:
              $ref: '#/components/schemas/closeShipmentRequest'
          application/json:
            schema:
              $ref: '#/components/schemas/closeShipmentRequest'
          text/json:
            schema:
              $ref: '#/components/schemas/closeShipmentRequest'
          application/*+json:
            schema:
              $ref: '#/components/schemas/closeShipmentRequest'
      responses:
        '200':
          description: Success
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/postCloseShipmentResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/postCloseShipmentResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/postCloseShipmentResponse'
      summary: Create api a1 close shipment close shipment
      x-summary-source: derived
      operationId: postApiA1CloseShipmentCloseShipment
      x-operation-id-source: derived
  /api/A1/CloseShipment/CloseDAShipment:
    post:
      tags:
      - CloseShipment
      requestBody:
        content:
          application/json-patch+json:
            schema:
              $ref: '#/components/schemas/CloseDAShipmentsRequest'
          application/json:
            schema:
              $ref: '#/components/schemas/CloseDAShipmentsRequest'
          text/json:
            schema:
              $ref: '#/components/schemas/CloseDAShipmentsRequest'
          application/*+json:
            schema:
              $ref: '#/components/schemas/CloseDAShipmentsRequest'
      responses:
        '200':
          description: Success
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/postCloseDAShipmentResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/postCloseDAShipmentResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/postCloseDAShipmentResponse'
      summary: Create api a1 close shipment close da shipment
      x-summary-source: derived
      operationId: postApiA1CloseShipmentCloseDAShipment
      x-operation-id-source: derived
components:
  schemas:
    postCloseShipmentResponse:
      type: object
      properties:
        closeShipment:
          allOf:
          - $ref: '#/components/schemas/closeShipmentResponseModel'
        responseStatus:
          allOf:
          - $ref: '#/components/schemas/responseStatus'
      additionalProperties: false
    CloseDAShipmentRequest:
      required:
      - accountNumber
      - manifestDate
      - shipmentsToClose
      type: object
      properties:
        accountNumber:
          maxLength: 12
          type: string
        subAccountNumber:
          maxLength: 12
          type:
          - string
          - 'null'
        shippingLocation:
          type:
          - string
          - 'null'
        processingPoint:
          type:
          - string
          - 'null'
        manifestDate:
          type: string
          description: Expected formats are MM.dd.yyyy or MM/dd/yyyy or yyyy-MM-dd.
        trackingIdentifier:
          type:
          - string
          - 'null'
        transport:
          allOf:
          - $ref: '#/components/schemas/TransportData'
        customerReferenceNumber1:
          maxLength: 50
          type:
          - string
          - 'null'
        customerReferenceNumber2:
          maxLength: 50
          type:
          - string
          - 'null'
        customerReferenceNumber3:
          maxLength: 50
          type:
          - string
          - 'null'
        dhlbolNumber:
          type:
          - string
          - 'null'
        shipmentsToClose:
          type: array
          items:
            $ref: '#/components/schemas/shipmentsToClose'
      additionalProperties: false
    closeShipmentResponseModel:
      type: object
      properties:
        jobNumber:
          type:
          - string
          - 'null'
          description: Job number automatically assigned by A1
        jobStatus:
          type:
          - string
          - 'null'
          description: Job status. "Not received" if job is properly created (and is not direct access), "Not received" if created successfully but pickup mising, "Error-not created" or similar if request failed and job is not created. Or "Closed" for direct access
        jobCreationDate:
          type:
          - string
          - 'null'
          format: date-time
        jobProductCode:
          type:
          - string
          - 'null'
          description: job Product Code calculated by A1 according to parcels' Product Codes in the job
        jobProductName:
          type:
          - string
          - 'null'
          description: job Product name related to Product Code
        jobQuoteCode:
          type:
          - string
          - 'null'
          description: job Quote Code calculated by A1 according to parcels' Quote Codes in the job
        jobQuoteName:
          type:
          - string
          - 'null'
          description: job Quote name related to Quote Code
        jobTotalWeight:
          type:
          - number
          - 'null'
          description: job Weight Unit calculated by A1 according to sum of parcelWeights of parcels in the job
          format: double
        jobWeightUnit:
          allOf:
          - $ref: '#/components/schemas/weightUnitEnum'
          description: 'job weight unit (Lb or Kg) - same as weightUnit from parcels contained in the job.

            Possible values: [ Lb, Kg ]'
        jobTotalPieces:
          type:
          - integer
          - 'null'
          description: job Total Pieces calculated by A1 according to number or parcels in the job
          format: int32
        isDirectAccess:
          type:
          - boolean
          - 'null'
        packageUsedInAnotherJob:
          type:
          - array
          - 'null'
          items:
            type: string
        jobDocuments:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/jobDocument'
          description: 'See jobDocuments object. Array can contain multiple entries.

            Contains delivery note (SCD) and possibly some manifests in case of Direct Access'
      additionalProperties: false
    jobDocument:
      type: object
      properties:
        name:
          type:
          - string
          - 'null'
          description: ''
        type:
          allOf:
          - $ref: '#/components/schemas/labelTypeEnum'
          description: 'Possible values: [ PDF, PNG, ZPL, ANY ]'
        content:
          type:
          - string
          - 'null'
          description: ''
      additionalProperties: false
    ReportData:
      required:
      - contentData
      - contentSize
      - contentTypeId
      - formatCode
      type: object
      properties:
        name:
          type:
          - string
          - 'null'
        formatCode:
          type: string
        contentTypeId:
          type: integer
          format: int32
        contentTypeName:
          type:
          - string
          - 'null'
        contentSize:
          type: string
        createdOn:
          type:
          - string
          - 'null'
          format: date-time
        createdBy:
          type:
          - string
          - 'null'
        exportedOn:
          type:
          - string
          - 'null'
          format: date-time
        exportedBy:
          type:
          - string
          - 'null'
        friendlyName:
          type:
          - string
          - 'null'
        contentData:
          type: string
        reportId:
          type: integer
          format: int32
        fileName:
          type:
          - string
          - 'null'
        orientation:
          type:
          - string
          - 'null'
        fileLocationPath:
          type:
          - string
          - 'null'
        carrierLabelType:
          type:
          - string
          - 'null'
          description: A-Carrier document type when available (e.g. ACL Label.Type). Used to distinguish customs documents from shipping labels.
        isS3File:
          type: boolean
        numberOfCopies:
          type: integer
          format: int32
      additionalProperties: false
    CloseDAShipmentsRequest:
      type: object
      properties:
        closeDAShipmentRequest:
          allOf:
          - $ref: '#/components/schemas/CloseDAShipmentRequest'
      additionalProperties: false
    postCloseDAShipmentResponse:
      type: object
      properties:
        responseStatus:
          allOf:
          - $ref: '#/components/schemas/responseStatus'
        closeDAShipment:
          allOf:
          - $ref: '#/components/schemas/closeDAShipmentResponseModel'
      additionalProperties: false
    closeShipmentRequestModel:
      required:
      - accountNumber
      - pickupCarrier
      type: object
      properties:
        accountNumber:
          maxLength: 12
          type: string
          description: Asendia's account number designated for the shipper. This will be provided at account setup.
        subAccountNumber:
          maxLength: 12
          type:
          - string
          - 'null'
          description: Asendia's sub account number designated for the shipper, if applicable. This will be provided at account setup.
        shippingLocation:
          type:
          - string
          - 'null'
          description: 'The location customer is shipping from: either customer drops off parcels from this shipping location to Asendia processing location or Asendia picks up parcels at this designated shipping location

            For each customer each location has a unique code and one of them is set as default location.

            For the default location, DEFAULT value can be used instead of location code which makes setup easier for customers with a unique location.

            If customer has several locations, field must be populated with the code of the location provided during onboarding phase.'
        processingPoint:
          type:
          - string
          - 'null'
        isDirectAccess:
          type:
          - boolean
          - 'null'
        pickupCarrier:
          type: string
          description: 'The Asendia''s location in where the physical package will be processed.

            Equivalent of "Pickup Carrier" field from Job creation but using codes rather than free text.

            - if customer drops himself shipments to processsing location, then pickupCarrier=CUSTDROPOFF (*)

            - if a pickup is requested, then pickupCarrier=ASPICKUP (*)

            - if Direct Access, then pickupCarrier=DIRECTA

            - if other carrier is concerned, use related code'
        trackingIdentifier:
          type:
          - string
          - 'null'
          description: Can be used in case of customer drop-off if a carrier is used for transport and provides a tracking number/identifier. Customer and Asendia can accordinglyu track shipment from customer location to Asendia processing location
        transportReference:
          type:
          - string
          - 'null'
          description: Used for Direct Access to capture transport or shipping reference such as MAWB number
        customerReferenceNumber1:
          maxLength: 50
          type:
          - string
          - 'null'
          description: Users have the option of entering notes for their own purposes in these three fields.  Any notes entered will display on the shipping control document (SCD), reports, and invoices.
        customerReferenceNumber2:
          maxLength: 50
          type:
          - string
          - 'null'
          description: Users have the option of entering notes for their own purposes in these three fields.  Any notes entered will display on the shipping control document (SCD), reports, and invoices.
        customerReferenceNumber3:
          maxLength: 50
          type:
          - string
          - 'null'
          description: Users have the option of entering notes for their own purposes in these three fields.  Any notes entered will display on the shipping control document (SCD), reports, and invoices.
        dhlbolNumber:
          type:
          - string
          - 'null'
          description: ''
        shipmentsToClose:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/shipmentsToClose'
          description: 'See shipmentsToClose object

            Array - list of parcels or orders or receptacles/containers or dispatches to be closed

            Must contain at least one number

            Each shipment can be identified using one of the following number types:

            - trackingNumber of a Parcel (retrieved from Create Parcel) if you want to close parcels one by one

            - or orderNumber (provided by customer in Create Parcel) if you want to close parcels using their order numbers - if several parcels have the same order number, they will all be closed except if a parcel was closed before

            - or containerNumber (provided by Create Container) if you want to close all parcels within a bag

            - or dispatchNumber (provided by customer in Create Parcel) if you want to close all parcels nested in the same customer dispatch

            Important: don''t mix number types in the same request so don''t provid a mix of tracking numbers and order numbers. Provide only tracking numbers or only order numbers or only dispatch numbers or only container numbers'
      additionalProperties: false
    weightUnitEnum:
      enum:
      - Lb
      - Lbs
      - Kg
      - Kgs
      - LB
      - LBS
      - KG
      - KGS
      type: string
    shipmentsToClose:
      type: object
      properties:
        trackingNumber:
          maxLength: 50
          minLength: 0
          type:
          - string
          - 'null'
          description: trackingNumber of a Parcel (retrieved from Create Parcel)
        packageId:
          maxLength: 50
          minLength: 0
          type:
          - string
          - 'null'
          description: packageId
        orderNumber:
          maxLength: 50
          type:
          - string
          - 'null'
          description: 'orderNumber (provided by customer in Create Parcel)

            If several parcels have the same order number, they will all be closed except if a parcel was closed before'
        containerNumber:
          maxLength: 50
          type:
          - string
          - 'null'
          description: 'containerNumber (provided by Create Container)

            You must provide at least one number and number types cannot be mixed: only trackingNumbers, or only orderNumbers, or only dispatchNumbers, or only containerNumbers'
        dispatchNumber:
          maxLength: 100
          type:
          - string
          - 'null'
          description: 'dispatchNumber (provided by customer in Create Parcel)

            You must provide at least one number and number types cannot be mixed: only trackingNumbers, or only orderNumbers, or only dispatchNumbers, or only containerNumbers'
      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
    closeShipmentRequest:
      type: object
      properties:
        closeShipmentsRequest:
          allOf:
          - $ref: '#/components/schemas/closeShipmentRequestModel'
      additionalProperties: false
    TransportData:
      type: object
      properties:
        transportReference:
          type:
          - string
          - 'null'
        flightNumber:
          type:
          - string
          - 'null'
        etd:
          type:
          - string
          - 'null'
        eta:
          type:
          - string
          - 'null'
        originPort:
          maxLength: 3
          type:
          - string
          - 'null'
        destinationPort:
          maxLength: 3
          type:
          - string
          - 'null'
      additionalProperties: false
    labelTypeEnum:
      enum:
      - PDF
      - PNG
      - ZPL
      - ZPL300
      - ANY
      type: string
      description: Format label return in response
    closeDAShipmentResponseModel:
      type: object
      properties:
        jobId:
          type: integer
          format: int32
        jobNumber:
          type:
          - string
          - 'null'
        jobStatus:
          type:
          - string
          - 'null'
        jobCreationDate:
          type: string
          format: date-time
        jobProductCode:
          type:
          - string
          - 'null'
        jobProductName:
          type:
          - string
          - 'null'
        jobQuoteCode:
          type:
          - string
          - 'null'
        jobQuoteName:
          type:
          - string
          - 'null'
        jobTotalWeight:
          type:
          - number
          - 'null'
          format: double
        jobTotalPieces:
          type: integer
          format: int32
        jobWeightUnit:
          allOf:
          - $ref: '#/components/schemas/weightUnitEnum'
        isDirectAccess:
          type: boolean
        packageUsedInAnotherJob:
          type:
          - array
          - 'null'
          items:
            type: string
        receptacleNumbers:
          type:
          - array
          - 'null'
          items:
            type: string
        serviceDispatchNumbers:
          type:
          - array
          - 'null'
          items:
            type: string
        shipmentDispatchNumber:
          type:
          - string
          - 'null'
        receptacleLabels:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/ReportData'
      additionalProperties: false
x-refined-from:
- asendia-a1-parcel-swagger.json
- asendia-a1-parcel-openapi.yml