Skip to content

xentral/carrier-integration-service-example

Repository files navigation

This is an example project that implements the bare minimum API endpoints for the Carrier Integration Service in NextJS. It implements the following routes:

  • The setup request at GET /carriers
  • The label request at POST /shipments

You can try it out yourself by connecting your Xentral instance to this service, or deploy the service yourself.

Development

First run:

npm install
# or
yarn install
# or
pnpm install
# or
bun install

Then, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the setup and label routes at: app/carriers/route.ts & app/shipments/route.ts. The routes auto update as you edit the files.

Learn More

To learn more about the Carrier Integration Service check out the official documentation.

  • Guide - A step-by-step guide for implementing the Carrier Integration Service.
  • API Spec - OpenAPI specification of the Carrier Integration Service.

Testing

This project is deployed at: carrier-integration-service-example.xentral.com

You can connect your Xentral instance to this service deployment by following the documentation.

Attribution

Based on a Next.js project bootstrapped with create-next-app.

About

An example project on how to implement the Carrier Integration Service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published