Pharmacy
Shipping
Create Shipment

Create Shipment

Create a new shipment for an order.

Overview

  • Method: POST
  • Path: /pharmacy/shipping/create-shipment
  • Tags: pharmacy

Parameters

No parameters required.

Request Body

  • Content Type: application/json
  • Required: Yes

Fields

FieldTypeRequiredDetails
orderIdstringYes
shippingMethodobjectYes
carrierobjectYes
trackingNumberstringNo
estimatedDeliverystringNo
shippingAddressstringYes
lastNamestringYes
address1stringYes
address2stringNo
citystringYes
statestringYes
postalCodestringYes
countrystringYes

Responses

200

Successful response

Content Type: application/json

{
  "shipmentId": "string",
  "trackingNumber": "string",
  "status": {},
  "estimatedDelivery": "string",
  "trackingUrl": "string",
  "created_at": "string"
}

400

Bad Request

Content Type: application/json

{}

401

Unauthorized

404

Not Found

500

Internal Server Error

Example Usage

curl -X POST \
  https://api.pillexa.com/pharmacy/shipping/create-shipment \
  -H "Content-Type: application/json" \
  -d '{"example": "data"}'