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.
First run:
npm install
# or
yarn install
# or
pnpm install
# or
bun installThen, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun devOpen 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.
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.
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.
Based on a Next.js project bootstrapped with create-next-app.