Socket
Book a DemoInstallSign in
Socket

@shipengine/connect-order-source-runtime

Package Overview
Dependencies
Maintainers
42
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shipengine/connect-order-source-runtime

This is the app host for a order source Connect app. It provides an HTTP interface implementing the OrderSourceAPI spec and does mapping to Connect and back

latest
Source
npmnpm
Version
1.27.7
Version published
Weekly downloads
58
5.45%
Maintainers
42
Weekly downloads
 
Created
Source

Developer Experience Order App Runtime

:no_entry_sign: This package is deprecated. Only legacy (v1) connect apps use this package, v2 does not need it. :no_entry_sign:

This is an HTTP runtime host for the ShipEngine Integration Platform's Order App.

In default mode this runtime exposes the eCommerce API 1.0 HTTP specification and serves as a mapping layer between that specification, and the function calls that an Order App implements. ShipStation ultimately makes calls to this API with the ModuleClient, but are first routed through a Gateway using the HTTP header api-code as the discriminator.

The ShipEngine Integration Platform Loader loads the Order App from a directory specified by the environment variable DX_APP_PATH.

The runtime can run Order Apps of two types:

  • ShipEngine Order App (default)
  • A proxy for HTTP requests
    • Set config.runtime_proxy: true in the App package.json
    • Implement and default export the ProxyApp interface. See ecom-proxy for an example
    • Mapping is not performed with the proxy app type

Developing

This runtime is invisible to a user of the ShipEngine Integration Platform ecosystem, as it is deployed by an app:publish triggering a build and deployment within the Function Manager.

To run this project locally you must set the DX_APP_PATH env variable to the root directory of your App. You can use .env.local, a .gitignore file.

An example order export of the eCommerce 1.0 specification

curl -X POST 'http://localhost:3006/export_sales_orders' \
    -H 'Content-Type: application/json' \
    -d '{
        "transaction_id": "754e4fc9-a7cd-4718-b029-9876c89267c2",
        "auth": {
            "base_url": "http://mock-custom-store-stage.kubedev.sslocal.com/"
        },
        "from_date_time": "2020-01-27T17:00:00.000Z",
        "to_date_time": "2020-01-27T18:00:00.000Z"
    }'

See Also

This project is based on the Shipping App Runtime found here.

FAQs

Package last updated on 11 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts