API Reference
@agamya/bigship-sdk
Section titled “@agamya/bigship-sdk”Classes
Section titled “Classes”BigshipApiError
Section titled “BigshipApiError”Defined in: packages/sdk/src/errors/index.ts:30
Base API error with additional context information
Example
Section titled “Example”try { await client.addSingleOrder(orderData);} catch (error) { if (error instanceof BigshipApiError) { console.log('Request ID:', error.requestId); console.log('Endpoint:', error.endpoint); console.log('Response:', error.responseBody); }}Extends
Section titled “Extends”Extended by
Section titled “Extended by”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new BigshipApiError( message: string, statusCode: number, options?: BigshipApiErrorOptions): BigshipApiError;Defined in: packages/sdk/src/errors/index.ts:35
Parameters
Section titled “Parameters”message
Section titled “message”string
statusCode
Section titled “statusCode”number
options?
Section titled “options?”Returns
Section titled “Returns”Overrides
Section titled “Overrides”Properties
Section titled “Properties”| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
apiResponse? |
readonly |
BigshipErrorData |
- | BigshipError.apiResponse |
packages/sdk/src/errors/BigshipError.ts:33 |
cause? |
public |
unknown |
- | BigshipError.cause |
node_modules/typescript/lib/lib.es2022.error.d.ts:26 |
code? |
readonly |
string |
- | BigshipError.code |
packages/sdk/src/errors/BigshipError.ts:32 |
endpoint? |
readonly |
string |
- | - | packages/sdk/src/errors/index.ts:32 |
message |
public |
string |
- | BigshipError.message |
node_modules/typescript/lib/lib.es5.d.ts:1077 |
name |
public |
string |
- | BigshipError.name |
node_modules/typescript/lib/lib.es5.d.ts:1076 |
requestId? |
readonly |
string |
- | - | packages/sdk/src/errors/index.ts:31 |
responseBody? |
readonly |
unknown |
- | - | packages/sdk/src/errors/index.ts:33 |
stack? |
public |
string |
- | BigshipError.stack |
node_modules/typescript/lib/lib.es5.d.ts:1078 |
statusCode |
readonly |
number |
- | BigshipError.statusCode |
packages/sdk/src/errors/BigshipError.ts:31 |
traceId? |
readonly |
string |
- | BigshipError.traceId |
packages/sdk/src/errors/BigshipError.ts:35 |
validationErrors? |
readonly |
Record<string, string[]> |
- | BigshipError.validationErrors |
packages/sdk/src/errors/BigshipError.ts:34 |
stackTraceLimit |
static |
number |
The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)). The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed. If set to a non-number value, or set to a negative number, stack traces will not capture any frames. |
BigshipError.stackTraceLimit |
node_modules/@types/node/globals.d.ts:68 |
Methods
Section titled “Methods”isAuthError()
Section titled “isAuthError()”isAuthError(): boolean;Defined in: packages/sdk/src/errors/BigshipError.ts:61
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”isRateLimitError()
Section titled “isRateLimitError()”isRateLimitError(): boolean;Defined in: packages/sdk/src/errors/BigshipError.ts:57
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”isValidationError()
Section titled “isValidationError()”isValidationError(): boolean;Defined in: packages/sdk/src/errors/BigshipError.ts:53
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”BigshipError.isValidationError
captureStackTrace()
Section titled “captureStackTrace()”static captureStackTrace(targetObject: object, constructorOpt?: Function): void;Defined in: node_modules/@types/node/globals.d.ts:52
Creates a .stack property on targetObject, which when accessed returns
a string representing the location in the code at which
Error.captureStackTrace() was called.
const myObject = {};Error.captureStackTrace(myObject);myObject.stack; // Similar to `new Error().stack`The first line of the trace will be prefixed with
${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames
above constructorOpt, including constructorOpt, will be omitted from the
generated stack trace.
The constructorOpt argument is useful for hiding implementation
details of error generation from the user. For instance:
function a() { b();}
function b() { c();}
function c() { // Create an error without stack trace to avoid calculating the stack trace twice. const { stackTraceLimit } = Error; Error.stackTraceLimit = 0; const error = new Error(); Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace throw error;}
a();Parameters
Section titled “Parameters”targetObject
Section titled “targetObject”object
constructorOpt?
Section titled “constructorOpt?”Function
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”BigshipError.captureStackTrace
prepareStackTrace()
Section titled “prepareStackTrace()”static prepareStackTrace(err: Error, stackTraces: CallSite[]): any;Defined in: node_modules/@types/node/globals.d.ts:56
Parameters
Section titled “Parameters”Error
stackTraces
Section titled “stackTraces”CallSite[]
Returns
Section titled “Returns”any
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
Section titled “Inherited from”BigshipError.prepareStackTrace
BigshipAuthError
Section titled “BigshipAuthError”Defined in: packages/sdk/src/errors/index.ts:147
Error thrown when authentication fails
Example
Section titled “Example”try { await client.addSingleOrder(orderData);} catch (error) { if (error instanceof BigshipAuthError) { console.error('Authentication failed - check credentials'); }}Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new BigshipAuthError(message?: string, options?: Omit<BigshipApiErrorOptions, "code" | "apiResponse">): BigshipAuthError;Defined in: packages/sdk/src/errors/index.ts:148
Parameters
Section titled “Parameters”message?
Section titled “message?”string = 'Authentication failed'
options?
Section titled “options?”Omit<BigshipApiErrorOptions, "code" | "apiResponse"> = {}
Returns
Section titled “Returns”Overrides
Section titled “Overrides”Properties
Section titled “Properties”| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
apiResponse? |
readonly |
BigshipErrorData |
- | BigshipApiError.apiResponse |
packages/sdk/src/errors/BigshipError.ts:33 |
cause? |
public |
unknown |
- | BigshipApiError.cause |
node_modules/typescript/lib/lib.es2022.error.d.ts:26 |
code? |
readonly |
string |
- | BigshipApiError.code |
packages/sdk/src/errors/BigshipError.ts:32 |
endpoint? |
readonly |
string |
- | BigshipApiError.endpoint |
packages/sdk/src/errors/index.ts:32 |
message |
public |
string |
- | BigshipApiError.message |
node_modules/typescript/lib/lib.es5.d.ts:1077 |
name |
public |
string |
- | BigshipApiError.name |
node_modules/typescript/lib/lib.es5.d.ts:1076 |
requestId? |
readonly |
string |
- | BigshipApiError.requestId |
packages/sdk/src/errors/index.ts:31 |
responseBody? |
readonly |
unknown |
- | BigshipApiError.responseBody |
packages/sdk/src/errors/index.ts:33 |
stack? |
public |
string |
- | BigshipApiError.stack |
node_modules/typescript/lib/lib.es5.d.ts:1078 |
statusCode |
readonly |
number |
- | BigshipApiError.statusCode |
packages/sdk/src/errors/BigshipError.ts:31 |
traceId? |
readonly |
string |
- | BigshipApiError.traceId |
packages/sdk/src/errors/BigshipError.ts:35 |
validationErrors? |
readonly |
Record<string, string[]> |
- | BigshipApiError.validationErrors |
packages/sdk/src/errors/BigshipError.ts:34 |
stackTraceLimit |
static |
number |
The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)). The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed. If set to a non-number value, or set to a negative number, stack traces will not capture any frames. |
BigshipApiError.stackTraceLimit |
node_modules/@types/node/globals.d.ts:68 |
Methods
Section titled “Methods”isAuthError()
Section titled “isAuthError()”isAuthError(): boolean;Defined in: packages/sdk/src/errors/BigshipError.ts:61
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”isRateLimitError()
Section titled “isRateLimitError()”isRateLimitError(): boolean;Defined in: packages/sdk/src/errors/BigshipError.ts:57
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”BigshipApiError.isRateLimitError
isValidationError()
Section titled “isValidationError()”isValidationError(): boolean;Defined in: packages/sdk/src/errors/BigshipError.ts:53
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”BigshipApiError.isValidationError
captureStackTrace()
Section titled “captureStackTrace()”static captureStackTrace(targetObject: object, constructorOpt?: Function): void;Defined in: node_modules/@types/node/globals.d.ts:52
Creates a .stack property on targetObject, which when accessed returns
a string representing the location in the code at which
Error.captureStackTrace() was called.
const myObject = {};Error.captureStackTrace(myObject);myObject.stack; // Similar to `new Error().stack`The first line of the trace will be prefixed with
${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames
above constructorOpt, including constructorOpt, will be omitted from the
generated stack trace.
The constructorOpt argument is useful for hiding implementation
details of error generation from the user. For instance:
function a() { b();}
function b() { c();}
function c() { // Create an error without stack trace to avoid calculating the stack trace twice. const { stackTraceLimit } = Error; Error.stackTraceLimit = 0; const error = new Error(); Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace throw error;}
a();Parameters
Section titled “Parameters”targetObject
Section titled “targetObject”object
constructorOpt?
Section titled “constructorOpt?”Function
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”BigshipApiError.captureStackTrace
prepareStackTrace()
Section titled “prepareStackTrace()”static prepareStackTrace(err: Error, stackTraces: CallSite[]): any;Defined in: node_modules/@types/node/globals.d.ts:56
Parameters
Section titled “Parameters”Error
stackTraces
Section titled “stackTraces”CallSite[]
Returns
Section titled “Returns”any
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
Section titled “Inherited from”BigshipApiError.prepareStackTrace
BigshipClient
Section titled “BigshipClient”Defined in: packages/sdk/src/core/BigshipClient.ts:99
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new BigshipClient(config: BigshipConfig & { loggerAdapter?: LoggerAdapter;}): BigshipClient;Defined in: packages/sdk/src/core/BigshipClient.ts:107
Parameters
Section titled “Parameters”config
Section titled “config”BigshipConfig & {
loggerAdapter?: LoggerAdapter;
}
Returns
Section titled “Returns”Methods
Section titled “Methods”calculateRate()
Section titled “calculateRate()”calculateRate(payload: { boxes: { box_dead_weight: number; box_height: number; box_length: number; box_width: number; no_of_box: number; }[]; codAmount?: string; destPincode: string; invoiceValue: number; paymentModeId: number; riskTypeId: number; segment_type: "domestic_b2b" | "domestic_b2c"; sourcePincode: string;}, options?: RequestOptions): Promise<{ data: | { codCharges: number; courier_partner_id: number; courierCharge: number; courierImage: string | null; courierName: string; courierType: string; emailNotificationCharge: number; greenTax: number; handlingCharge: string; lrCost: string | number; minimum_weight: string; oda: string; pickup_Charge: number; planName: string; restricted_pincode_message: string | null; riskType: string; riskTypeName: string; smsNotificationCharge: number; state_Tax: string; tat: string; toPay: number; totalCharge: number; warai_Charge: number; weight: string | number; whatsappNotificationCharge: number; zone: string; }[] | null; message: string; status: boolean; status_code: number;}>;Defined in: packages/sdk/src/core/BigshipClient.ts:367
Calculate shipping rates without creating an order.
Parameters
Section titled “Parameters”payload
Section titled “payload”{
box_dead_weight: number;
box_height: number;
box_length: number;
box_width: number;
no_of_box: number;
}[] = ...
codAmount?
Section titled “codAmount?”string = ...
destPincode
Section titled “destPincode”string = ...
invoiceValue
Section titled “invoiceValue”number = ...
paymentModeId
Section titled “paymentModeId”number = ...
riskTypeId
Section titled “riskTypeId”number = ...
segment_type
Section titled “segment_type”"domestic_b2b" | "domestic_b2c" = ...
sourcePincode
Section titled “sourcePincode”string = ...
options?
Section titled “options?”Returns
Section titled “Returns”Promise<{
data: | {
codCharges: number;
courier_partner_id: number;
courierCharge: number;
courierImage: string | null;
courierName: string;
courierType: string;
emailNotificationCharge: number;
greenTax: number;
handlingCharge: string;
lrCost: string | number;
minimum_weight: string;
oda: string;
pickup_Charge: number;
planName: string;
restricted_pincode_message: string | null;
riskType: string;
riskTypeName: string;
smsNotificationCharge: number;
state_Tax: string;
tat: string;
toPay: number;
totalCharge: number;
warai_Charge: number;
weight: string | number;
whatsappNotificationCharge: number;
zone: string;
}[]
| null;
message: string;
status: boolean;
status_code: number;
}>
Throws
Section titled “Throws”When request validation fails
Throws
Section titled “Throws”When API request fails
cancelOrder()
Section titled “cancelOrder()”cancelOrder(orderId: string, options?: RequestOptions): Promise<{ data: unknown[] | null; message: string; status: boolean; status_code: number;}>;Defined in: packages/sdk/src/core/BigshipClient.ts:422
Cancel an order by its CustomGlobalOrderId.
Parameters
Section titled “Parameters”orderId
Section titled “orderId”string
The CustomGlobalOrderId of the order to cancel
options?
Section titled “options?”Returns
Section titled “Returns”Promise<{
data: unknown[] | null;
message: string;
status: boolean;
status_code: number;
}>
Throws
Section titled “Throws”When request validation fails
Throws
Section titled “Throws”When API request fails
createOrder()
Section titled “createOrder()”createOrder(payload: | { additional_comments?: string; boxes: { dimension_unit: "cm"; dimensions: { breadth?: number; height?: number; length?: number; weight: number; }[]; weight_unit: "kg"; }; MasterOrderInvoiceAmount: number; MasterOrderPaymentMode: number; MasterOrderPickUpLocation: number; MasterOrderShippingAddress: string; MasterOrderShippingAddress2?: string; MasterOrderShippingCity: string; MasterOrderShippingCountry: string; MasterOrderShippingEmail?: string; MasterOrderShippingLandmark?: string; MasterOrderShippingLatitude: string; MasterOrderShippingLongitude: string; MasterOrderShippingMobileNo: string | number; MasterOrderShippingName: string; MasterOrderShippingState: string; MasterOrderShippingZipCode: string; OrderInvoiceNo?: string; PackageTypeId: number; pickup_instructions?: string; segment_type: "hyperlocal";} | { boxes: { dimension_unit: "cm"; dimensions: { breadth: number; height: number; length: number; weight: number; }[]; noOfBoxes: number; weight_unit: "kg"; }[]; MasterOrderCollectableAmount?: string; MasterOrderDate: string; MasterOrderInvoiceAmount: number; MasterOrderPaymentMode: number; MasterOrderPickUpLocation: number; MasterOrderReturnLocation: number; MasterOrderShippingAddress: string; MasterOrderShippingAddress2?: string; MasterOrderShippingCity: string; MasterOrderShippingCountry: string; MasterOrderShippingEmail?: string; MasterOrderShippingLandmark?: string; MasterOrderShippingMobileNo: string | number; MasterOrderShippingName: string; MasterOrderShippingState: string; MasterOrderShippingZipCode: string; OrderInvoiceNo: string; ProductName: string; segment_type: "domestic_b2b"; totalNumOfBoxes: number;} | { boxes: { dimension_unit: "cm"; dimensions: { breadth: number; height: number; length: number; weight: number; }[]; noOfBoxes: number; products: { amount: string | number; categoryId: string; collectableAmount: string | number; hsn?: string; productName: string; qty: string | number; totalAmount: string | number; }[]; weight_unit: "kg"; }[]; MasterOrderDate: string; MasterOrderInvoiceAmount: number; MasterOrderPaymentMode: number; MasterOrderPickUpLocation: number; MasterOrderReturnLocation: number; MasterOrderShippingAddress: string; MasterOrderShippingAddress2?: string; MasterOrderShippingCity: string; MasterOrderShippingCountry: string; MasterOrderShippingEmail?: string; MasterOrderShippingLandmark?: string; MasterOrderShippingMobileNo: string | number; MasterOrderShippingName: string; MasterOrderShippingState: string; MasterOrderShippingZipCode: string; OrderInvoiceNo: string; segment_type: "domestic_b2c"; totalNumOfBoxes: number;}, options?: RequestOptions): Promise<{ data: | { CustomGlobalOrderId: string; } | null; message: string; status: boolean; status_code: number;}>;Defined in: packages/sdk/src/core/BigshipClient.ts:382
Create a new order in draft mode. Supports hyperlocal, domestic_b2b, and domestic_b2c segment types.
Parameters
Section titled “Parameters”payload
Section titled “payload”| {
additional_comments?: string;
boxes: {
dimension_unit: "cm";
dimensions: {
breadth?: number;
height?: number;
length?: number;
weight: number;
}[];
weight_unit: "kg";
};
MasterOrderInvoiceAmount: number;
MasterOrderPaymentMode: number;
MasterOrderPickUpLocation: number;
MasterOrderShippingAddress: string;
MasterOrderShippingAddress2?: string;
MasterOrderShippingCity: string;
MasterOrderShippingCountry: string;
MasterOrderShippingEmail?: string;
MasterOrderShippingLandmark?: string;
MasterOrderShippingLatitude: string;
MasterOrderShippingLongitude: string;
MasterOrderShippingMobileNo: string | number;
MasterOrderShippingName: string;
MasterOrderShippingState: string;
MasterOrderShippingZipCode: string;
OrderInvoiceNo?: string;
PackageTypeId: number;
pickup_instructions?: string;
segment_type: "hyperlocal";
}
| {
boxes: {
dimension_unit: "cm";
dimensions: {
breadth: number;
height: number;
length: number;
weight: number;
}[];
noOfBoxes: number;
weight_unit: "kg";
}[];
MasterOrderCollectableAmount?: string;
MasterOrderDate: string;
MasterOrderInvoiceAmount: number;
MasterOrderPaymentMode: number;
MasterOrderPickUpLocation: number;
MasterOrderReturnLocation: number;
MasterOrderShippingAddress: string;
MasterOrderShippingAddress2?: string;
MasterOrderShippingCity: string;
MasterOrderShippingCountry: string;
MasterOrderShippingEmail?: string;
MasterOrderShippingLandmark?: string;
MasterOrderShippingMobileNo: string | number;
MasterOrderShippingName: string;
MasterOrderShippingState: string;
MasterOrderShippingZipCode: string;
OrderInvoiceNo: string;
ProductName: string;
segment_type: "domestic_b2b";
totalNumOfBoxes: number;
}
| {
boxes: {
dimension_unit: "cm";
dimensions: {
breadth: number;
height: number;
length: number;
weight: number;
}[];
noOfBoxes: number;
products: {
amount: string | number;
categoryId: string;
collectableAmount: string | number;
hsn?: string;
productName: string;
qty: string | number;
totalAmount: string | number;
}[];
weight_unit: "kg";
}[];
MasterOrderDate: string;
MasterOrderInvoiceAmount: number;
MasterOrderPaymentMode: number;
MasterOrderPickUpLocation: number;
MasterOrderReturnLocation: number;
MasterOrderShippingAddress: string;
MasterOrderShippingAddress2?: string;
MasterOrderShippingCity: string;
MasterOrderShippingCountry: string;
MasterOrderShippingEmail?: string;
MasterOrderShippingLandmark?: string;
MasterOrderShippingMobileNo: string | number;
MasterOrderShippingName: string;
MasterOrderShippingState: string;
MasterOrderShippingZipCode: string;
OrderInvoiceNo: string;
segment_type: "domestic_b2c";
totalNumOfBoxes: number;
}
options?
Section titled “options?”Returns
Section titled “Returns”Promise<{
data: | {
CustomGlobalOrderId: string;
}
| null;
message: string;
status: boolean;
status_code: number;
}>
Throws
Section titled “Throws”When request validation fails
Throws
Section titled “Throws”When API request fails
downloadDocument()
Section titled “downloadDocument()”downloadDocument( orderId: string, documentType: "invoice" | "label" | "ewaybill" | "manifest", options?: RequestOptions): Promise<{ data: | { AttachmentData: string; File_extention: string; } | null; message: string; status: boolean; status_code: number;}>;Defined in: packages/sdk/src/core/BigshipClient.ts:464
Download a shipment document (invoice, label, ewaybill, or manifest).
Parameters
Section titled “Parameters”orderId
Section titled “orderId”string
The CustomGlobalOrderId of the order
documentType
Section titled “documentType”"invoice" | "label" | "ewaybill" | "manifest"
The type of document to download
options?
Section titled “options?”Returns
Section titled “Returns”Promise<{
data: | {
AttachmentData: string;
File_extention: string;
}
| null;
message: string;
status: boolean;
status_code: number;
}>
Throws
Section titled “Throws”When request validation fails
Throws
Section titled “Throws”When API request fails
getOrderDetail()
Section titled “getOrderDetail()”getOrderDetail(orderId: string, options?: RequestOptions): Promise<{ data: | { getOrderDetails: { AwbNumber: string; box_dimensions: { breadth: string; each_box_weight: string; height: string; length: string; no_of_box: string; }[]; collectableAmount: string; consignee: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consigneeBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consigneeBilling: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consigneeBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consignor: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consignorBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consignorType: string; created_at: string; dimensions: string[]; InvoiceCurrency: string; InvoiceNumber: string; InvoiceStatus: string; InvoiceStatusId: string; MasterCustomInvoiceId: string | null; MasterCustomOrderId: string; MasterOrderCurrency: string; MasterOrderShippingZipCode: string; orderDate: string; PackageTypeId: string; PackageTypeName: string; PaymentMode: string; pickupDetail: { warehouseAddressLandMark: string; warehouseAddressLine1: string; warehouseAddressLine2: string; warehouseAddressPhone: string; warehouseCity: string; warehouseContactPerson: string; warehouseCountry: string; warehouseName: string; warehousePin: string; warehouseState: string; }; product_details: { box_details: { parameterCategory: string; parameterName: string; parameterValue: string; }[]; detailsIdentifier: string; numberOfProducts: string; products: unknown[]; weight: { unit: string; value: string; }; }[]; products_name: string; status: string; status_id: string; totalInvoiceAmount: string; totalNoOfBoxes: number | null; updated_at: string; weight: string; weightUnit: string; }; segment_type: string; } | null; message: string; status: boolean; status_code: number;}>;Defined in: packages/sdk/src/core/BigshipClient.ts:450
Get detailed information about an order.
Parameters
Section titled “Parameters”orderId
Section titled “orderId”string
The MasterCustomOrderId of the order
options?
Section titled “options?”Returns
Section titled “Returns”Promise<{
data: | {
getOrderDetails: {
AwbNumber: string;
box_dimensions: {
breadth: string;
each_box_weight: string;
height: string;
length: string;
no_of_box: string;
}[];
collectableAmount: string;
consignee: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consigneeBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consigneeBilling: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consigneeBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consignor: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consignorBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consignorType: string;
created_at: string;
dimensions: string[];
InvoiceCurrency: string;
InvoiceNumber: string;
InvoiceStatus: string;
InvoiceStatusId: string;
MasterCustomInvoiceId: string | null;
MasterCustomOrderId: string;
MasterOrderCurrency: string;
MasterOrderShippingZipCode: string;
orderDate: string;
PackageTypeId: string;
PackageTypeName: string;
PaymentMode: string;
pickupDetail: {
warehouseAddressLandMark: string;
warehouseAddressLine1: string;
warehouseAddressLine2: string;
warehouseAddressPhone: string;
warehouseCity: string;
warehouseContactPerson: string;
warehouseCountry: string;
warehouseName: string;
warehousePin: string;
warehouseState: string;
};
product_details: {
box_details: {
parameterCategory: string;
parameterName: string;
parameterValue: string;
}[];
detailsIdentifier: string;
numberOfProducts: string;
products: unknown[];
weight: {
unit: string;
value: string;
};
}[];
products_name: string;
status: string;
status_id: string;
totalInvoiceAmount: string;
totalNoOfBoxes: number | null;
updated_at: string;
weight: string;
weightUnit: string;
};
segment_type: string;
}
| null;
message: string;
status: boolean;
status_code: number;
}>
Throws
Section titled “Throws”When request validation fails
Throws
Section titled “Throws”When API request fails
getPackageTypes()
Section titled “getPackageTypes()”getPackageTypes(options?: RequestOptions): Promise<{ data: | { Description: string; HyperlocalPackageTypeId: number; IsEnabled: string; PackageType: string; }[] | null; message: string; status: boolean; status_code: number;}>;Defined in: packages/sdk/src/core/BigshipClient.ts:333
Get the list of package types for hyperlocal shipments.
Parameters
Section titled “Parameters”options?
Section titled “options?”Returns
Section titled “Returns”Promise<{
data: | {
Description: string;
HyperlocalPackageTypeId: number;
IsEnabled: string;
PackageType: string;
}[]
| null;
message: string;
status: boolean;
status_code: number;
}>
Throws
Section titled “Throws”When API request fails
getPaymentModes()
Section titled “getPaymentModes()”getPaymentModes(segmentType: "hyperlocal" | "domestic_b2b" | "domestic_b2c", options?: RequestOptions): Promise<{ data: | { paymentModeId: string; paymentModeName: string; }[] | null; message: string; status: boolean; status_code: number;}>;Defined in: packages/sdk/src/core/BigshipClient.ts:344
Get the list of payment modes for a segment type.
Parameters
Section titled “Parameters”segmentType
Section titled “segmentType”"hyperlocal" | "domestic_b2b" | "domestic_b2c"
The shipment segment type: ‘hyperlocal’, ‘domestic_b2c’, or ‘domestic_b2b’
options?
Section titled “options?”Returns
Section titled “Returns”Promise<{
data: | {
paymentModeId: string;
paymentModeName: string;
}[]
| null;
message: string;
status: boolean;
status_code: number;
}>
Throws
Section titled “Throws”When API request fails
getProfile()
Section titled “getProfile()”getProfile(options?: RequestOptions): Promise<{ data: | { api_master_client_account: { access_key: string; access_key_generated_date: string; created_date: string; is_account_enabled: string; updated_date: string; }; countryname: string; EmailID: string; firstName: string; is_outbound_service_enabled: string; IsEmailVerifed: string; lastName: string; mobileNumber: string; userWallet: { Balance: string | number; kycCurrency: string; }; } | null; message: string; status: boolean; status_code: number;}>;Defined in: packages/sdk/src/core/BigshipClient.ts:279
Get the authenticated user’s profile information.
Parameters
Section titled “Parameters”options?
Section titled “options?”Returns
Section titled “Returns”Promise<{
data: | {
api_master_client_account: {
access_key: string;
access_key_generated_date: string;
created_date: string;
is_account_enabled: string;
updated_date: string;
};
countryname: string;
EmailID: string;
firstName: string;
is_outbound_service_enabled: string;
IsEmailVerifed: string;
lastName: string;
mobileNumber: string;
userWallet: {
Balance: string | number;
kycCurrency: string;
};
}
| null;
message: string;
status: boolean;
status_code: number;
}>
Throws
Section titled “Throws”When API request fails
getRiskTypes()
Section titled “getRiskTypes()”getRiskTypes(options?: RequestOptions): Promise<{ data: | { riskName: string; riskTypeId: number; slug: string; }[] | null; message: string; status: boolean; status_code: number;}>;Defined in: packages/sdk/src/core/BigshipClient.ts:354
Get the list of risk types (insurance options).
Parameters
Section titled “Parameters”options?
Section titled “options?”Returns
Section titled “Returns”Promise<{
data: | {
riskName: string;
riskTypeId: number;
slug: string;
}[]
| null;
message: string;
status: boolean;
status_code: number;
}>
Throws
Section titled “Throws”When API request fails
getServiceableCouriers()
Section titled “getServiceableCouriers()”getServiceableCouriers(orderId: string, options?: RequestOptions): Promise<{ data: | { calculatedRates: ( | { base_freight: number; capacity: string; courierId: number; courierImage: string; courierName: string; currency: string; gst_amount: number; planName: string; total_freight: number; vehicle_type: string; } | { base_freight: number; charged_weight: number; codCharges: number; courierId: string; courierImage: string | null; courierName: string; courierType: string; destination: string; emailNotificationCharge: number; greenTax: string; handlingCharge: string; kycCurrency: string; lrCost: string; oda: string; pickup: string; pickup_Charge: string; planName: string; riskCharge: string; riskCharges: { chargeValue: string; isRisk: boolean; name: string; typeId: number; }[]; riskTypeName: string; smsNotificationCharge: number; state_Tax: string | number; tat: number; toPay: string; total: string; warai_Charge: number; weight_unit: string; whatsappNotificationCharge: number; zone: string; })[]; segment_type: string; } | null; message: string; status: boolean; status_code: number;}>;Defined in: packages/sdk/src/core/BigshipClient.ts:396
Get serviceable couriers and rate quotations for a draft order. Must be called after createOrder() and before placeOrder().
Parameters
Section titled “Parameters”orderId
Section titled “orderId”string
The CustomGlobalOrderId returned from createOrder()
options?
Section titled “options?”Returns
Section titled “Returns”Promise<{
data: | {
calculatedRates: (
| {
base_freight: number;
capacity: string;
courierId: number;
courierImage: string;
courierName: string;
currency: string;
gst_amount: number;
planName: string;
total_freight: number;
vehicle_type: string;
}
| {
base_freight: number;
charged_weight: number;
codCharges: number;
courierId: string;
courierImage: string | null;
courierName: string;
courierType: string;
destination: string;
emailNotificationCharge: number;
greenTax: string;
handlingCharge: string;
kycCurrency: string;
lrCost: string;
oda: string;
pickup: string;
pickup_Charge: string;
planName: string;
riskCharge: string;
riskCharges: {
chargeValue: string;
isRisk: boolean;
name: string;
typeId: number;
}[];
riskTypeName: string;
smsNotificationCharge: number;
state_Tax: string | number;
tat: number;
toPay: string;
total: string;
warai_Charge: number;
weight_unit: string;
whatsappNotificationCharge: number;
zone: string;
})[];
segment_type: string;
}
| null;
message: string;
status: boolean;
status_code: number;
}>
Throws
Section titled “Throws”When request validation fails
Throws
Section titled “Throws”When API request fails
getWarehouseList()
Section titled “getWarehouseList()”getWarehouseList(params: { filter_type?: | "warehouse_name" | "warehouse_phone" | "warehouse_pin" | "warehouse_contact_person"; filter_value?: string; page: string; perPage: string; segment_type: "hyperlocal" | "local"; status?: string;}, options?: RequestOptions): Promise<WarehouseListResponse>;Defined in: packages/sdk/src/core/BigshipClient.ts:303
Get a list of warehouses with optional filtering.
Parameters
Section titled “Parameters”params
Section titled “params”filter_type?
Section titled “filter_type?”| "warehouse_name"
| "warehouse_phone"
| "warehouse_pin"
| "warehouse_contact_person" = ...
filter_value?
Section titled “filter_value?”string = ...
string = ...
perPage
Section titled “perPage”string = ...
segment_type
Section titled “segment_type”"hyperlocal" | "local" = ...
status?
Section titled “status?”string = ...
options?
Section titled “options?”Returns
Section titled “Returns”Promise<WarehouseListResponse>
Throws
Section titled “Throws”When API request fails
placeOrder()
Section titled “placeOrder()”placeOrder(payload: { courierId: number; invoiceType?: string; MasterCustomOrderId: string; riskTypeId?: string;}, options?: RequestOptions): Promise<{ data: | { awb_assigned: string | number | null; reference_number: string | number; } | null; message: string; status: boolean; status_code: number;}>;Defined in: packages/sdk/src/core/BigshipClient.ts:409
Place/manifest an order with a selected courier. Must be called after getServiceableCouriers().
Parameters
Section titled “Parameters”payload
Section titled “payload”courierId
Section titled “courierId”number = ...
invoiceType?
Section titled “invoiceType?”string = ...
MasterCustomOrderId
Section titled “MasterCustomOrderId”string = ...
riskTypeId?
Section titled “riskTypeId?”string = ...
options?
Section titled “options?”Returns
Section titled “Returns”Promise<{
data: | {
awb_assigned: string | number | null;
reference_number: string | number;
}
| null;
message: string;
status: boolean;
status_code: number;
}>
Throws
Section titled “Throws”When request validation fails
Throws
Section titled “Throws”When API request fails
saveWarehouse()
Section titled “saveWarehouse()”saveWarehouse(payload: { address_type?: "Home" | "Office" | "Shop" | "Factory" | "Hotel" | "Other"; latitude?: string; longitude?: string; segment_type: "hyperlocal" | "local"; warehouseAddressLandMark: string; warehouseAddressLine1: string; warehouseAddressLine2?: string; warehouseAddressPhone: string; warehouseCity: string; warehouseContactPerson: string; warehouseCountry: string; warehousePinCode: string; warehouseState: string;}, options?: RequestOptions): Promise<{ data: | { is_phone_verified: number; phone_number: string; warehouseId: number; } | null; message: string; status: boolean; status_code: number;}>;Defined in: packages/sdk/src/core/BigshipClient.ts:292
Save a new warehouse/pickup location.
Parameters
Section titled “Parameters”payload
Section titled “payload”address_type?
Section titled “address_type?”"Home" | "Office" | "Shop" | "Factory" | "Hotel" | "Other" = ...
latitude?
Section titled “latitude?”string = ...
longitude?
Section titled “longitude?”string = ...
segment_type
Section titled “segment_type”"hyperlocal" | "local" = ...
warehouseAddressLandMark
Section titled “warehouseAddressLandMark”string = ...
warehouseAddressLine1
Section titled “warehouseAddressLine1”string = ...
warehouseAddressLine2?
Section titled “warehouseAddressLine2?”string = ...
warehouseAddressPhone
Section titled “warehouseAddressPhone”string = ...
warehouseCity
Section titled “warehouseCity”string = ...
warehouseContactPerson
Section titled “warehouseContactPerson”string = ...
warehouseCountry
Section titled “warehouseCountry”string = ...
warehousePinCode
Section titled “warehousePinCode”string = ...
warehouseState
Section titled “warehouseState”string = ...
options?
Section titled “options?”Returns
Section titled “Returns”Promise<{
data: | {
is_phone_verified: number;
phone_number: string;
warehouseId: number;
}
| null;
message: string;
status: boolean;
status_code: number;
}>
Throws
Section titled “Throws”When request validation fails
Throws
Section titled “Throws”When API request fails
trackOrder()
Section titled “trackOrder()”trackOrder(orderId: string, options?: RequestOptions): Promise<{ data: | { courier_image: string; courier_name: string; CustomGlobalOrderId: string; drop_coordinate: { addressType: string; latitude: string; longitude: string; mapLocationId: string; }; latest_checkpoint_time: string; order_place_time: string; order_status: string; source_coordinate: { addressType: string; latitude: string; longitude: string; mapLocationId: string; }; tag: string; tracking_current_status: { fare_details: { amount: string; currency: string; }; location: { latitude: string | null; longitude: string | null; }; partner_details?: { contact: { primary: { country_code: string; number: string; }; secondary: { country_code: string; number: string; }; }; name: string; vehicle: { number: string | null; type: string; }; }; timestamps: { order: { accepted: string | null; ended: string | null; started: string | null; }; pickup: string | null; }; tracking_status: string; }; tracking_histories: { checkpoint_time: string; location: { latitude: string | null; longitude: string | null; }; message: string; order_status: string; tag: string; }[]; tracking_number: string; } | null; message: string; status: boolean; status_code: number;}>;Defined in: packages/sdk/src/core/BigshipClient.ts:437
Track an order by its CustomGlobalOrderId.
Parameters
Section titled “Parameters”orderId
Section titled “orderId”string
The CustomGlobalOrderId of the order to track
options?
Section titled “options?”Returns
Section titled “Returns”Promise<{
data: | {
courier_image: string;
courier_name: string;
CustomGlobalOrderId: string;
drop_coordinate: {
addressType: string;
latitude: string;
longitude: string;
mapLocationId: string;
};
latest_checkpoint_time: string;
order_place_time: string;
order_status: string;
source_coordinate: {
addressType: string;
latitude: string;
longitude: string;
mapLocationId: string;
};
tag: string;
tracking_current_status: {
fare_details: {
amount: string;
currency: string;
};
location: {
latitude: string | null;
longitude: string | null;
};
partner_details?: {
contact: {
primary: {
country_code: string;
number: string;
};
secondary: {
country_code: string;
number: string;
};
};
name: string;
vehicle: {
number: string | null;
type: string;
};
};
timestamps: {
order: {
accepted: string | null;
ended: string | null;
started: string | null;
};
pickup: string | null;
};
tracking_status: string;
};
tracking_histories: {
checkpoint_time: string;
location: {
latitude: string | null;
longitude: string | null;
};
message: string;
order_status: string;
tag: string;
}[];
tracking_number: string;
}
| null;
message: string;
status: boolean;
status_code: number;
}>
Throws
Section titled “Throws”When request validation fails
Throws
Section titled “Throws”When API request fails
updateWarehouse()
Section titled “updateWarehouse()”updateWarehouse(payload: { address_type?: "Home" | "Office" | "Shop" | "Factory" | "Hotel" | "Other"; latitude?: string; longitude?: string; warehouseAddressLandMark: string; warehouseAddressLine1: string; warehouseAddressLine2?: string; warehouseAddressPhone: string; warehouseCity: string; warehouseContactPerson: string; warehouseCountry: string; warehouseId: string; warehouseName: string; warehousePinCode: string; warehouseState: string;}, options?: RequestOptions): Promise<{ data: | { is_phone_verified: number; phone_number: string; } | null; message: string; status: boolean; status_code: number;}>;Defined in: packages/sdk/src/core/BigshipClient.ts:320
Update an existing warehouse/pickup location.
Parameters
Section titled “Parameters”payload
Section titled “payload”address_type?
Section titled “address_type?”"Home" | "Office" | "Shop" | "Factory" | "Hotel" | "Other" = ...
latitude?
Section titled “latitude?”string = ...
longitude?
Section titled “longitude?”string = ...
warehouseAddressLandMark
Section titled “warehouseAddressLandMark”string = ...
warehouseAddressLine1
Section titled “warehouseAddressLine1”string = ...
warehouseAddressLine2?
Section titled “warehouseAddressLine2?”string = ...
warehouseAddressPhone
Section titled “warehouseAddressPhone”string = ...
warehouseCity
Section titled “warehouseCity”string = ...
warehouseContactPerson
Section titled “warehouseContactPerson”string = ...
warehouseCountry
Section titled “warehouseCountry”string = ...
warehouseId
Section titled “warehouseId”string = ...
warehouseName
Section titled “warehouseName”string = ...
warehousePinCode
Section titled “warehousePinCode”string = ...
warehouseState
Section titled “warehouseState”string = ...
options?
Section titled “options?”Returns
Section titled “Returns”Promise<{
data: | {
is_phone_verified: number;
phone_number: string;
}
| null;
message: string;
status: boolean;
status_code: number;
}>
Throws
Section titled “Throws”When request validation fails
Throws
Section titled “Throws”When API request fails
BigshipDuplicateInvoiceError
Section titled “BigshipDuplicateInvoiceError”Defined in: packages/sdk/src/errors/index.ts:69
Error thrown when a duplicate invoice ID is detected
Example
Section titled “Example”try { await client.addSingleOrder(orderData);} catch (error) { if (error instanceof BigshipDuplicateInvoiceError) { console.log('Duplicate invoice ID:', error.invoiceId); console.log('Please use a different invoice number'); }}Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new BigshipDuplicateInvoiceError(invoiceId: string, options?: Omit<BigshipApiErrorOptions, "code">): BigshipDuplicateInvoiceError;Defined in: packages/sdk/src/errors/index.ts:72
Parameters
Section titled “Parameters”invoiceId
Section titled “invoiceId”string
options?
Section titled “options?”Omit<BigshipApiErrorOptions, "code"> = {}
Returns
Section titled “Returns”Overrides
Section titled “Overrides”Properties
Section titled “Properties”| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
apiResponse? |
readonly |
BigshipErrorData |
- | BigshipApiError.apiResponse |
packages/sdk/src/errors/BigshipError.ts:33 |
cause? |
public |
unknown |
- | BigshipApiError.cause |
node_modules/typescript/lib/lib.es2022.error.d.ts:26 |
code? |
readonly |
string |
- | BigshipApiError.code |
packages/sdk/src/errors/BigshipError.ts:32 |
endpoint? |
readonly |
string |
- | BigshipApiError.endpoint |
packages/sdk/src/errors/index.ts:32 |
invoiceId |
readonly |
string |
- | - | packages/sdk/src/errors/index.ts:70 |
message |
public |
string |
- | BigshipApiError.message |
node_modules/typescript/lib/lib.es5.d.ts:1077 |
name |
public |
string |
- | BigshipApiError.name |
node_modules/typescript/lib/lib.es5.d.ts:1076 |
requestId? |
readonly |
string |
- | BigshipApiError.requestId |
packages/sdk/src/errors/index.ts:31 |
responseBody? |
readonly |
unknown |
- | BigshipApiError.responseBody |
packages/sdk/src/errors/index.ts:33 |
stack? |
public |
string |
- | BigshipApiError.stack |
node_modules/typescript/lib/lib.es5.d.ts:1078 |
statusCode |
readonly |
number |
- | BigshipApiError.statusCode |
packages/sdk/src/errors/BigshipError.ts:31 |
traceId? |
readonly |
string |
- | BigshipApiError.traceId |
packages/sdk/src/errors/BigshipError.ts:35 |
validationErrors? |
readonly |
Record<string, string[]> |
- | BigshipApiError.validationErrors |
packages/sdk/src/errors/BigshipError.ts:34 |
stackTraceLimit |
static |
number |
The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)). The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed. If set to a non-number value, or set to a negative number, stack traces will not capture any frames. |
BigshipApiError.stackTraceLimit |
node_modules/@types/node/globals.d.ts:68 |
Methods
Section titled “Methods”isAuthError()
Section titled “isAuthError()”isAuthError(): boolean;Defined in: packages/sdk/src/errors/BigshipError.ts:61
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”isRateLimitError()
Section titled “isRateLimitError()”isRateLimitError(): boolean;Defined in: packages/sdk/src/errors/BigshipError.ts:57
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”BigshipApiError.isRateLimitError
isValidationError()
Section titled “isValidationError()”isValidationError(): boolean;Defined in: packages/sdk/src/errors/BigshipError.ts:53
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”BigshipApiError.isValidationError
captureStackTrace()
Section titled “captureStackTrace()”static captureStackTrace(targetObject: object, constructorOpt?: Function): void;Defined in: node_modules/@types/node/globals.d.ts:52
Creates a .stack property on targetObject, which when accessed returns
a string representing the location in the code at which
Error.captureStackTrace() was called.
const myObject = {};Error.captureStackTrace(myObject);myObject.stack; // Similar to `new Error().stack`The first line of the trace will be prefixed with
${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames
above constructorOpt, including constructorOpt, will be omitted from the
generated stack trace.
The constructorOpt argument is useful for hiding implementation
details of error generation from the user. For instance:
function a() { b();}
function b() { c();}
function c() { // Create an error without stack trace to avoid calculating the stack trace twice. const { stackTraceLimit } = Error; Error.stackTraceLimit = 0; const error = new Error(); Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace throw error;}
a();Parameters
Section titled “Parameters”targetObject
Section titled “targetObject”object
constructorOpt?
Section titled “constructorOpt?”Function
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”BigshipApiError.captureStackTrace
prepareStackTrace()
Section titled “prepareStackTrace()”static prepareStackTrace(err: Error, stackTraces: CallSite[]): any;Defined in: node_modules/@types/node/globals.d.ts:56
Parameters
Section titled “Parameters”Error
stackTraces
Section titled “stackTraces”CallSite[]
Returns
Section titled “Returns”any
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
Section titled “Inherited from”BigshipApiError.prepareStackTrace
BigshipError
Section titled “BigshipError”Defined in: packages/sdk/src/errors/BigshipError.ts:30
Custom error class for Bigship API errors Provides structured access to error details and helper methods for error type checking
Example
Section titled “Example”try { await client.addSingleOrder(orderData);} catch (error) { if (error instanceof BigshipError) { if (error.isValidationError()) { console.error('Validation failed:', error.validationErrors); } if (error.isRateLimitError()) { console.error('Rate limited, retry after 60s'); } console.error('Status:', error.statusCode); console.error('Trace ID:', error.traceId); }}Extends
Section titled “Extends”Error
Extended by
Section titled “Extended by”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new BigshipError( message: string, statusCode?: number, code?: string, apiResponse?: BigshipErrorData, options?: { cause?: Error;}): BigshipError;Defined in: packages/sdk/src/errors/BigshipError.ts:37
Parameters
Section titled “Parameters”message
Section titled “message”string
statusCode?
Section titled “statusCode?”number
string
apiResponse?
Section titled “apiResponse?”options?
Section titled “options?”cause?
Section titled “cause?”Error
Returns
Section titled “Returns”Overrides
Section titled “Overrides”Error.constructorProperties
Section titled “Properties”| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
apiResponse? |
readonly |
BigshipErrorData |
- | - | packages/sdk/src/errors/BigshipError.ts:33 |
cause? |
public |
unknown |
- | Error.cause |
node_modules/typescript/lib/lib.es2022.error.d.ts:26 |
code? |
readonly |
string |
- | - | packages/sdk/src/errors/BigshipError.ts:32 |
message |
public |
string |
- | Error.message |
node_modules/typescript/lib/lib.es5.d.ts:1077 |
name |
public |
string |
- | Error.name |
node_modules/typescript/lib/lib.es5.d.ts:1076 |
stack? |
public |
string |
- | Error.stack |
node_modules/typescript/lib/lib.es5.d.ts:1078 |
statusCode |
readonly |
number |
- | - | packages/sdk/src/errors/BigshipError.ts:31 |
traceId? |
readonly |
string |
- | - | packages/sdk/src/errors/BigshipError.ts:35 |
validationErrors? |
readonly |
Record<string, string[]> |
- | - | packages/sdk/src/errors/BigshipError.ts:34 |
stackTraceLimit |
static |
number |
The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)). The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed. If set to a non-number value, or set to a negative number, stack traces will not capture any frames. |
Error.stackTraceLimit |
node_modules/@types/node/globals.d.ts:68 |
Methods
Section titled “Methods”isAuthError()
Section titled “isAuthError()”isAuthError(): boolean;Defined in: packages/sdk/src/errors/BigshipError.ts:61
Returns
Section titled “Returns”boolean
isRateLimitError()
Section titled “isRateLimitError()”isRateLimitError(): boolean;Defined in: packages/sdk/src/errors/BigshipError.ts:57
Returns
Section titled “Returns”boolean
isValidationError()
Section titled “isValidationError()”isValidationError(): boolean;Defined in: packages/sdk/src/errors/BigshipError.ts:53
Returns
Section titled “Returns”boolean
captureStackTrace()
Section titled “captureStackTrace()”static captureStackTrace(targetObject: object, constructorOpt?: Function): void;Defined in: node_modules/@types/node/globals.d.ts:52
Creates a .stack property on targetObject, which when accessed returns
a string representing the location in the code at which
Error.captureStackTrace() was called.
const myObject = {};Error.captureStackTrace(myObject);myObject.stack; // Similar to `new Error().stack`The first line of the trace will be prefixed with
${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames
above constructorOpt, including constructorOpt, will be omitted from the
generated stack trace.
The constructorOpt argument is useful for hiding implementation
details of error generation from the user. For instance:
function a() { b();}
function b() { c();}
function c() { // Create an error without stack trace to avoid calculating the stack trace twice. const { stackTraceLimit } = Error; Error.stackTraceLimit = 0; const error = new Error(); Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace throw error;}
a();Parameters
Section titled “Parameters”targetObject
Section titled “targetObject”object
constructorOpt?
Section titled “constructorOpt?”Function
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Error.captureStackTraceprepareStackTrace()
Section titled “prepareStackTrace()”static prepareStackTrace(err: Error, stackTraces: CallSite[]): any;Defined in: node_modules/@types/node/globals.d.ts:56
Parameters
Section titled “Parameters”Error
stackTraces
Section titled “stackTraces”CallSite[]
Returns
Section titled “Returns”any
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
Section titled “Inherited from”Error.prepareStackTraceBigshipNetworkError
Section titled “BigshipNetworkError”Defined in: packages/sdk/src/errors/index.ts:169
Error thrown when network request fails
Uses statusCode -1 since this is not an HTTP error.
Check error instanceof BigshipNetworkError rather than comparing statusCode.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new BigshipNetworkError(message: string, options?: Omit<BigshipApiErrorOptions, "code">): BigshipNetworkError;Defined in: packages/sdk/src/errors/index.ts:170
Parameters
Section titled “Parameters”message
Section titled “message”string
options?
Section titled “options?”Omit<BigshipApiErrorOptions, "code"> = {}
Returns
Section titled “Returns”Overrides
Section titled “Overrides”Properties
Section titled “Properties”| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
apiResponse? |
readonly |
BigshipErrorData |
- | BigshipApiError.apiResponse |
packages/sdk/src/errors/BigshipError.ts:33 |
cause? |
public |
unknown |
- | BigshipApiError.cause |
node_modules/typescript/lib/lib.es2022.error.d.ts:26 |
code? |
readonly |
string |
- | BigshipApiError.code |
packages/sdk/src/errors/BigshipError.ts:32 |
endpoint? |
readonly |
string |
- | BigshipApiError.endpoint |
packages/sdk/src/errors/index.ts:32 |
message |
public |
string |
- | BigshipApiError.message |
node_modules/typescript/lib/lib.es5.d.ts:1077 |
name |
public |
string |
- | BigshipApiError.name |
node_modules/typescript/lib/lib.es5.d.ts:1076 |
requestId? |
readonly |
string |
- | BigshipApiError.requestId |
packages/sdk/src/errors/index.ts:31 |
responseBody? |
readonly |
unknown |
- | BigshipApiError.responseBody |
packages/sdk/src/errors/index.ts:33 |
stack? |
public |
string |
- | BigshipApiError.stack |
node_modules/typescript/lib/lib.es5.d.ts:1078 |
statusCode |
readonly |
number |
- | BigshipApiError.statusCode |
packages/sdk/src/errors/BigshipError.ts:31 |
traceId? |
readonly |
string |
- | BigshipApiError.traceId |
packages/sdk/src/errors/BigshipError.ts:35 |
validationErrors? |
readonly |
Record<string, string[]> |
- | BigshipApiError.validationErrors |
packages/sdk/src/errors/BigshipError.ts:34 |
stackTraceLimit |
static |
number |
The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)). The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed. If set to a non-number value, or set to a negative number, stack traces will not capture any frames. |
BigshipApiError.stackTraceLimit |
node_modules/@types/node/globals.d.ts:68 |
Methods
Section titled “Methods”isAuthError()
Section titled “isAuthError()”isAuthError(): boolean;Defined in: packages/sdk/src/errors/BigshipError.ts:61
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”isRateLimitError()
Section titled “isRateLimitError()”isRateLimitError(): boolean;Defined in: packages/sdk/src/errors/BigshipError.ts:57
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”BigshipApiError.isRateLimitError
isValidationError()
Section titled “isValidationError()”isValidationError(): boolean;Defined in: packages/sdk/src/errors/BigshipError.ts:53
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”BigshipApiError.isValidationError
captureStackTrace()
Section titled “captureStackTrace()”static captureStackTrace(targetObject: object, constructorOpt?: Function): void;Defined in: node_modules/@types/node/globals.d.ts:52
Creates a .stack property on targetObject, which when accessed returns
a string representing the location in the code at which
Error.captureStackTrace() was called.
const myObject = {};Error.captureStackTrace(myObject);myObject.stack; // Similar to `new Error().stack`The first line of the trace will be prefixed with
${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames
above constructorOpt, including constructorOpt, will be omitted from the
generated stack trace.
The constructorOpt argument is useful for hiding implementation
details of error generation from the user. For instance:
function a() { b();}
function b() { c();}
function c() { // Create an error without stack trace to avoid calculating the stack trace twice. const { stackTraceLimit } = Error; Error.stackTraceLimit = 0; const error = new Error(); Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace throw error;}
a();Parameters
Section titled “Parameters”targetObject
Section titled “targetObject”object
constructorOpt?
Section titled “constructorOpt?”Function
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”BigshipApiError.captureStackTrace
prepareStackTrace()
Section titled “prepareStackTrace()”static prepareStackTrace(err: Error, stackTraces: CallSite[]): any;Defined in: node_modules/@types/node/globals.d.ts:56
Parameters
Section titled “Parameters”Error
stackTraces
Section titled “stackTraces”CallSite[]
Returns
Section titled “Returns”any
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
Section titled “Inherited from”BigshipApiError.prepareStackTrace
BigshipValidationError
Section titled “BigshipValidationError”Defined in: packages/sdk/src/errors/index.ts:111
Error thrown when request validation fails
Example
Section titled “Example”try { await client.addSingleOrder(orderData);} catch (error) { if (error instanceof BigshipValidationError) { console.error('Validation errors:', error.validationErrors); // { invoice_id: ['Invalid format'], pincode: ['Invalid pincode'] } }}Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new BigshipValidationError( message: string, validationErrors: Record<string, string[]>, options?: Omit<BigshipApiErrorOptions, "code" | "apiResponse">): BigshipValidationError;Defined in: packages/sdk/src/errors/index.ts:114
Parameters
Section titled “Parameters”message
Section titled “message”string
validationErrors
Section titled “validationErrors”Record<string, string[]>
options?
Section titled “options?”Omit<BigshipApiErrorOptions, "code" | "apiResponse"> = {}
Returns
Section titled “Returns”Overrides
Section titled “Overrides”Properties
Section titled “Properties”| Property | Modifier | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|---|
apiResponse? |
readonly |
BigshipErrorData |
- | - | BigshipApiError.apiResponse |
packages/sdk/src/errors/BigshipError.ts:33 |
cause? |
public |
unknown |
- | - | BigshipApiError.cause |
node_modules/typescript/lib/lib.es2022.error.d.ts:26 |
code? |
readonly |
string |
- | - | BigshipApiError.code |
packages/sdk/src/errors/BigshipError.ts:32 |
endpoint? |
readonly |
string |
- | - | BigshipApiError.endpoint |
packages/sdk/src/errors/index.ts:32 |
message |
public |
string |
- | - | BigshipApiError.message |
node_modules/typescript/lib/lib.es5.d.ts:1077 |
name |
public |
string |
- | - | BigshipApiError.name |
node_modules/typescript/lib/lib.es5.d.ts:1076 |
requestId? |
readonly |
string |
- | - | BigshipApiError.requestId |
packages/sdk/src/errors/index.ts:31 |
responseBody? |
readonly |
unknown |
- | - | BigshipApiError.responseBody |
packages/sdk/src/errors/index.ts:33 |
stack? |
public |
string |
- | - | BigshipApiError.stack |
node_modules/typescript/lib/lib.es5.d.ts:1078 |
statusCode |
readonly |
number |
- | - | BigshipApiError.statusCode |
packages/sdk/src/errors/BigshipError.ts:31 |
traceId? |
readonly |
string |
- | - | BigshipApiError.traceId |
packages/sdk/src/errors/BigshipError.ts:35 |
validationErrors |
readonly |
Record<string, string[]> |
- | BigshipApiError.validationErrors |
- | packages/sdk/src/errors/index.ts:112 |
stackTraceLimit |
static |
number |
The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)). The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed. If set to a non-number value, or set to a negative number, stack traces will not capture any frames. |
- | BigshipApiError.stackTraceLimit |
node_modules/@types/node/globals.d.ts:68 |
Methods
Section titled “Methods”isAuthError()
Section titled “isAuthError()”isAuthError(): boolean;Defined in: packages/sdk/src/errors/BigshipError.ts:61
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”isRateLimitError()
Section titled “isRateLimitError()”isRateLimitError(): boolean;Defined in: packages/sdk/src/errors/BigshipError.ts:57
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”BigshipApiError.isRateLimitError
isValidationError()
Section titled “isValidationError()”isValidationError(): boolean;Defined in: packages/sdk/src/errors/BigshipError.ts:53
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”BigshipApiError.isValidationError
captureStackTrace()
Section titled “captureStackTrace()”static captureStackTrace(targetObject: object, constructorOpt?: Function): void;Defined in: node_modules/@types/node/globals.d.ts:52
Creates a .stack property on targetObject, which when accessed returns
a string representing the location in the code at which
Error.captureStackTrace() was called.
const myObject = {};Error.captureStackTrace(myObject);myObject.stack; // Similar to `new Error().stack`The first line of the trace will be prefixed with
${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames
above constructorOpt, including constructorOpt, will be omitted from the
generated stack trace.
The constructorOpt argument is useful for hiding implementation
details of error generation from the user. For instance:
function a() { b();}
function b() { c();}
function c() { // Create an error without stack trace to avoid calculating the stack trace twice. const { stackTraceLimit } = Error; Error.stackTraceLimit = 0; const error = new Error(); Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace throw error;}
a();Parameters
Section titled “Parameters”targetObject
Section titled “targetObject”object
constructorOpt?
Section titled “constructorOpt?”Function
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”BigshipApiError.captureStackTrace
prepareStackTrace()
Section titled “prepareStackTrace()”static prepareStackTrace(err: Error, stackTraces: CallSite[]): any;Defined in: node_modules/@types/node/globals.d.ts:56
Parameters
Section titled “Parameters”Error
stackTraces
Section titled “stackTraces”CallSite[]
Returns
Section titled “Returns”any
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
Section titled “Inherited from”BigshipApiError.prepareStackTrace
ShipmentWorkflow
Section titled “ShipmentWorkflow”Defined in: packages/sdk/src/workflow/ShipmentWorkflow.ts:36
Fluent workflow for the new Unified Outbound API order lifecycle.
The new order flow is:
- create() - Create a draft order
- getServiceableCouriers() - Get available couriers (called internally)
- withCourier() - Select a courier
- place() - Place/manifest the order
- finalize() - Get order details
Example
Section titled “Example”const result = await client.workflow() .create({ segment_type: 'domestic_b2c', MasterOrderPickUpLocation: 123, MasterOrderPaymentMode: 1, MasterOrderShippingName: 'John Doe', // ... other fields }) .withCourier(25) .place() .finalize();Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ShipmentWorkflow(client: BigshipClient): ShipmentWorkflow;Defined in: packages/sdk/src/workflow/ShipmentWorkflow.ts:43
Parameters
Section titled “Parameters”client
Section titled “client”Returns
Section titled “Returns”Methods
Section titled “Methods”create()
Section titled “create()”create(order: | { additional_comments?: string; boxes: { dimension_unit: "cm"; dimensions: { breadth?: number; height?: number; length?: number; weight: number; }[]; weight_unit: "kg"; }; MasterOrderInvoiceAmount: number; MasterOrderPaymentMode: number; MasterOrderPickUpLocation: number; MasterOrderShippingAddress: string; MasterOrderShippingAddress2?: string; MasterOrderShippingCity: string; MasterOrderShippingCountry: string; MasterOrderShippingEmail?: string; MasterOrderShippingLandmark?: string; MasterOrderShippingLatitude: string; MasterOrderShippingLongitude: string; MasterOrderShippingMobileNo: string | number; MasterOrderShippingName: string; MasterOrderShippingState: string; MasterOrderShippingZipCode: string; OrderInvoiceNo?: string; PackageTypeId: number; pickup_instructions?: string; segment_type: "hyperlocal";} | { boxes: { dimension_unit: "cm"; dimensions: { breadth: number; height: number; length: number; weight: number; }[]; noOfBoxes: number; weight_unit: "kg"; }[]; MasterOrderCollectableAmount?: string; MasterOrderDate: string; MasterOrderInvoiceAmount: number; MasterOrderPaymentMode: number; MasterOrderPickUpLocation: number; MasterOrderReturnLocation: number; MasterOrderShippingAddress: string; MasterOrderShippingAddress2?: string; MasterOrderShippingCity: string; MasterOrderShippingCountry: string; MasterOrderShippingEmail?: string; MasterOrderShippingLandmark?: string; MasterOrderShippingMobileNo: string | number; MasterOrderShippingName: string; MasterOrderShippingState: string; MasterOrderShippingZipCode: string; OrderInvoiceNo: string; ProductName: string; segment_type: "domestic_b2b"; totalNumOfBoxes: number;} | { boxes: { dimension_unit: "cm"; dimensions: { breadth: number; height: number; length: number; weight: number; }[]; noOfBoxes: number; products: { amount: string | number; categoryId: string; collectableAmount: string | number; hsn?: string; productName: string; qty: string | number; totalAmount: string | number; }[]; weight_unit: "kg"; }[]; MasterOrderDate: string; MasterOrderInvoiceAmount: number; MasterOrderPaymentMode: number; MasterOrderPickUpLocation: number; MasterOrderReturnLocation: number; MasterOrderShippingAddress: string; MasterOrderShippingAddress2?: string; MasterOrderShippingCity: string; MasterOrderShippingCountry: string; MasterOrderShippingEmail?: string; MasterOrderShippingLandmark?: string; MasterOrderShippingMobileNo: string | number; MasterOrderShippingName: string; MasterOrderShippingState: string; MasterOrderShippingZipCode: string; OrderInvoiceNo: string; segment_type: "domestic_b2c"; totalNumOfBoxes: number;}): Promise<ShipmentWorkflow>;Defined in: packages/sdk/src/workflow/ShipmentWorkflow.ts:51
Create a draft order.
Parameters
Section titled “Parameters”| {
additional_comments?: string;
boxes: {
dimension_unit: "cm";
dimensions: {
breadth?: number;
height?: number;
length?: number;
weight: number;
}[];
weight_unit: "kg";
};
MasterOrderInvoiceAmount: number;
MasterOrderPaymentMode: number;
MasterOrderPickUpLocation: number;
MasterOrderShippingAddress: string;
MasterOrderShippingAddress2?: string;
MasterOrderShippingCity: string;
MasterOrderShippingCountry: string;
MasterOrderShippingEmail?: string;
MasterOrderShippingLandmark?: string;
MasterOrderShippingLatitude: string;
MasterOrderShippingLongitude: string;
MasterOrderShippingMobileNo: string | number;
MasterOrderShippingName: string;
MasterOrderShippingState: string;
MasterOrderShippingZipCode: string;
OrderInvoiceNo?: string;
PackageTypeId: number;
pickup_instructions?: string;
segment_type: "hyperlocal";
}
| {
boxes: {
dimension_unit: "cm";
dimensions: {
breadth: number;
height: number;
length: number;
weight: number;
}[];
noOfBoxes: number;
weight_unit: "kg";
}[];
MasterOrderCollectableAmount?: string;
MasterOrderDate: string;
MasterOrderInvoiceAmount: number;
MasterOrderPaymentMode: number;
MasterOrderPickUpLocation: number;
MasterOrderReturnLocation: number;
MasterOrderShippingAddress: string;
MasterOrderShippingAddress2?: string;
MasterOrderShippingCity: string;
MasterOrderShippingCountry: string;
MasterOrderShippingEmail?: string;
MasterOrderShippingLandmark?: string;
MasterOrderShippingMobileNo: string | number;
MasterOrderShippingName: string;
MasterOrderShippingState: string;
MasterOrderShippingZipCode: string;
OrderInvoiceNo: string;
ProductName: string;
segment_type: "domestic_b2b";
totalNumOfBoxes: number;
}
| {
boxes: {
dimension_unit: "cm";
dimensions: {
breadth: number;
height: number;
length: number;
weight: number;
}[];
noOfBoxes: number;
products: {
amount: string | number;
categoryId: string;
collectableAmount: string | number;
hsn?: string;
productName: string;
qty: string | number;
totalAmount: string | number;
}[];
weight_unit: "kg";
}[];
MasterOrderDate: string;
MasterOrderInvoiceAmount: number;
MasterOrderPaymentMode: number;
MasterOrderPickUpLocation: number;
MasterOrderReturnLocation: number;
MasterOrderShippingAddress: string;
MasterOrderShippingAddress2?: string;
MasterOrderShippingCity: string;
MasterOrderShippingCountry: string;
MasterOrderShippingEmail?: string;
MasterOrderShippingLandmark?: string;
MasterOrderShippingMobileNo: string | number;
MasterOrderShippingName: string;
MasterOrderShippingState: string;
MasterOrderShippingZipCode: string;
OrderInvoiceNo: string;
segment_type: "domestic_b2c";
totalNumOfBoxes: number;
}
The order creation request
Returns
Section titled “Returns”Promise<ShipmentWorkflow>
execute()
Section titled “execute()”execute(order: | { additional_comments?: string; boxes: { dimension_unit: "cm"; dimensions: { breadth?: number; height?: number; length?: number; weight: number; }[]; weight_unit: "kg"; }; MasterOrderInvoiceAmount: number; MasterOrderPaymentMode: number; MasterOrderPickUpLocation: number; MasterOrderShippingAddress: string; MasterOrderShippingAddress2?: string; MasterOrderShippingCity: string; MasterOrderShippingCountry: string; MasterOrderShippingEmail?: string; MasterOrderShippingLandmark?: string; MasterOrderShippingLatitude: string; MasterOrderShippingLongitude: string; MasterOrderShippingMobileNo: string | number; MasterOrderShippingName: string; MasterOrderShippingState: string; MasterOrderShippingZipCode: string; OrderInvoiceNo?: string; PackageTypeId: number; pickup_instructions?: string; segment_type: "hyperlocal";} | { boxes: { dimension_unit: "cm"; dimensions: { breadth: number; height: number; length: number; weight: number; }[]; noOfBoxes: number; weight_unit: "kg"; }[]; MasterOrderCollectableAmount?: string; MasterOrderDate: string; MasterOrderInvoiceAmount: number; MasterOrderPaymentMode: number; MasterOrderPickUpLocation: number; MasterOrderReturnLocation: number; MasterOrderShippingAddress: string; MasterOrderShippingAddress2?: string; MasterOrderShippingCity: string; MasterOrderShippingCountry: string; MasterOrderShippingEmail?: string; MasterOrderShippingLandmark?: string; MasterOrderShippingMobileNo: string | number; MasterOrderShippingName: string; MasterOrderShippingState: string; MasterOrderShippingZipCode: string; OrderInvoiceNo: string; ProductName: string; segment_type: "domestic_b2b"; totalNumOfBoxes: number;} | { boxes: { dimension_unit: "cm"; dimensions: { breadth: number; height: number; length: number; weight: number; }[]; noOfBoxes: number; products: { amount: string | number; categoryId: string; collectableAmount: string | number; hsn?: string; productName: string; qty: string | number; totalAmount: string | number; }[]; weight_unit: "kg"; }[]; MasterOrderDate: string; MasterOrderInvoiceAmount: number; MasterOrderPaymentMode: number; MasterOrderPickUpLocation: number; MasterOrderReturnLocation: number; MasterOrderShippingAddress: string; MasterOrderShippingAddress2?: string; MasterOrderShippingCity: string; MasterOrderShippingCountry: string; MasterOrderShippingEmail?: string; MasterOrderShippingLandmark?: string; MasterOrderShippingMobileNo: string | number; MasterOrderShippingName: string; MasterOrderShippingState: string; MasterOrderShippingZipCode: string; OrderInvoiceNo: string; segment_type: "domestic_b2c"; totalNumOfBoxes: number;}, courierId?: number): Promise<{ orderDetail: | { getOrderDetails: { AwbNumber: string; box_dimensions: { breadth: string; each_box_weight: string; height: string; length: string; no_of_box: string; }[]; collectableAmount: string; consignee: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consigneeBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consigneeBilling: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consigneeBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consignor: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consignorBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consignorType: string; created_at: string; dimensions: string[]; InvoiceCurrency: string; InvoiceNumber: string; InvoiceStatus: string; InvoiceStatusId: string; MasterCustomInvoiceId: string | null; MasterCustomOrderId: string; MasterOrderCurrency: string; MasterOrderShippingZipCode: string; orderDate: string; PackageTypeId: string; PackageTypeName: string; PaymentMode: string; pickupDetail: { warehouseAddressLandMark: string; warehouseAddressLine1: string; warehouseAddressLine2: string; warehouseAddressPhone: string; warehouseCity: string; warehouseContactPerson: string; warehouseCountry: string; warehouseName: string; warehousePin: string; warehouseState: string; }; product_details: { box_details: { parameterCategory: string; parameterName: string; parameterValue: string; }[]; detailsIdentifier: string; numberOfProducts: string; products: unknown[]; weight: { unit: string; value: string; }; }[]; products_name: string; status: string; status_id: string; totalInvoiceAmount: string; totalNoOfBoxes: number | null; updated_at: string; weight: string; weightUnit: string; }; segment_type: string; } | null; orderId: string;}>;Defined in: packages/sdk/src/workflow/ShipmentWorkflow.ts:140
Execute the complete order workflow. Creates order, selects first available courier, places, and finalizes.
Parameters
Section titled “Parameters”| {
additional_comments?: string;
boxes: {
dimension_unit: "cm";
dimensions: {
breadth?: number;
height?: number;
length?: number;
weight: number;
}[];
weight_unit: "kg";
};
MasterOrderInvoiceAmount: number;
MasterOrderPaymentMode: number;
MasterOrderPickUpLocation: number;
MasterOrderShippingAddress: string;
MasterOrderShippingAddress2?: string;
MasterOrderShippingCity: string;
MasterOrderShippingCountry: string;
MasterOrderShippingEmail?: string;
MasterOrderShippingLandmark?: string;
MasterOrderShippingLatitude: string;
MasterOrderShippingLongitude: string;
MasterOrderShippingMobileNo: string | number;
MasterOrderShippingName: string;
MasterOrderShippingState: string;
MasterOrderShippingZipCode: string;
OrderInvoiceNo?: string;
PackageTypeId: number;
pickup_instructions?: string;
segment_type: "hyperlocal";
}
| {
boxes: {
dimension_unit: "cm";
dimensions: {
breadth: number;
height: number;
length: number;
weight: number;
}[];
noOfBoxes: number;
weight_unit: "kg";
}[];
MasterOrderCollectableAmount?: string;
MasterOrderDate: string;
MasterOrderInvoiceAmount: number;
MasterOrderPaymentMode: number;
MasterOrderPickUpLocation: number;
MasterOrderReturnLocation: number;
MasterOrderShippingAddress: string;
MasterOrderShippingAddress2?: string;
MasterOrderShippingCity: string;
MasterOrderShippingCountry: string;
MasterOrderShippingEmail?: string;
MasterOrderShippingLandmark?: string;
MasterOrderShippingMobileNo: string | number;
MasterOrderShippingName: string;
MasterOrderShippingState: string;
MasterOrderShippingZipCode: string;
OrderInvoiceNo: string;
ProductName: string;
segment_type: "domestic_b2b";
totalNumOfBoxes: number;
}
| {
boxes: {
dimension_unit: "cm";
dimensions: {
breadth: number;
height: number;
length: number;
weight: number;
}[];
noOfBoxes: number;
products: {
amount: string | number;
categoryId: string;
collectableAmount: string | number;
hsn?: string;
productName: string;
qty: string | number;
totalAmount: string | number;
}[];
weight_unit: "kg";
}[];
MasterOrderDate: string;
MasterOrderInvoiceAmount: number;
MasterOrderPaymentMode: number;
MasterOrderPickUpLocation: number;
MasterOrderReturnLocation: number;
MasterOrderShippingAddress: string;
MasterOrderShippingAddress2?: string;
MasterOrderShippingCity: string;
MasterOrderShippingCountry: string;
MasterOrderShippingEmail?: string;
MasterOrderShippingLandmark?: string;
MasterOrderShippingMobileNo: string | number;
MasterOrderShippingName: string;
MasterOrderShippingState: string;
MasterOrderShippingZipCode: string;
OrderInvoiceNo: string;
segment_type: "domestic_b2c";
totalNumOfBoxes: number;
}
courierId?
Section titled “courierId?”number
Returns
Section titled “Returns”Promise<{
orderDetail: | {
getOrderDetails: {
AwbNumber: string;
box_dimensions: {
breadth: string;
each_box_weight: string;
height: string;
length: string;
no_of_box: string;
}[];
collectableAmount: string;
consignee: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consigneeBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consigneeBilling: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consigneeBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consignor: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consignorBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consignorType: string;
created_at: string;
dimensions: string[];
InvoiceCurrency: string;
InvoiceNumber: string;
InvoiceStatus: string;
InvoiceStatusId: string;
MasterCustomInvoiceId: string | null;
MasterCustomOrderId: string;
MasterOrderCurrency: string;
MasterOrderShippingZipCode: string;
orderDate: string;
PackageTypeId: string;
PackageTypeName: string;
PaymentMode: string;
pickupDetail: {
warehouseAddressLandMark: string;
warehouseAddressLine1: string;
warehouseAddressLine2: string;
warehouseAddressPhone: string;
warehouseCity: string;
warehouseContactPerson: string;
warehouseCountry: string;
warehouseName: string;
warehousePin: string;
warehouseState: string;
};
product_details: {
box_details: {
parameterCategory: string;
parameterName: string;
parameterValue: string;
}[];
detailsIdentifier: string;
numberOfProducts: string;
products: unknown[];
weight: {
unit: string;
value: string;
};
}[];
products_name: string;
status: string;
status_id: string;
totalInvoiceAmount: string;
totalNoOfBoxes: number | null;
updated_at: string;
weight: string;
weightUnit: string;
};
segment_type: string;
}
| null;
orderId: string;
}>
finalize()
Section titled “finalize()”finalize(): Promise<{ orderDetail: | { getOrderDetails: { AwbNumber: string; box_dimensions: { breadth: string; each_box_weight: string; height: string; length: string; no_of_box: string; }[]; collectableAmount: string; consignee: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consigneeBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consigneeBilling: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consigneeBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consignor: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consignorBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consignorType: string; created_at: string; dimensions: string[]; InvoiceCurrency: string; InvoiceNumber: string; InvoiceStatus: string; InvoiceStatusId: string; MasterCustomInvoiceId: string | null; MasterCustomOrderId: string; MasterOrderCurrency: string; MasterOrderShippingZipCode: string; orderDate: string; PackageTypeId: string; PackageTypeName: string; PaymentMode: string; pickupDetail: { warehouseAddressLandMark: string; warehouseAddressLine1: string; warehouseAddressLine2: string; warehouseAddressPhone: string; warehouseCity: string; warehouseContactPerson: string; warehouseCountry: string; warehouseName: string; warehousePin: string; warehouseState: string; }; product_details: { box_details: { parameterCategory: string; parameterName: string; parameterValue: string; }[]; detailsIdentifier: string; numberOfProducts: string; products: unknown[]; weight: { unit: string; value: string; }; }[]; products_name: string; status: string; status_id: string; totalInvoiceAmount: string; totalNoOfBoxes: number | null; updated_at: string; weight: string; weightUnit: string; }; segment_type: string; } | null; orderId: string;}>;Defined in: packages/sdk/src/workflow/ShipmentWorkflow.ts:118
Finalize the workflow by fetching order details.
Returns
Section titled “Returns”Promise<{
orderDetail: | {
getOrderDetails: {
AwbNumber: string;
box_dimensions: {
breadth: string;
each_box_weight: string;
height: string;
length: string;
no_of_box: string;
}[];
collectableAmount: string;
consignee: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consigneeBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consigneeBilling: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consigneeBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consignor: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consignorBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consignorType: string;
created_at: string;
dimensions: string[];
InvoiceCurrency: string;
InvoiceNumber: string;
InvoiceStatus: string;
InvoiceStatusId: string;
MasterCustomInvoiceId: string | null;
MasterCustomOrderId: string;
MasterOrderCurrency: string;
MasterOrderShippingZipCode: string;
orderDate: string;
PackageTypeId: string;
PackageTypeName: string;
PaymentMode: string;
pickupDetail: {
warehouseAddressLandMark: string;
warehouseAddressLine1: string;
warehouseAddressLine2: string;
warehouseAddressPhone: string;
warehouseCity: string;
warehouseContactPerson: string;
warehouseCountry: string;
warehouseName: string;
warehousePin: string;
warehouseState: string;
};
product_details: {
box_details: {
parameterCategory: string;
parameterName: string;
parameterValue: string;
}[];
detailsIdentifier: string;
numberOfProducts: string;
products: unknown[];
weight: {
unit: string;
value: string;
};
}[];
products_name: string;
status: string;
status_id: string;
totalInvoiceAmount: string;
totalNoOfBoxes: number | null;
updated_at: string;
weight: string;
weightUnit: string;
};
segment_type: string;
}
| null;
orderId: string;
}>
place()
Section titled “place()”place(options?: { riskTypeId?: string;}): Promise<ShipmentWorkflow>;Defined in: packages/sdk/src/workflow/ShipmentWorkflow.ts:99
Place/manifest the order with the selected courier.
Parameters
Section titled “Parameters”options?
Section titled “options?”riskTypeId?
Section titled “riskTypeId?”string
Returns
Section titled “Returns”Promise<ShipmentWorkflow>
withCourier()
Section titled “withCourier()”withCourier(courierId: number): this;Defined in: packages/sdk/src/workflow/ShipmentWorkflow.ts:68
Select a courier for the order.
Parameters
Section titled “Parameters”courierId
Section titled “courierId”number
The ID of the courier to use
Returns
Section titled “Returns”this
withServiceableCourier()
Section titled “withServiceableCourier()”withServiceableCourier(index?: number): Promise<ShipmentWorkflow>;Defined in: packages/sdk/src/workflow/ShipmentWorkflow.ts:77
Select a courier from the serviceable couriers response.
Parameters
Section titled “Parameters”index?
Section titled “index?”number = 0
Index of the courier in the calculatedRates array (default: 0)
Returns
Section titled “Returns”Promise<ShipmentWorkflow>
Interfaces
Section titled “Interfaces”ApiResponse
Section titled “ApiResponse”Defined in: packages/sdk/src/core/types.ts:770
Base API response wrapper All Bigship API responses follow this structure
Type Parameters
Section titled “Type Parameters”T = unknown
Properties
Section titled “Properties”| Property | Type | Defined in |
|---|---|---|
data |
T | null |
packages/sdk/src/core/types.ts:774 |
message |
string |
packages/sdk/src/core/types.ts:772 |
status |
boolean |
packages/sdk/src/core/types.ts:771 |
status_code |
number |
packages/sdk/src/core/types.ts:773 |
BigshipApiErrorOptions
Section titled “BigshipApiErrorOptions”Defined in: packages/sdk/src/errors/index.ts:5
Properties
Section titled “Properties”| Property | Type | Defined in |
|---|---|---|
apiResponse? |
BigshipErrorData |
packages/sdk/src/errors/index.ts:7 |
cause? |
Error |
packages/sdk/src/errors/index.ts:11 |
code? |
string |
packages/sdk/src/errors/index.ts:6 |
endpoint? |
string |
packages/sdk/src/errors/index.ts:9 |
requestId? |
string |
packages/sdk/src/errors/index.ts:8 |
responseBody? |
unknown |
packages/sdk/src/errors/index.ts:10 |
BigshipConfig
Section titled “BigshipConfig”Defined in: packages/sdk/src/core/types.ts:6
Properties
Section titled “Properties”| Property | Type | Defined in |
|---|---|---|
accessKey |
string |
packages/sdk/src/core/types.ts:10 |
baseURL |
string |
packages/sdk/src/core/types.ts:7 |
enableDetailedLogging? |
boolean |
packages/sdk/src/core/types.ts:14 |
maxRetries? |
number |
packages/sdk/src/core/types.ts:15 |
maxRetryDelay? |
number |
packages/sdk/src/core/types.ts:17 |
onBeforeRequest? |
(config: InternalAxiosRequestConfig) => | InternalAxiosRequestConfig<any, any> | Promise<InternalAxiosRequestConfig<any, any>> |
packages/sdk/src/core/types.ts:25 |
onError? |
(error: BigshipError, context: RequestContext) => void | Promise<void> |
packages/sdk/src/core/types.ts:23 |
onResponse? |
(response: ApiResponse<unknown>, context: RequestContext) => void | Promise<void> |
packages/sdk/src/core/types.ts:22 |
onRetry? |
(attempt: number, error: BigshipError, context: RequestContext) => void | Promise<void> |
packages/sdk/src/core/types.ts:24 |
password |
string |
packages/sdk/src/core/types.ts:9 |
retryDelay? |
number |
packages/sdk/src/core/types.ts:16 |
retryOnStatusCodes? |
number[] |
packages/sdk/src/core/types.ts:18 |
timeout? |
number |
packages/sdk/src/core/types.ts:11 |
tokenTtlMs? |
number |
packages/sdk/src/core/types.ts:19 |
userName |
string |
packages/sdk/src/core/types.ts:8 |
BigshipErrorData
Section titled “BigshipErrorData”Defined in: packages/sdk/src/errors/BigshipError.ts:1
Properties
Section titled “Properties”| Property | Type | Defined in |
|---|---|---|
errors? |
Record<string, string[]> |
packages/sdk/src/errors/BigshipError.ts:4 |
message? |
string |
packages/sdk/src/errors/BigshipError.ts:3 |
status? |
string |
packages/sdk/src/errors/BigshipError.ts:2 |
trace_id? |
string |
packages/sdk/src/errors/BigshipError.ts:5 |
LoggerAdapter
Section titled “LoggerAdapter”Defined in: packages/sdk/src/core/types.ts:32
Logger interface for pluggable logging. Implement this interface to integrate with Winston, pino, etc.
Methods
Section titled “Methods”debug()?
Section titled “debug()?”optional debug(message: string, data?: unknown): void;Defined in: packages/sdk/src/core/types.ts:33
Parameters
Section titled “Parameters”message
Section titled “message”string
unknown
Returns
Section titled “Returns”void
error()?
Section titled “error()?”optional error(message: string, data?: unknown): void;Defined in: packages/sdk/src/core/types.ts:36
Parameters
Section titled “Parameters”message
Section titled “message”string
unknown
Returns
Section titled “Returns”void
info()?
Section titled “info()?”optional info(message: string, data?: unknown): void;Defined in: packages/sdk/src/core/types.ts:34
Parameters
Section titled “Parameters”message
Section titled “message”string
unknown
Returns
Section titled “Returns”void
warn()?
Section titled “warn()?”optional warn(message: string, data?: unknown): void;Defined in: packages/sdk/src/core/types.ts:35
Parameters
Section titled “Parameters”message
Section titled “message”string
unknown
Returns
Section titled “Returns”void
RequestContext
Section titled “RequestContext”Defined in: packages/sdk/src/core/types.ts:43
Request context for event hooks Provides information about the current request for logging and debugging
Properties
Section titled “Properties”| Property | Type | Defined in |
|---|---|---|
attempt? |
number |
packages/sdk/src/core/types.ts:47 |
duration? |
number |
packages/sdk/src/core/types.ts:49 |
endpoint |
string |
packages/sdk/src/core/types.ts:44 |
method |
string |
packages/sdk/src/core/types.ts:45 |
requestId? |
string |
packages/sdk/src/core/types.ts:46 |
startTime |
number |
packages/sdk/src/core/types.ts:48 |
RequestOptions
Section titled “RequestOptions”Defined in: packages/sdk/src/core/BigshipClient.ts:92
Per-request options that can override client-level defaults.
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
signal? |
AbortSignal |
AbortSignal to cancel the request | packages/sdk/src/core/BigshipClient.ts:96 |
timeout? |
number |
Override the default timeout (ms) for this request | packages/sdk/src/core/BigshipClient.ts:94 |
Type Aliases
Section titled “Type Aliases”BigshipUtilsType
Section titled “BigshipUtilsType”type BigshipUtilsType = typeof BigshipUtils;Defined in: packages/sdk/src/utils/index.ts:47
CancelOrderRequest
Section titled “CancelOrderRequest”type CancelOrderRequest = z.infer<typeof CancelOrderRequestSchema>;Defined in: packages/sdk/src/core/types.ts:529
CancelOrderResponse
Section titled “CancelOrderResponse”type CancelOrderResponse = z.infer<typeof CancelOrderResponseSchema>;Defined in: packages/sdk/src/core/types.ts:759
CreateOrderRequest
Section titled “CreateOrderRequest”type CreateOrderRequest = z.infer<typeof CreateOrderRequestSchema>;Defined in: packages/sdk/src/core/types.ts:427
CreateOrderResponse
Section titled “CreateOrderResponse”type CreateOrderResponse = z.infer<typeof CreateOrderResponseSchema>;Defined in: packages/sdk/src/core/types.ts:756
DomesticB2BOrderRequest
Section titled “DomesticB2BOrderRequest”type DomesticB2BOrderRequest = z.infer<typeof DomesticB2BOrderRequestSchema>;Defined in: packages/sdk/src/core/types.ts:429
DomesticB2COrderRequest
Section titled “DomesticB2COrderRequest”type DomesticB2COrderRequest = z.infer<typeof DomesticB2COrderRequestSchema>;Defined in: packages/sdk/src/core/types.ts:430
DownloadDocumentRequest
Section titled “DownloadDocumentRequest”type DownloadDocumentRequest = z.infer<typeof DownloadDocumentRequestSchema>;Defined in: packages/sdk/src/core/types.ts:733
DownloadDocumentResponse
Section titled “DownloadDocumentResponse”type DownloadDocumentResponse = z.infer<typeof DownloadDocumentResponseSchema>;Defined in: packages/sdk/src/core/types.ts:762
GetWarehouseListRequest
Section titled “GetWarehouseListRequest”type GetWarehouseListRequest = z.infer<typeof GetWarehouseListRequestSchema>;Defined in: packages/sdk/src/core/types.ts:163
HyperlocalOrderRequest
Section titled “HyperlocalOrderRequest”type HyperlocalOrderRequest = z.infer<typeof HyperlocalOrderRequestSchema>;Defined in: packages/sdk/src/core/types.ts:428
LoginRequest
Section titled “LoginRequest”type LoginRequest = z.infer<typeof LoginRequestSchema>;Defined in: packages/sdk/src/core/types.ts:74
LoginResponse
Section titled “LoginResponse”type LoginResponse = z.infer<typeof LoginResponseSchema>;Defined in: packages/sdk/src/core/types.ts:744
OrderDetailRequest
Section titled “OrderDetailRequest”type OrderDetailRequest = z.infer<typeof OrderDetailRequestSchema>;Defined in: packages/sdk/src/core/types.ts:621
OrderDetailResponse
Section titled “OrderDetailResponse”type OrderDetailResponse = z.infer<typeof OrderDetailResponseSchema>;Defined in: packages/sdk/src/core/types.ts:761
PackageTypeResponse
Section titled “PackageTypeResponse”type PackageTypeResponse = z.infer<typeof PackageTypeResponseSchema>;Defined in: packages/sdk/src/core/types.ts:752
PaymentModeResponse
Section titled “PaymentModeResponse”type PaymentModeResponse = z.infer<typeof PaymentModeResponseSchema>;Defined in: packages/sdk/src/core/types.ts:753
PlaceOrderRequest
Section titled “PlaceOrderRequest”type PlaceOrderRequest = z.infer<typeof PlaceOrderRequestSchema>;Defined in: packages/sdk/src/core/types.ts:514
PlaceOrderResponse
Section titled “PlaceOrderResponse”type PlaceOrderResponse = z.infer<typeof PlaceOrderResponseSchema>;Defined in: packages/sdk/src/core/types.ts:758
ProfileResponse
Section titled “ProfileResponse”type ProfileResponse = z.infer<typeof ProfileResponseSchema>;Defined in: packages/sdk/src/core/types.ts:745
RateCalculatorRequest
Section titled “RateCalculatorRequest”type RateCalculatorRequest = z.infer<typeof RateCalculatorRequestSchema>;Defined in: packages/sdk/src/core/types.ts:281
RateCalculatorResponse
Section titled “RateCalculatorResponse”type RateCalculatorResponse = z.infer<typeof RateCalculatorResponseSchema>;Defined in: packages/sdk/src/core/types.ts:755
RiskTypeResponse
Section titled “RiskTypeResponse”type RiskTypeResponse = z.infer<typeof RiskTypeResponseSchema>;Defined in: packages/sdk/src/core/types.ts:754
SaveWarehouseRequest
Section titled “SaveWarehouseRequest”type SaveWarehouseRequest = z.infer<typeof SaveWarehouseRequestSchema>;Defined in: packages/sdk/src/core/types.ts:144
SaveWarehouseResponse
Section titled “SaveWarehouseResponse”type SaveWarehouseResponse = z.infer<typeof SaveWarehouseResponseSchema>;Defined in: packages/sdk/src/core/types.ts:746
ServiceableCouriersRequest
Section titled “ServiceableCouriersRequest”type ServiceableCouriersRequest = z.infer<typeof ServiceableCouriersRequestSchema>;Defined in: packages/sdk/src/core/types.ts:444
ServiceableCouriersResponse
Section titled “ServiceableCouriersResponse”type ServiceableCouriersResponse = z.infer<typeof ServiceableCouriersResponseSchema>;Defined in: packages/sdk/src/core/types.ts:757
TrackOrderRequest
Section titled “TrackOrderRequest”type TrackOrderRequest = z.infer<typeof TrackOrderRequestSchema>;Defined in: packages/sdk/src/core/types.ts:539
TrackOrderResponse
Section titled “TrackOrderResponse”type TrackOrderResponse = z.infer<typeof TrackOrderResponseSchema>;Defined in: packages/sdk/src/core/types.ts:760
UpdateWarehouseRequest
Section titled “UpdateWarehouseRequest”type UpdateWarehouseRequest = z.infer<typeof UpdateWarehouseRequestSchema>;Defined in: packages/sdk/src/core/types.ts:221
UpdateWarehouseResponse
Section titled “UpdateWarehouseResponse”type UpdateWarehouseResponse = z.infer<typeof UpdateWarehouseResponseSchema>;Defined in: packages/sdk/src/core/types.ts:751
WarehouseListResponse
Section titled “WarehouseListResponse”type WarehouseListResponse = ApiResponse<{ total: number; warehouse: z.infer<typeof WarehouseListItemSchema>[];}>;Defined in: packages/sdk/src/core/types.ts:747
Variables
Section titled “Variables”BigshipUtils
Section titled “BigshipUtils”const BigshipUtils: { calculateCollectableAmount: (paymentType: "COD" | "Prepaid", codAmount: number) => number; fileToBase64DataURI: (file: File) => Promise<string>; formatZodErrors: (zodErrors: ZodIssue[]) => Record<string, string[]>; isValidBase64DataURI: (value: string) => boolean;};Defined in: packages/sdk/src/utils/index.ts:40
Type Declaration
Section titled “Type Declaration”| Name | Type | Defined in |
|---|---|---|
calculateCollectableAmount() |
(paymentType: "COD" | "Prepaid", codAmount: number) => number |
packages/sdk/src/utils/index.ts:43 |
fileToBase64DataURI() |
(file: File) => Promise<string> |
packages/sdk/src/utils/index.ts:41 |
formatZodErrors() |
(zodErrors: ZodIssue[]) => Record<string, string[]> |
packages/sdk/src/utils/index.ts:44 |
isValidBase64DataURI() |
(value: string) => boolean |
packages/sdk/src/utils/index.ts:42 |
CancelOrderRequestSchema
Section titled “CancelOrderRequestSchema”const CancelOrderRequestSchema: ZodObject<{ CustomGlobalOrderId: ZodString;}, "strip", ZodTypeAny, { CustomGlobalOrderId: string;}, { CustomGlobalOrderId: string;}>;Defined in: packages/sdk/src/core/types.ts:525
CancelOrderResponseSchema
Section titled “CancelOrderResponseSchema”const CancelOrderResponseSchema: ZodObject<{ data: ZodNullable<ZodArray<ZodUnknown, "many">>; message: ZodString; status: ZodBoolean; status_code: ZodNumber;}, "strip", ZodTypeAny, { data: unknown[] | null; message: string; status: boolean; status_code: number;}, { data: unknown[] | null; message: string; status: boolean; status_code: number;}>;Defined in: packages/sdk/src/core/types.ts:531
CreateOrderDataSchema
Section titled “CreateOrderDataSchema”const CreateOrderDataSchema: ZodObject<{ CustomGlobalOrderId: ZodString;}, "strip", ZodTypeAny, { CustomGlobalOrderId: string;}, { CustomGlobalOrderId: string;}>;Defined in: packages/sdk/src/core/types.ts:432
CreateOrderRequestSchema
Section titled “CreateOrderRequestSchema”const CreateOrderRequestSchema: ZodDiscriminatedUnion<"segment_type", [ZodObject<{ MasterOrderPaymentMode: ZodNumber; MasterOrderPickUpLocation: ZodNumber; MasterOrderShippingAddress: ZodString; MasterOrderShippingAddress2: ZodOptional<ZodString>; MasterOrderShippingCity: ZodString; MasterOrderShippingCountry: ZodDefault<ZodString>; MasterOrderShippingEmail: ZodOptional<ZodString>; MasterOrderShippingLandmark: ZodOptional<ZodString>; MasterOrderShippingMobileNo: ZodUnion<[ZodString, ZodNumber]>; MasterOrderShippingName: ZodString; MasterOrderShippingState: ZodString; MasterOrderShippingZipCode: ZodString;} & { segment_type: ZodLiteral<"hyperlocal">;} & { additional_comments: ZodOptional<ZodString>; boxes: ZodObject<{ dimension_unit: ZodLiteral<"cm">; dimensions: ZodArray<ZodObject<{ breadth: ZodOptional<...>; height: ZodOptional<...>; length: ZodOptional<...>; weight: ZodNumber; }, "strip", ZodTypeAny, { breadth?: ... | ...; height?: ... | ...; length?: ... | ...; weight: number; }, { breadth?: ... | ...; height?: ... | ...; length?: ... | ...; weight: number; }>, "many">; weight_unit: ZodLiteral<"kg">; }, "strip", ZodTypeAny, { dimension_unit: "cm"; dimensions: { breadth?: number; height?: number; length?: number; weight: number; }[]; weight_unit: "kg"; }, { dimension_unit: "cm"; dimensions: { breadth?: number; height?: number; length?: number; weight: number; }[]; weight_unit: "kg"; }>; MasterOrderInvoiceAmount: ZodNumber; MasterOrderShippingLatitude: ZodString; MasterOrderShippingLongitude: ZodString; OrderInvoiceNo: ZodOptional<ZodString>; PackageTypeId: ZodNumber; pickup_instructions: ZodOptional<ZodString>;}, "strip", ZodTypeAny, { additional_comments?: string; boxes: { dimension_unit: "cm"; dimensions: { breadth?: number; height?: number; length?: number; weight: number; }[]; weight_unit: "kg"; }; MasterOrderInvoiceAmount: number; MasterOrderPaymentMode: number; MasterOrderPickUpLocation: number; MasterOrderShippingAddress: string; MasterOrderShippingAddress2?: string; MasterOrderShippingCity: string; MasterOrderShippingCountry: string; MasterOrderShippingEmail?: string; MasterOrderShippingLandmark?: string; MasterOrderShippingLatitude: string; MasterOrderShippingLongitude: string; MasterOrderShippingMobileNo: string | number; MasterOrderShippingName: string; MasterOrderShippingState: string; MasterOrderShippingZipCode: string; OrderInvoiceNo?: string; PackageTypeId: number; pickup_instructions?: string; segment_type: "hyperlocal";}, { additional_comments?: string; boxes: { dimension_unit: "cm"; dimensions: { breadth?: number; height?: number; length?: number; weight: number; }[]; weight_unit: "kg"; }; MasterOrderInvoiceAmount: number; MasterOrderPaymentMode: number; MasterOrderPickUpLocation: number; MasterOrderShippingAddress: string; MasterOrderShippingAddress2?: string; MasterOrderShippingCity: string; MasterOrderShippingCountry?: string; MasterOrderShippingEmail?: string; MasterOrderShippingLandmark?: string; MasterOrderShippingLatitude: string; MasterOrderShippingLongitude: string; MasterOrderShippingMobileNo: string | number; MasterOrderShippingName: string; MasterOrderShippingState: string; MasterOrderShippingZipCode: string; OrderInvoiceNo?: string; PackageTypeId: number; pickup_instructions?: string; segment_type: "hyperlocal";}>, ZodObject<{ MasterOrderPaymentMode: ZodNumber; MasterOrderPickUpLocation: ZodNumber; MasterOrderShippingAddress: ZodString; MasterOrderShippingAddress2: ZodOptional<ZodString>; MasterOrderShippingCity: ZodString; MasterOrderShippingCountry: ZodDefault<ZodString>; MasterOrderShippingEmail: ZodOptional<ZodString>; MasterOrderShippingLandmark: ZodOptional<ZodString>; MasterOrderShippingMobileNo: ZodUnion<[ZodString, ZodNumber]>; MasterOrderShippingName: ZodString; MasterOrderShippingState: ZodString; MasterOrderShippingZipCode: ZodString;} & { segment_type: ZodLiteral<"domestic_b2b">;} & { boxes: ZodArray<ZodObject<{ dimension_unit: ZodLiteral<"cm">; dimensions: ZodArray<ZodObject<{ breadth: ...; height: ...; length: ...; weight: ...; }, "strip", ZodTypeAny, { breadth: ...; height: ...; length: ...; weight: ...; }, { breadth: ...; height: ...; length: ...; weight: ...; }>, "many">; noOfBoxes: ZodNumber; weight_unit: ZodLiteral<"kg">; }, "strip", ZodTypeAny, { dimension_unit: "cm"; dimensions: { breadth: number; height: number; length: number; weight: number; }[]; noOfBoxes: number; weight_unit: "kg"; }, { dimension_unit: "cm"; dimensions: { breadth: number; height: number; length: number; weight: number; }[]; noOfBoxes: number; weight_unit: "kg"; }>, "many">; MasterOrderCollectableAmount: ZodOptional<ZodString>; MasterOrderDate: ZodString; MasterOrderInvoiceAmount: ZodNumber; MasterOrderReturnLocation: ZodNumber; OrderInvoiceNo: ZodString; ProductName: ZodString; totalNumOfBoxes: ZodNumber;}, "strip", ZodTypeAny, { boxes: { dimension_unit: "cm"; dimensions: { breadth: number; height: number; length: number; weight: number; }[]; noOfBoxes: number; weight_unit: "kg"; }[]; MasterOrderCollectableAmount?: string; MasterOrderDate: string; MasterOrderInvoiceAmount: number; MasterOrderPaymentMode: number; MasterOrderPickUpLocation: number; MasterOrderReturnLocation: number; MasterOrderShippingAddress: string; MasterOrderShippingAddress2?: string; MasterOrderShippingCity: string; MasterOrderShippingCountry: string; MasterOrderShippingEmail?: string; MasterOrderShippingLandmark?: string; MasterOrderShippingMobileNo: string | number; MasterOrderShippingName: string; MasterOrderShippingState: string; MasterOrderShippingZipCode: string; OrderInvoiceNo: string; ProductName: string; segment_type: "domestic_b2b"; totalNumOfBoxes: number;}, { boxes: { dimension_unit: "cm"; dimensions: { breadth: number; height: number; length: number; weight: number; }[]; noOfBoxes: number; weight_unit: "kg"; }[]; MasterOrderCollectableAmount?: string; MasterOrderDate: string; MasterOrderInvoiceAmount: number; MasterOrderPaymentMode: number; MasterOrderPickUpLocation: number; MasterOrderReturnLocation: number; MasterOrderShippingAddress: string; MasterOrderShippingAddress2?: string; MasterOrderShippingCity: string; MasterOrderShippingCountry?: string; MasterOrderShippingEmail?: string; MasterOrderShippingLandmark?: string; MasterOrderShippingMobileNo: string | number; MasterOrderShippingName: string; MasterOrderShippingState: string; MasterOrderShippingZipCode: string; OrderInvoiceNo: string; ProductName: string; segment_type: "domestic_b2b"; totalNumOfBoxes: number;}>, ZodObject<{ MasterOrderPaymentMode: ZodNumber; MasterOrderPickUpLocation: ZodNumber; MasterOrderShippingAddress: ZodString; MasterOrderShippingAddress2: ZodOptional<ZodString>; MasterOrderShippingCity: ZodString; MasterOrderShippingCountry: ZodDefault<ZodString>; MasterOrderShippingEmail: ZodOptional<ZodString>; MasterOrderShippingLandmark: ZodOptional<ZodString>; MasterOrderShippingMobileNo: ZodUnion<[ZodString, ZodNumber]>; MasterOrderShippingName: ZodString; MasterOrderShippingState: ZodString; MasterOrderShippingZipCode: ZodString;} & { segment_type: ZodLiteral<"domestic_b2c">;} & { boxes: ZodArray<ZodObject<{ dimension_unit: ZodLiteral<"cm">; dimensions: ZodArray<ZodObject<{ breadth: ...; height: ...; length: ...; weight: ...; }, "strip", ZodTypeAny, { breadth: ...; height: ...; length: ...; weight: ...; }, { breadth: ...; height: ...; length: ...; weight: ...; }>, "many">; noOfBoxes: ZodNumber; products: ZodArray<ZodObject<{ amount: ...; categoryId: ...; collectableAmount: ...; hsn: ...; productName: ...; qty: ...; totalAmount: ...; }, "strip", ZodTypeAny, { amount: ...; categoryId: ...; collectableAmount: ...; hsn?: ...; productName: ...; qty: ...; totalAmount: ...; }, { amount: ...; categoryId: ...; collectableAmount: ...; hsn?: ...; productName: ...; qty: ...; totalAmount: ...; }>, "many">; weight_unit: ZodLiteral<"kg">; }, "strip", ZodTypeAny, { dimension_unit: "cm"; dimensions: { breadth: number; height: number; length: number; weight: number; }[]; noOfBoxes: number; products: { amount: ... | ...; categoryId: string; collectableAmount: ... | ...; hsn?: ... | ...; productName: string; qty: ... | ...; totalAmount: ... | ...; }[]; weight_unit: "kg"; }, { dimension_unit: "cm"; dimensions: { breadth: number; height: number; length: number; weight: number; }[]; noOfBoxes: number; products: { amount: ... | ...; categoryId: string; collectableAmount: ... | ...; hsn?: ... | ...; productName: string; qty: ... | ...; totalAmount: ... | ...; }[]; weight_unit: "kg"; }>, "many">; MasterOrderDate: ZodString; MasterOrderInvoiceAmount: ZodNumber; MasterOrderReturnLocation: ZodNumber; OrderInvoiceNo: ZodString; totalNumOfBoxes: ZodNumber;}, "strip", ZodTypeAny, { boxes: { dimension_unit: "cm"; dimensions: { breadth: number; height: number; length: number; weight: number; }[]; noOfBoxes: number; products: { amount: string | number; categoryId: string; collectableAmount: string | number; hsn?: string; productName: string; qty: string | number; totalAmount: string | number; }[]; weight_unit: "kg"; }[]; MasterOrderDate: string; MasterOrderInvoiceAmount: number; MasterOrderPaymentMode: number; MasterOrderPickUpLocation: number; MasterOrderReturnLocation: number; MasterOrderShippingAddress: string; MasterOrderShippingAddress2?: string; MasterOrderShippingCity: string; MasterOrderShippingCountry: string; MasterOrderShippingEmail?: string; MasterOrderShippingLandmark?: string; MasterOrderShippingMobileNo: string | number; MasterOrderShippingName: string; MasterOrderShippingState: string; MasterOrderShippingZipCode: string; OrderInvoiceNo: string; segment_type: "domestic_b2c"; totalNumOfBoxes: number;}, { boxes: { dimension_unit: "cm"; dimensions: { breadth: number; height: number; length: number; weight: number; }[]; noOfBoxes: number; products: { amount: string | number; categoryId: string; collectableAmount: string | number; hsn?: string; productName: string; qty: string | number; totalAmount: string | number; }[]; weight_unit: "kg"; }[]; MasterOrderDate: string; MasterOrderInvoiceAmount: number; MasterOrderPaymentMode: number; MasterOrderPickUpLocation: number; MasterOrderReturnLocation: number; MasterOrderShippingAddress: string; MasterOrderShippingAddress2?: string; MasterOrderShippingCity: string; MasterOrderShippingCountry?: string; MasterOrderShippingEmail?: string; MasterOrderShippingLandmark?: string; MasterOrderShippingMobileNo: string | number; MasterOrderShippingName: string; MasterOrderShippingState: string; MasterOrderShippingZipCode: string; OrderInvoiceNo: string; segment_type: "domestic_b2c"; totalNumOfBoxes: number;}>]>;Defined in: packages/sdk/src/core/types.ts:421
CreateOrderResponseSchema
Section titled “CreateOrderResponseSchema”const CreateOrderResponseSchema: ZodObject<{ data: ZodNullable<ZodObject<{ CustomGlobalOrderId: ZodString; }, "strip", ZodTypeAny, { CustomGlobalOrderId: string; }, { CustomGlobalOrderId: string; }>>; message: ZodString; status: ZodBoolean; status_code: ZodNumber;}, "strip", ZodTypeAny, { data: | { CustomGlobalOrderId: string; } | null; message: string; status: boolean; status_code: number;}, { data: | { CustomGlobalOrderId: string; } | null; message: string; status: boolean; status_code: number;}>;Defined in: packages/sdk/src/core/types.ts:436
DomesticB2BOrderRequestSchema
Section titled “DomesticB2BOrderRequestSchema”const DomesticB2BOrderRequestSchema: ZodObject<{ MasterOrderPaymentMode: ZodNumber; MasterOrderPickUpLocation: ZodNumber; MasterOrderShippingAddress: ZodString; MasterOrderShippingAddress2: ZodOptional<ZodString>; MasterOrderShippingCity: ZodString; MasterOrderShippingCountry: ZodDefault<ZodString>; MasterOrderShippingEmail: ZodOptional<ZodString>; MasterOrderShippingLandmark: ZodOptional<ZodString>; MasterOrderShippingMobileNo: ZodUnion<[ZodString, ZodNumber]>; MasterOrderShippingName: ZodString; MasterOrderShippingState: ZodString; MasterOrderShippingZipCode: ZodString;} & { segment_type: ZodLiteral<"domestic_b2b">;} & { boxes: ZodArray<ZodObject<{ dimension_unit: ZodLiteral<"cm">; dimensions: ZodArray<ZodObject<{ breadth: ZodNumber; height: ZodNumber; length: ZodNumber; weight: ZodNumber; }, "strip", ZodTypeAny, { breadth: number; height: number; length: number; weight: number; }, { breadth: number; height: number; length: number; weight: number; }>, "many">; noOfBoxes: ZodNumber; weight_unit: ZodLiteral<"kg">; }, "strip", ZodTypeAny, { dimension_unit: "cm"; dimensions: { breadth: number; height: number; length: number; weight: number; }[]; noOfBoxes: number; weight_unit: "kg"; }, { dimension_unit: "cm"; dimensions: { breadth: number; height: number; length: number; weight: number; }[]; noOfBoxes: number; weight_unit: "kg"; }>, "many">; MasterOrderCollectableAmount: ZodOptional<ZodString>; MasterOrderDate: ZodString; MasterOrderInvoiceAmount: ZodNumber; MasterOrderReturnLocation: ZodNumber; OrderInvoiceNo: ZodString; ProductName: ZodString; totalNumOfBoxes: ZodNumber;}, "strip", ZodTypeAny, { boxes: { dimension_unit: "cm"; dimensions: { breadth: number; height: number; length: number; weight: number; }[]; noOfBoxes: number; weight_unit: "kg"; }[]; MasterOrderCollectableAmount?: string; MasterOrderDate: string; MasterOrderInvoiceAmount: number; MasterOrderPaymentMode: number; MasterOrderPickUpLocation: number; MasterOrderReturnLocation: number; MasterOrderShippingAddress: string; MasterOrderShippingAddress2?: string; MasterOrderShippingCity: string; MasterOrderShippingCountry: string; MasterOrderShippingEmail?: string; MasterOrderShippingLandmark?: string; MasterOrderShippingMobileNo: string | number; MasterOrderShippingName: string; MasterOrderShippingState: string; MasterOrderShippingZipCode: string; OrderInvoiceNo: string; ProductName: string; segment_type: "domestic_b2b"; totalNumOfBoxes: number;}, { boxes: { dimension_unit: "cm"; dimensions: { breadth: number; height: number; length: number; weight: number; }[]; noOfBoxes: number; weight_unit: "kg"; }[]; MasterOrderCollectableAmount?: string; MasterOrderDate: string; MasterOrderInvoiceAmount: number; MasterOrderPaymentMode: number; MasterOrderPickUpLocation: number; MasterOrderReturnLocation: number; MasterOrderShippingAddress: string; MasterOrderShippingAddress2?: string; MasterOrderShippingCity: string; MasterOrderShippingCountry?: string; MasterOrderShippingEmail?: string; MasterOrderShippingLandmark?: string; MasterOrderShippingMobileNo: string | number; MasterOrderShippingName: string; MasterOrderShippingState: string; MasterOrderShippingZipCode: string; OrderInvoiceNo: string; ProductName: string; segment_type: "domestic_b2b"; totalNumOfBoxes: number;}>;Defined in: packages/sdk/src/core/types.ts:412
DomesticB2COrderRequestSchema
Section titled “DomesticB2COrderRequestSchema”const DomesticB2COrderRequestSchema: ZodObject<{ MasterOrderPaymentMode: ZodNumber; MasterOrderPickUpLocation: ZodNumber; MasterOrderShippingAddress: ZodString; MasterOrderShippingAddress2: ZodOptional<ZodString>; MasterOrderShippingCity: ZodString; MasterOrderShippingCountry: ZodDefault<ZodString>; MasterOrderShippingEmail: ZodOptional<ZodString>; MasterOrderShippingLandmark: ZodOptional<ZodString>; MasterOrderShippingMobileNo: ZodUnion<[ZodString, ZodNumber]>; MasterOrderShippingName: ZodString; MasterOrderShippingState: ZodString; MasterOrderShippingZipCode: ZodString;} & { segment_type: ZodLiteral<"domestic_b2c">;} & { boxes: ZodArray<ZodObject<{ dimension_unit: ZodLiteral<"cm">; dimensions: ZodArray<ZodObject<{ breadth: ZodNumber; height: ZodNumber; length: ZodNumber; weight: ZodNumber; }, "strip", ZodTypeAny, { breadth: number; height: number; length: number; weight: number; }, { breadth: number; height: number; length: number; weight: number; }>, "many">; noOfBoxes: ZodNumber; products: ZodArray<ZodObject<{ amount: ZodUnion<[..., ...]>; categoryId: ZodString; collectableAmount: ZodUnion<[..., ...]>; hsn: ZodOptional<ZodString>; productName: ZodString; qty: ZodUnion<[..., ...]>; totalAmount: ZodUnion<[..., ...]>; }, "strip", ZodTypeAny, { amount: string | number; categoryId: string; collectableAmount: string | number; hsn?: string; productName: string; qty: string | number; totalAmount: string | number; }, { amount: string | number; categoryId: string; collectableAmount: string | number; hsn?: string; productName: string; qty: string | number; totalAmount: string | number; }>, "many">; weight_unit: ZodLiteral<"kg">; }, "strip", ZodTypeAny, { dimension_unit: "cm"; dimensions: { breadth: number; height: number; length: number; weight: number; }[]; noOfBoxes: number; products: { amount: string | number; categoryId: string; collectableAmount: string | number; hsn?: string; productName: string; qty: string | number; totalAmount: string | number; }[]; weight_unit: "kg"; }, { dimension_unit: "cm"; dimensions: { breadth: number; height: number; length: number; weight: number; }[]; noOfBoxes: number; products: { amount: string | number; categoryId: string; collectableAmount: string | number; hsn?: string; productName: string; qty: string | number; totalAmount: string | number; }[]; weight_unit: "kg"; }>, "many">; MasterOrderDate: ZodString; MasterOrderInvoiceAmount: ZodNumber; MasterOrderReturnLocation: ZodNumber; OrderInvoiceNo: ZodString; totalNumOfBoxes: ZodNumber;}, "strip", ZodTypeAny, { boxes: { dimension_unit: "cm"; dimensions: { breadth: number; height: number; length: number; weight: number; }[]; noOfBoxes: number; products: { amount: string | number; categoryId: string; collectableAmount: string | number; hsn?: string; productName: string; qty: string | number; totalAmount: string | number; }[]; weight_unit: "kg"; }[]; MasterOrderDate: string; MasterOrderInvoiceAmount: number; MasterOrderPaymentMode: number; MasterOrderPickUpLocation: number; MasterOrderReturnLocation: number; MasterOrderShippingAddress: string; MasterOrderShippingAddress2?: string; MasterOrderShippingCity: string; MasterOrderShippingCountry: string; MasterOrderShippingEmail?: string; MasterOrderShippingLandmark?: string; MasterOrderShippingMobileNo: string | number; MasterOrderShippingName: string; MasterOrderShippingState: string; MasterOrderShippingZipCode: string; OrderInvoiceNo: string; segment_type: "domestic_b2c"; totalNumOfBoxes: number;}, { boxes: { dimension_unit: "cm"; dimensions: { breadth: number; height: number; length: number; weight: number; }[]; noOfBoxes: number; products: { amount: string | number; categoryId: string; collectableAmount: string | number; hsn?: string; productName: string; qty: string | number; totalAmount: string | number; }[]; weight_unit: "kg"; }[]; MasterOrderDate: string; MasterOrderInvoiceAmount: number; MasterOrderPaymentMode: number; MasterOrderPickUpLocation: number; MasterOrderReturnLocation: number; MasterOrderShippingAddress: string; MasterOrderShippingAddress2?: string; MasterOrderShippingCity: string; MasterOrderShippingCountry?: string; MasterOrderShippingEmail?: string; MasterOrderShippingLandmark?: string; MasterOrderShippingMobileNo: string | number; MasterOrderShippingName: string; MasterOrderShippingState: string; MasterOrderShippingZipCode: string; OrderInvoiceNo: string; segment_type: "domestic_b2c"; totalNumOfBoxes: number;}>;Defined in: packages/sdk/src/core/types.ts:416
DomesticRateSchema
Section titled “DomesticRateSchema”const DomesticRateSchema: ZodObject<{ base_freight: ZodNumber; charged_weight: ZodNumber; codCharges: ZodNumber; courierId: ZodString; courierImage: ZodNullable<ZodString>; courierName: ZodString; courierType: ZodString; destination: ZodString; emailNotificationCharge: ZodNumber; greenTax: ZodString; handlingCharge: ZodString; kycCurrency: ZodString; lrCost: ZodString; oda: ZodString; pickup: ZodString; pickup_Charge: ZodString; planName: ZodString; riskCharge: ZodString; riskCharges: ZodArray<ZodObject<{ chargeValue: ZodString; isRisk: ZodBoolean; name: ZodString; typeId: ZodNumber; }, "strip", ZodTypeAny, { chargeValue: string; isRisk: boolean; name: string; typeId: number; }, { chargeValue: string; isRisk: boolean; name: string; typeId: number; }>, "many">; riskTypeName: ZodString; smsNotificationCharge: ZodNumber; state_Tax: ZodUnion<[ZodNumber, ZodString]>; tat: ZodNumber; toPay: ZodString; total: ZodString; warai_Charge: ZodNumber; weight_unit: ZodString; whatsappNotificationCharge: ZodNumber; zone: ZodString;}, "strip", ZodTypeAny, { base_freight: number; charged_weight: number; codCharges: number; courierId: string; courierImage: string | null; courierName: string; courierType: string; destination: string; emailNotificationCharge: number; greenTax: string; handlingCharge: string; kycCurrency: string; lrCost: string; oda: string; pickup: string; pickup_Charge: string; planName: string; riskCharge: string; riskCharges: { chargeValue: string; isRisk: boolean; name: string; typeId: number; }[]; riskTypeName: string; smsNotificationCharge: number; state_Tax: string | number; tat: number; toPay: string; total: string; warai_Charge: number; weight_unit: string; whatsappNotificationCharge: number; zone: string;}, { base_freight: number; charged_weight: number; codCharges: number; courierId: string; courierImage: string | null; courierName: string; courierType: string; destination: string; emailNotificationCharge: number; greenTax: string; handlingCharge: string; kycCurrency: string; lrCost: string; oda: string; pickup: string; pickup_Charge: string; planName: string; riskCharge: string; riskCharges: { chargeValue: string; isRisk: boolean; name: string; typeId: number; }[]; riskTypeName: string; smsNotificationCharge: number; state_Tax: string | number; tat: number; toPay: string; total: string; warai_Charge: number; weight_unit: string; whatsappNotificationCharge: number; zone: string;}>;Defined in: packages/sdk/src/core/types.ts:461
DownloadDocumentDataSchema
Section titled “DownloadDocumentDataSchema”const DownloadDocumentDataSchema: ZodObject<{ AttachmentData: ZodString; File_extention: ZodString;}, "strip", ZodTypeAny, { AttachmentData: string; File_extention: string;}, { AttachmentData: string; File_extention: string;}>;Defined in: packages/sdk/src/core/types.ts:735
DownloadDocumentRequestSchema
Section titled “DownloadDocumentRequestSchema”const DownloadDocumentRequestSchema: ZodObject<{ CustomGlobalOrderId: ZodString; document_type: ZodEnum<["invoice", "label", "ewaybill", "manifest"]>;}, "strip", ZodTypeAny, { CustomGlobalOrderId: string; document_type: "invoice" | "label" | "ewaybill" | "manifest";}, { CustomGlobalOrderId: string; document_type: "invoice" | "label" | "ewaybill" | "manifest";}>;Defined in: packages/sdk/src/core/types.ts:728
DownloadDocumentResponseSchema
Section titled “DownloadDocumentResponseSchema”const DownloadDocumentResponseSchema: ZodObject<{ data: ZodNullable<ZodObject<{ AttachmentData: ZodString; File_extention: ZodString; }, "strip", ZodTypeAny, { AttachmentData: string; File_extention: string; }, { AttachmentData: string; File_extention: string; }>>; message: ZodString; status: ZodBoolean; status_code: ZodNumber;}, "strip", ZodTypeAny, { data: | { AttachmentData: string; File_extention: string; } | null; message: string; status: boolean; status_code: number;}, { data: | { AttachmentData: string; File_extention: string; } | null; message: string; status: boolean; status_code: number;}>;Defined in: packages/sdk/src/core/types.ts:740
GetWarehouseListRequestSchema
Section titled “GetWarehouseListRequestSchema”const GetWarehouseListRequestSchema: ZodObject<{ filter_type: ZodOptional<ZodEnum<["warehouse_name", "warehouse_phone", "warehouse_pin", "warehouse_contact_person"]>>; filter_value: ZodOptional<ZodString>; page: ZodString; perPage: ZodString; segment_type: ZodEnum<["hyperlocal", "local"]>; status: ZodOptional<ZodString>;}, "strip", ZodTypeAny, { filter_type?: | "warehouse_name" | "warehouse_phone" | "warehouse_pin" | "warehouse_contact_person"; filter_value?: string; page: string; perPage: string; segment_type: "hyperlocal" | "local"; status?: string;}, { filter_type?: | "warehouse_name" | "warehouse_phone" | "warehouse_pin" | "warehouse_contact_person"; filter_value?: string; page: string; perPage: string; segment_type: "hyperlocal" | "local"; status?: string;}>;Defined in: packages/sdk/src/core/types.ts:154
HyperlocalInfoSchema
Section titled “HyperlocalInfoSchema”const HyperlocalInfoSchema: ZodObject<{ addressType: ZodString; latitude: ZodString; longitude: ZodString; mapLocationId: ZodNullable<ZodString>; type: ZodString;}, "strip", ZodTypeAny, { addressType: string; latitude: string; longitude: string; mapLocationId: string | null; type: string;}, { addressType: string; latitude: string; longitude: string; mapLocationId: string | null; type: string;}>;Defined in: packages/sdk/src/core/types.ts:165
HyperlocalOrderRequestSchema
Section titled “HyperlocalOrderRequestSchema”const HyperlocalOrderRequestSchema: ZodObject<{ MasterOrderPaymentMode: ZodNumber; MasterOrderPickUpLocation: ZodNumber; MasterOrderShippingAddress: ZodString; MasterOrderShippingAddress2: ZodOptional<ZodString>; MasterOrderShippingCity: ZodString; MasterOrderShippingCountry: ZodDefault<ZodString>; MasterOrderShippingEmail: ZodOptional<ZodString>; MasterOrderShippingLandmark: ZodOptional<ZodString>; MasterOrderShippingMobileNo: ZodUnion<[ZodString, ZodNumber]>; MasterOrderShippingName: ZodString; MasterOrderShippingState: ZodString; MasterOrderShippingZipCode: ZodString;} & { segment_type: ZodLiteral<"hyperlocal">;} & { additional_comments: ZodOptional<ZodString>; boxes: ZodObject<{ dimension_unit: ZodLiteral<"cm">; dimensions: ZodArray<ZodObject<{ breadth: ZodOptional<ZodNumber>; height: ZodOptional<ZodNumber>; length: ZodOptional<ZodNumber>; weight: ZodNumber; }, "strip", ZodTypeAny, { breadth?: number; height?: number; length?: number; weight: number; }, { breadth?: number; height?: number; length?: number; weight: number; }>, "many">; weight_unit: ZodLiteral<"kg">; }, "strip", ZodTypeAny, { dimension_unit: "cm"; dimensions: { breadth?: number; height?: number; length?: number; weight: number; }[]; weight_unit: "kg"; }, { dimension_unit: "cm"; dimensions: { breadth?: number; height?: number; length?: number; weight: number; }[]; weight_unit: "kg"; }>; MasterOrderInvoiceAmount: ZodNumber; MasterOrderShippingLatitude: ZodString; MasterOrderShippingLongitude: ZodString; OrderInvoiceNo: ZodOptional<ZodString>; PackageTypeId: ZodNumber; pickup_instructions: ZodOptional<ZodString>;}, "strip", ZodTypeAny, { additional_comments?: string; boxes: { dimension_unit: "cm"; dimensions: { breadth?: number; height?: number; length?: number; weight: number; }[]; weight_unit: "kg"; }; MasterOrderInvoiceAmount: number; MasterOrderPaymentMode: number; MasterOrderPickUpLocation: number; MasterOrderShippingAddress: string; MasterOrderShippingAddress2?: string; MasterOrderShippingCity: string; MasterOrderShippingCountry: string; MasterOrderShippingEmail?: string; MasterOrderShippingLandmark?: string; MasterOrderShippingLatitude: string; MasterOrderShippingLongitude: string; MasterOrderShippingMobileNo: string | number; MasterOrderShippingName: string; MasterOrderShippingState: string; MasterOrderShippingZipCode: string; OrderInvoiceNo?: string; PackageTypeId: number; pickup_instructions?: string; segment_type: "hyperlocal";}, { additional_comments?: string; boxes: { dimension_unit: "cm"; dimensions: { breadth?: number; height?: number; length?: number; weight: number; }[]; weight_unit: "kg"; }; MasterOrderInvoiceAmount: number; MasterOrderPaymentMode: number; MasterOrderPickUpLocation: number; MasterOrderShippingAddress: string; MasterOrderShippingAddress2?: string; MasterOrderShippingCity: string; MasterOrderShippingCountry?: string; MasterOrderShippingEmail?: string; MasterOrderShippingLandmark?: string; MasterOrderShippingLatitude: string; MasterOrderShippingLongitude: string; MasterOrderShippingMobileNo: string | number; MasterOrderShippingName: string; MasterOrderShippingState: string; MasterOrderShippingZipCode: string; OrderInvoiceNo?: string; PackageTypeId: number; pickup_instructions?: string; segment_type: "hyperlocal";}>;Defined in: packages/sdk/src/core/types.ts:408
HyperlocalRateSchema
Section titled “HyperlocalRateSchema”const HyperlocalRateSchema: ZodObject<{ base_freight: ZodNumber; capacity: ZodString; courierId: ZodNumber; courierImage: ZodString; courierName: ZodString; currency: ZodString; gst_amount: ZodNumber; planName: ZodString; total_freight: ZodNumber; vehicle_type: ZodString;}, "strip", ZodTypeAny, { base_freight: number; capacity: string; courierId: number; courierImage: string; courierName: string; currency: string; gst_amount: number; planName: string; total_freight: number; vehicle_type: string;}, { base_freight: number; capacity: string; courierId: number; courierImage: string; courierName: string; currency: string; gst_amount: number; planName: string; total_freight: number; vehicle_type: string;}>;Defined in: packages/sdk/src/core/types.ts:447
LoginDataSchema
Section titled “LoginDataSchema”const LoginDataSchema: ZodObject<{ api_master_client_account: ZodObject<{ access_key: ZodString; access_key_generated_date: ZodString; created_date: ZodString; is_account_enabled: ZodUnion<[ZodString, ZodBoolean]>; updated_date: ZodString; }, "strip", ZodTypeAny, { access_key: string; access_key_generated_date: string; created_date: string; is_account_enabled: string | boolean; updated_date: string; }, { access_key: string; access_key_generated_date: string; created_date: string; is_account_enabled: string | boolean; updated_date: string; }>; countryname: ZodString; EmailID: ZodString; firstName: ZodString; is_outbound_service_enabled: ZodUnion<[ZodString, ZodBoolean]>; IsEmailVerifed: ZodUnion<[ZodString, ZodBoolean]>; lastName: ZodString; mobileNumber: ZodString; token: ZodString; tokenExpiringAt: ZodString; userWallet: ZodObject<{ Balance: ZodUnion<[ZodString, ZodNumber]>; kycCurrency: ZodString; }, "strip", ZodTypeAny, { Balance: string | number; kycCurrency: string; }, { Balance: string | number; kycCurrency: string; }>;}, "strip", ZodTypeAny, { api_master_client_account: { access_key: string; access_key_generated_date: string; created_date: string; is_account_enabled: string | boolean; updated_date: string; }; countryname: string; EmailID: string; firstName: string; is_outbound_service_enabled: string | boolean; IsEmailVerifed: string | boolean; lastName: string; mobileNumber: string; token: string; tokenExpiringAt: string; userWallet: { Balance: string | number; kycCurrency: string; };}, { api_master_client_account: { access_key: string; access_key_generated_date: string; created_date: string; is_account_enabled: string | boolean; updated_date: string; }; countryname: string; EmailID: string; firstName: string; is_outbound_service_enabled: string | boolean; IsEmailVerifed: string | boolean; lastName: string; mobileNumber: string; token: string; tokenExpiringAt: string; userWallet: { Balance: string | number; kycCurrency: string; };}>;Defined in: packages/sdk/src/core/types.ts:76
LoginRequestSchema
Section titled “LoginRequestSchema”const LoginRequestSchema: ZodObject<{ access_key: ZodString; password: ZodString; username: ZodString;}, "strip", ZodTypeAny, { access_key: string; password: string; username: string;}, { access_key: string; password: string; username: string;}>;Defined in: packages/sdk/src/core/types.ts:68
LoginResponseSchema
Section titled “LoginResponseSchema”const LoginResponseSchema: ZodObject<{ data: ZodNullable<ZodObject<{ api_master_client_account: ZodObject<{ access_key: ZodString; access_key_generated_date: ZodString; created_date: ZodString; is_account_enabled: ZodUnion<[ZodString, ZodBoolean]>; updated_date: ZodString; }, "strip", ZodTypeAny, { access_key: string; access_key_generated_date: string; created_date: string; is_account_enabled: string | boolean; updated_date: string; }, { access_key: string; access_key_generated_date: string; created_date: string; is_account_enabled: string | boolean; updated_date: string; }>; countryname: ZodString; EmailID: ZodString; firstName: ZodString; is_outbound_service_enabled: ZodUnion<[ZodString, ZodBoolean]>; IsEmailVerifed: ZodUnion<[ZodString, ZodBoolean]>; lastName: ZodString; mobileNumber: ZodString; token: ZodString; tokenExpiringAt: ZodString; userWallet: ZodObject<{ Balance: ZodUnion<[ZodString, ZodNumber]>; kycCurrency: ZodString; }, "strip", ZodTypeAny, { Balance: string | number; kycCurrency: string; }, { Balance: string | number; kycCurrency: string; }>; }, "strip", ZodTypeAny, { api_master_client_account: { access_key: string; access_key_generated_date: string; created_date: string; is_account_enabled: string | boolean; updated_date: string; }; countryname: string; EmailID: string; firstName: string; is_outbound_service_enabled: string | boolean; IsEmailVerifed: string | boolean; lastName: string; mobileNumber: string; token: string; tokenExpiringAt: string; userWallet: { Balance: string | number; kycCurrency: string; }; }, { api_master_client_account: { access_key: string; access_key_generated_date: string; created_date: string; is_account_enabled: string | boolean; updated_date: string; }; countryname: string; EmailID: string; firstName: string; is_outbound_service_enabled: string | boolean; IsEmailVerifed: string | boolean; lastName: string; mobileNumber: string; token: string; tokenExpiringAt: string; userWallet: { Balance: string | number; kycCurrency: string; }; }>>; message: ZodString; status: ZodBoolean; status_code: ZodNumber;}, "strip", ZodTypeAny, { data: | { api_master_client_account: { access_key: string; access_key_generated_date: string; created_date: string; is_account_enabled: string | boolean; updated_date: string; }; countryname: string; EmailID: string; firstName: string; is_outbound_service_enabled: string | boolean; IsEmailVerifed: string | boolean; lastName: string; mobileNumber: string; token: string; tokenExpiringAt: string; userWallet: { Balance: string | number; kycCurrency: string; }; } | null; message: string; status: boolean; status_code: number;}, { data: | { api_master_client_account: { access_key: string; access_key_generated_date: string; created_date: string; is_account_enabled: string | boolean; updated_date: string; }; countryname: string; EmailID: string; firstName: string; is_outbound_service_enabled: string | boolean; IsEmailVerifed: string | boolean; lastName: string; mobileNumber: string; token: string; tokenExpiringAt: string; userWallet: { Balance: string | number; kycCurrency: string; }; } | null; message: string; status: boolean; status_code: number;}>;Defined in: packages/sdk/src/core/types.ts:99
OrderDetailBoxSchema
Section titled “OrderDetailBoxSchema”const OrderDetailBoxSchema: ZodObject<{ parameterCategory: ZodString; parameterName: ZodString; parameterValue: ZodString;}, "strip", ZodTypeAny, { parameterCategory: string; parameterName: string; parameterValue: string;}, { parameterCategory: string; parameterName: string; parameterValue: string;}>;Defined in: packages/sdk/src/core/types.ts:623
OrderDetailConsigneeSchema
Section titled “OrderDetailConsigneeSchema”const OrderDetailConsigneeSchema: ZodObject<{ billingAddress: ZodString; billingAddress2: ZodString; companyEmailId: ZodNullable<ZodString>; companyMobile: ZodString; companyName: ZodString; consigneeBusinessType: ZodString; landmark: ZodString; orderCity: ZodString; orderCountry: ZodString; orderPin: ZodString; orderState: ZodString;}, "strip", ZodTypeAny, { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consigneeBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string;}, { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consigneeBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string;}>;Defined in: packages/sdk/src/core/types.ts:654
OrderDetailConsignorSchema
Section titled “OrderDetailConsignorSchema”const OrderDetailConsignorSchema: ZodObject<{ billingAddress: ZodString; billingAddress2: ZodString; companyEmailId: ZodNullable<ZodString>; companyMobile: ZodString; companyName: ZodString; consignorBusinessType: ZodString; landmark: ZodString; orderCity: ZodString; orderCountry: ZodString; orderPin: ZodString; orderState: ZodString;}, "strip", ZodTypeAny, { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consignorBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string;}, { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consignorBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string;}>;Defined in: packages/sdk/src/core/types.ts:640
OrderDetailDataSchema
Section titled “OrderDetailDataSchema”const OrderDetailDataSchema: ZodObject<{ getOrderDetails: ZodObject<{ AwbNumber: ZodString; box_dimensions: ZodArray<ZodObject<{ breadth: ZodString; each_box_weight: ZodString; height: ZodString; length: ZodString; no_of_box: ZodString; }, "strip", ZodTypeAny, { breadth: string; each_box_weight: string; height: string; length: string; no_of_box: string; }, { breadth: string; each_box_weight: string; height: string; length: string; no_of_box: string; }>, "many">; collectableAmount: ZodString; consignee: ZodObject<{ billingAddress: ZodString; billingAddress2: ZodString; companyEmailId: ZodNullable<ZodString>; companyMobile: ZodString; companyName: ZodString; consigneeBusinessType: ZodString; landmark: ZodString; orderCity: ZodString; orderCountry: ZodString; orderPin: ZodString; orderState: ZodString; }, "strip", ZodTypeAny, { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consigneeBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }, { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consigneeBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }>; consigneeBilling: ZodObject<{ billingAddress: ZodString; billingAddress2: ZodString; companyEmailId: ZodNullable<ZodString>; companyMobile: ZodString; companyName: ZodString; consigneeBusinessType: ZodString; landmark: ZodString; orderCity: ZodString; orderCountry: ZodString; orderPin: ZodString; orderState: ZodString; }, "strip", ZodTypeAny, { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consigneeBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }, { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consigneeBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }>; consignor: ZodObject<{ billingAddress: ZodString; billingAddress2: ZodString; companyEmailId: ZodNullable<ZodString>; companyMobile: ZodString; companyName: ZodString; consignorBusinessType: ZodString; landmark: ZodString; orderCity: ZodString; orderCountry: ZodString; orderPin: ZodString; orderState: ZodString; }, "strip", ZodTypeAny, { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consignorBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }, { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consignorBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }>; consignorType: ZodString; created_at: ZodString; dimensions: ZodArray<ZodString, "many">; InvoiceCurrency: ZodString; InvoiceNumber: ZodString; InvoiceStatus: ZodString; InvoiceStatusId: ZodString; MasterCustomInvoiceId: ZodNullable<ZodString>; MasterCustomOrderId: ZodString; MasterOrderCurrency: ZodString; MasterOrderShippingZipCode: ZodString; orderDate: ZodString; PackageTypeId: ZodString; PackageTypeName: ZodString; PaymentMode: ZodString; pickupDetail: ZodObject<{ warehouseAddressLandMark: ZodString; warehouseAddressLine1: ZodString; warehouseAddressLine2: ZodString; warehouseAddressPhone: ZodString; warehouseCity: ZodString; warehouseContactPerson: ZodString; warehouseCountry: ZodString; warehouseName: ZodString; warehousePin: ZodString; warehouseState: ZodString; }, "strip", ZodTypeAny, { warehouseAddressLandMark: string; warehouseAddressLine1: string; warehouseAddressLine2: string; warehouseAddressPhone: string; warehouseCity: string; warehouseContactPerson: string; warehouseCountry: string; warehouseName: string; warehousePin: string; warehouseState: string; }, { warehouseAddressLandMark: string; warehouseAddressLine1: string; warehouseAddressLine2: string; warehouseAddressPhone: string; warehouseCity: string; warehouseContactPerson: string; warehouseCountry: string; warehouseName: string; warehousePin: string; warehouseState: string; }>; product_details: ZodArray<ZodObject<{ box_details: ZodArray<ZodObject<{ parameterCategory: ZodString; parameterName: ZodString; parameterValue: ZodString; }, "strip", ZodTypeAny, { parameterCategory: string; parameterName: string; parameterValue: string; }, { parameterCategory: string; parameterName: string; parameterValue: string; }>, "many">; detailsIdentifier: ZodString; numberOfProducts: ZodString; products: ZodArray<ZodUnknown, "many">; weight: ZodObject<{ unit: ZodString; value: ZodString; }, "strip", ZodTypeAny, { unit: string; value: string; }, { unit: string; value: string; }>; }, "strip", ZodTypeAny, { box_details: { parameterCategory: string; parameterName: string; parameterValue: string; }[]; detailsIdentifier: string; numberOfProducts: string; products: unknown[]; weight: { unit: string; value: string; }; }, { box_details: { parameterCategory: string; parameterName: string; parameterValue: string; }[]; detailsIdentifier: string; numberOfProducts: string; products: unknown[]; weight: { unit: string; value: string; }; }>, "many">; products_name: ZodString; status: ZodString; status_id: ZodString; totalInvoiceAmount: ZodString; totalNoOfBoxes: ZodNullable<ZodNumber>; updated_at: ZodString; weight: ZodString; weightUnit: ZodString; }, "strip", ZodTypeAny, { AwbNumber: string; box_dimensions: { breadth: string; each_box_weight: string; height: string; length: string; no_of_box: string; }[]; collectableAmount: string; consignee: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consigneeBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consigneeBilling: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consigneeBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consignor: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consignorBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consignorType: string; created_at: string; dimensions: string[]; InvoiceCurrency: string; InvoiceNumber: string; InvoiceStatus: string; InvoiceStatusId: string; MasterCustomInvoiceId: string | null; MasterCustomOrderId: string; MasterOrderCurrency: string; MasterOrderShippingZipCode: string; orderDate: string; PackageTypeId: string; PackageTypeName: string; PaymentMode: string; pickupDetail: { warehouseAddressLandMark: string; warehouseAddressLine1: string; warehouseAddressLine2: string; warehouseAddressPhone: string; warehouseCity: string; warehouseContactPerson: string; warehouseCountry: string; warehouseName: string; warehousePin: string; warehouseState: string; }; product_details: { box_details: { parameterCategory: string; parameterName: string; parameterValue: string; }[]; detailsIdentifier: string; numberOfProducts: string; products: unknown[]; weight: { unit: string; value: string; }; }[]; products_name: string; status: string; status_id: string; totalInvoiceAmount: string; totalNoOfBoxes: number | null; updated_at: string; weight: string; weightUnit: string; }, { AwbNumber: string; box_dimensions: { breadth: string; each_box_weight: string; height: string; length: string; no_of_box: string; }[]; collectableAmount: string; consignee: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consigneeBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consigneeBilling: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consigneeBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consignor: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consignorBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consignorType: string; created_at: string; dimensions: string[]; InvoiceCurrency: string; InvoiceNumber: string; InvoiceStatus: string; InvoiceStatusId: string; MasterCustomInvoiceId: string | null; MasterCustomOrderId: string; MasterOrderCurrency: string; MasterOrderShippingZipCode: string; orderDate: string; PackageTypeId: string; PackageTypeName: string; PaymentMode: string; pickupDetail: { warehouseAddressLandMark: string; warehouseAddressLine1: string; warehouseAddressLine2: string; warehouseAddressPhone: string; warehouseCity: string; warehouseContactPerson: string; warehouseCountry: string; warehouseName: string; warehousePin: string; warehouseState: string; }; product_details: { box_details: { parameterCategory: string; parameterName: string; parameterValue: string; }[]; detailsIdentifier: string; numberOfProducts: string; products: unknown[]; weight: { unit: string; value: string; }; }[]; products_name: string; status: string; status_id: string; totalInvoiceAmount: string; totalNoOfBoxes: number | null; updated_at: string; weight: string; weightUnit: string; }>; segment_type: ZodString;}, "strip", ZodTypeAny, { getOrderDetails: { AwbNumber: string; box_dimensions: { breadth: string; each_box_weight: string; height: string; length: string; no_of_box: string; }[]; collectableAmount: string; consignee: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consigneeBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consigneeBilling: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consigneeBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consignor: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consignorBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consignorType: string; created_at: string; dimensions: string[]; InvoiceCurrency: string; InvoiceNumber: string; InvoiceStatus: string; InvoiceStatusId: string; MasterCustomInvoiceId: string | null; MasterCustomOrderId: string; MasterOrderCurrency: string; MasterOrderShippingZipCode: string; orderDate: string; PackageTypeId: string; PackageTypeName: string; PaymentMode: string; pickupDetail: { warehouseAddressLandMark: string; warehouseAddressLine1: string; warehouseAddressLine2: string; warehouseAddressPhone: string; warehouseCity: string; warehouseContactPerson: string; warehouseCountry: string; warehouseName: string; warehousePin: string; warehouseState: string; }; product_details: { box_details: { parameterCategory: string; parameterName: string; parameterValue: string; }[]; detailsIdentifier: string; numberOfProducts: string; products: unknown[]; weight: { unit: string; value: string; }; }[]; products_name: string; status: string; status_id: string; totalInvoiceAmount: string; totalNoOfBoxes: number | null; updated_at: string; weight: string; weightUnit: string; }; segment_type: string;}, { getOrderDetails: { AwbNumber: string; box_dimensions: { breadth: string; each_box_weight: string; height: string; length: string; no_of_box: string; }[]; collectableAmount: string; consignee: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consigneeBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consigneeBilling: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consigneeBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consignor: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consignorBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consignorType: string; created_at: string; dimensions: string[]; InvoiceCurrency: string; InvoiceNumber: string; InvoiceStatus: string; InvoiceStatusId: string; MasterCustomInvoiceId: string | null; MasterCustomOrderId: string; MasterOrderCurrency: string; MasterOrderShippingZipCode: string; orderDate: string; PackageTypeId: string; PackageTypeName: string; PaymentMode: string; pickupDetail: { warehouseAddressLandMark: string; warehouseAddressLine1: string; warehouseAddressLine2: string; warehouseAddressPhone: string; warehouseCity: string; warehouseContactPerson: string; warehouseCountry: string; warehouseName: string; warehousePin: string; warehouseState: string; }; product_details: { box_details: { parameterCategory: string; parameterName: string; parameterValue: string; }[]; detailsIdentifier: string; numberOfProducts: string; products: unknown[]; weight: { unit: string; value: string; }; }[]; products_name: string; status: string; status_id: string; totalInvoiceAmount: string; totalNoOfBoxes: number | null; updated_at: string; weight: string; weightUnit: string; }; segment_type: string;}>;Defined in: packages/sdk/src/core/types.ts:681
OrderDetailPickupSchema
Section titled “OrderDetailPickupSchema”const OrderDetailPickupSchema: ZodObject<{ warehouseAddressLandMark: ZodString; warehouseAddressLine1: ZodString; warehouseAddressLine2: ZodString; warehouseAddressPhone: ZodString; warehouseCity: ZodString; warehouseContactPerson: ZodString; warehouseCountry: ZodString; warehouseName: ZodString; warehousePin: ZodString; warehouseState: ZodString;}, "strip", ZodTypeAny, { warehouseAddressLandMark: string; warehouseAddressLine1: string; warehouseAddressLine2: string; warehouseAddressPhone: string; warehouseCity: string; warehouseContactPerson: string; warehouseCountry: string; warehouseName: string; warehousePin: string; warehouseState: string;}, { warehouseAddressLandMark: string; warehouseAddressLine1: string; warehouseAddressLine2: string; warehouseAddressPhone: string; warehouseCity: string; warehouseContactPerson: string; warehouseCountry: string; warehouseName: string; warehousePin: string; warehouseState: string;}>;Defined in: packages/sdk/src/core/types.ts:668
OrderDetailProductSchema
Section titled “OrderDetailProductSchema”const OrderDetailProductSchema: ZodObject<{ box_details: ZodArray<ZodObject<{ parameterCategory: ZodString; parameterName: ZodString; parameterValue: ZodString; }, "strip", ZodTypeAny, { parameterCategory: string; parameterName: string; parameterValue: string; }, { parameterCategory: string; parameterName: string; parameterValue: string; }>, "many">; detailsIdentifier: ZodString; numberOfProducts: ZodString; products: ZodArray<ZodUnknown, "many">; weight: ZodObject<{ unit: ZodString; value: ZodString; }, "strip", ZodTypeAny, { unit: string; value: string; }, { unit: string; value: string; }>;}, "strip", ZodTypeAny, { box_details: { parameterCategory: string; parameterName: string; parameterValue: string; }[]; detailsIdentifier: string; numberOfProducts: string; products: unknown[]; weight: { unit: string; value: string; };}, { box_details: { parameterCategory: string; parameterName: string; parameterValue: string; }[]; detailsIdentifier: string; numberOfProducts: string; products: unknown[]; weight: { unit: string; value: string; };}>;Defined in: packages/sdk/src/core/types.ts:629
OrderDetailRequestSchema
Section titled “OrderDetailRequestSchema”const OrderDetailRequestSchema: ZodObject<{ MasterCustomOrderId: ZodString;}, "strip", ZodTypeAny, { MasterCustomOrderId: string;}, { MasterCustomOrderId: string;}>;Defined in: packages/sdk/src/core/types.ts:617
OrderDetailResponseSchema
Section titled “OrderDetailResponseSchema”const OrderDetailResponseSchema: ZodObject<{ data: ZodNullable<ZodObject<{ getOrderDetails: ZodObject<{ AwbNumber: ZodString; box_dimensions: ZodArray<ZodObject<{ breadth: ZodString; each_box_weight: ZodString; height: ZodString; length: ZodString; no_of_box: ZodString; }, "strip", ZodTypeAny, { breadth: string; each_box_weight: string; height: string; length: string; no_of_box: string; }, { breadth: string; each_box_weight: string; height: string; length: string; no_of_box: string; }>, "many">; collectableAmount: ZodString; consignee: ZodObject<{ billingAddress: ZodString; billingAddress2: ZodString; companyEmailId: ZodNullable<ZodString>; companyMobile: ZodString; companyName: ZodString; consigneeBusinessType: ZodString; landmark: ZodString; orderCity: ZodString; orderCountry: ZodString; orderPin: ZodString; orderState: ZodString; }, "strip", ZodTypeAny, { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consigneeBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }, { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consigneeBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }>; consigneeBilling: ZodObject<{ billingAddress: ZodString; billingAddress2: ZodString; companyEmailId: ZodNullable<ZodString>; companyMobile: ZodString; companyName: ZodString; consigneeBusinessType: ZodString; landmark: ZodString; orderCity: ZodString; orderCountry: ZodString; orderPin: ZodString; orderState: ZodString; }, "strip", ZodTypeAny, { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consigneeBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }, { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consigneeBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }>; consignor: ZodObject<{ billingAddress: ZodString; billingAddress2: ZodString; companyEmailId: ZodNullable<ZodString>; companyMobile: ZodString; companyName: ZodString; consignorBusinessType: ZodString; landmark: ZodString; orderCity: ZodString; orderCountry: ZodString; orderPin: ZodString; orderState: ZodString; }, "strip", ZodTypeAny, { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consignorBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }, { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consignorBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }>; consignorType: ZodString; created_at: ZodString; dimensions: ZodArray<ZodString, "many">; InvoiceCurrency: ZodString; InvoiceNumber: ZodString; InvoiceStatus: ZodString; InvoiceStatusId: ZodString; MasterCustomInvoiceId: ZodNullable<ZodString>; MasterCustomOrderId: ZodString; MasterOrderCurrency: ZodString; MasterOrderShippingZipCode: ZodString; orderDate: ZodString; PackageTypeId: ZodString; PackageTypeName: ZodString; PaymentMode: ZodString; pickupDetail: ZodObject<{ warehouseAddressLandMark: ZodString; warehouseAddressLine1: ZodString; warehouseAddressLine2: ZodString; warehouseAddressPhone: ZodString; warehouseCity: ZodString; warehouseContactPerson: ZodString; warehouseCountry: ZodString; warehouseName: ZodString; warehousePin: ZodString; warehouseState: ZodString; }, "strip", ZodTypeAny, { warehouseAddressLandMark: string; warehouseAddressLine1: string; warehouseAddressLine2: string; warehouseAddressPhone: string; warehouseCity: string; warehouseContactPerson: string; warehouseCountry: string; warehouseName: string; warehousePin: string; warehouseState: string; }, { warehouseAddressLandMark: string; warehouseAddressLine1: string; warehouseAddressLine2: string; warehouseAddressPhone: string; warehouseCity: string; warehouseContactPerson: string; warehouseCountry: string; warehouseName: string; warehousePin: string; warehouseState: string; }>; product_details: ZodArray<ZodObject<{ box_details: ZodArray<..., ...>; detailsIdentifier: ZodString; numberOfProducts: ZodString; products: ZodArray<..., ...>; weight: ZodObject<..., ..., ..., ..., ...>; }, "strip", ZodTypeAny, { box_details: ...[]; detailsIdentifier: string; numberOfProducts: string; products: ...[]; weight: { unit: ...; value: ...; }; }, { box_details: ...[]; detailsIdentifier: string; numberOfProducts: string; products: ...[]; weight: { unit: ...; value: ...; }; }>, "many">; products_name: ZodString; status: ZodString; status_id: ZodString; totalInvoiceAmount: ZodString; totalNoOfBoxes: ZodNullable<ZodNumber>; updated_at: ZodString; weight: ZodString; weightUnit: ZodString; }, "strip", ZodTypeAny, { AwbNumber: string; box_dimensions: { breadth: string; each_box_weight: string; height: string; length: string; no_of_box: string; }[]; collectableAmount: string; consignee: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consigneeBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consigneeBilling: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consigneeBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consignor: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consignorBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consignorType: string; created_at: string; dimensions: string[]; InvoiceCurrency: string; InvoiceNumber: string; InvoiceStatus: string; InvoiceStatusId: string; MasterCustomInvoiceId: string | null; MasterCustomOrderId: string; MasterOrderCurrency: string; MasterOrderShippingZipCode: string; orderDate: string; PackageTypeId: string; PackageTypeName: string; PaymentMode: string; pickupDetail: { warehouseAddressLandMark: string; warehouseAddressLine1: string; warehouseAddressLine2: string; warehouseAddressPhone: string; warehouseCity: string; warehouseContactPerson: string; warehouseCountry: string; warehouseName: string; warehousePin: string; warehouseState: string; }; product_details: { box_details: { parameterCategory: ...; parameterName: ...; parameterValue: ...; }[]; detailsIdentifier: string; numberOfProducts: string; products: unknown[]; weight: { unit: string; value: string; }; }[]; products_name: string; status: string; status_id: string; totalInvoiceAmount: string; totalNoOfBoxes: number | null; updated_at: string; weight: string; weightUnit: string; }, { AwbNumber: string; box_dimensions: { breadth: string; each_box_weight: string; height: string; length: string; no_of_box: string; }[]; collectableAmount: string; consignee: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consigneeBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consigneeBilling: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consigneeBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consignor: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consignorBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consignorType: string; created_at: string; dimensions: string[]; InvoiceCurrency: string; InvoiceNumber: string; InvoiceStatus: string; InvoiceStatusId: string; MasterCustomInvoiceId: string | null; MasterCustomOrderId: string; MasterOrderCurrency: string; MasterOrderShippingZipCode: string; orderDate: string; PackageTypeId: string; PackageTypeName: string; PaymentMode: string; pickupDetail: { warehouseAddressLandMark: string; warehouseAddressLine1: string; warehouseAddressLine2: string; warehouseAddressPhone: string; warehouseCity: string; warehouseContactPerson: string; warehouseCountry: string; warehouseName: string; warehousePin: string; warehouseState: string; }; product_details: { box_details: { parameterCategory: ...; parameterName: ...; parameterValue: ...; }[]; detailsIdentifier: string; numberOfProducts: string; products: unknown[]; weight: { unit: string; value: string; }; }[]; products_name: string; status: string; status_id: string; totalInvoiceAmount: string; totalNoOfBoxes: number | null; updated_at: string; weight: string; weightUnit: string; }>; segment_type: ZodString; }, "strip", ZodTypeAny, { getOrderDetails: { AwbNumber: string; box_dimensions: { breadth: string; each_box_weight: string; height: string; length: string; no_of_box: string; }[]; collectableAmount: string; consignee: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consigneeBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consigneeBilling: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consigneeBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consignor: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consignorBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consignorType: string; created_at: string; dimensions: string[]; InvoiceCurrency: string; InvoiceNumber: string; InvoiceStatus: string; InvoiceStatusId: string; MasterCustomInvoiceId: string | null; MasterCustomOrderId: string; MasterOrderCurrency: string; MasterOrderShippingZipCode: string; orderDate: string; PackageTypeId: string; PackageTypeName: string; PaymentMode: string; pickupDetail: { warehouseAddressLandMark: string; warehouseAddressLine1: string; warehouseAddressLine2: string; warehouseAddressPhone: string; warehouseCity: string; warehouseContactPerson: string; warehouseCountry: string; warehouseName: string; warehousePin: string; warehouseState: string; }; product_details: { box_details: { parameterCategory: string; parameterName: string; parameterValue: string; }[]; detailsIdentifier: string; numberOfProducts: string; products: unknown[]; weight: { unit: string; value: string; }; }[]; products_name: string; status: string; status_id: string; totalInvoiceAmount: string; totalNoOfBoxes: number | null; updated_at: string; weight: string; weightUnit: string; }; segment_type: string; }, { getOrderDetails: { AwbNumber: string; box_dimensions: { breadth: string; each_box_weight: string; height: string; length: string; no_of_box: string; }[]; collectableAmount: string; consignee: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consigneeBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consigneeBilling: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consigneeBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consignor: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consignorBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consignorType: string; created_at: string; dimensions: string[]; InvoiceCurrency: string; InvoiceNumber: string; InvoiceStatus: string; InvoiceStatusId: string; MasterCustomInvoiceId: string | null; MasterCustomOrderId: string; MasterOrderCurrency: string; MasterOrderShippingZipCode: string; orderDate: string; PackageTypeId: string; PackageTypeName: string; PaymentMode: string; pickupDetail: { warehouseAddressLandMark: string; warehouseAddressLine1: string; warehouseAddressLine2: string; warehouseAddressPhone: string; warehouseCity: string; warehouseContactPerson: string; warehouseCountry: string; warehouseName: string; warehousePin: string; warehouseState: string; }; product_details: { box_details: { parameterCategory: string; parameterName: string; parameterValue: string; }[]; detailsIdentifier: string; numberOfProducts: string; products: unknown[]; weight: { unit: string; value: string; }; }[]; products_name: string; status: string; status_id: string; totalInvoiceAmount: string; totalNoOfBoxes: number | null; updated_at: string; weight: string; weightUnit: string; }; segment_type: string; }>>; message: ZodString; status: ZodBoolean; status_code: ZodNumber;}, "strip", ZodTypeAny, { data: | { getOrderDetails: { AwbNumber: string; box_dimensions: { breadth: string; each_box_weight: string; height: string; length: string; no_of_box: string; }[]; collectableAmount: string; consignee: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consigneeBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consigneeBilling: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consigneeBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consignor: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consignorBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consignorType: string; created_at: string; dimensions: string[]; InvoiceCurrency: string; InvoiceNumber: string; InvoiceStatus: string; InvoiceStatusId: string; MasterCustomInvoiceId: string | null; MasterCustomOrderId: string; MasterOrderCurrency: string; MasterOrderShippingZipCode: string; orderDate: string; PackageTypeId: string; PackageTypeName: string; PaymentMode: string; pickupDetail: { warehouseAddressLandMark: string; warehouseAddressLine1: string; warehouseAddressLine2: string; warehouseAddressPhone: string; warehouseCity: string; warehouseContactPerson: string; warehouseCountry: string; warehouseName: string; warehousePin: string; warehouseState: string; }; product_details: { box_details: { parameterCategory: string; parameterName: string; parameterValue: string; }[]; detailsIdentifier: string; numberOfProducts: string; products: unknown[]; weight: { unit: string; value: string; }; }[]; products_name: string; status: string; status_id: string; totalInvoiceAmount: string; totalNoOfBoxes: number | null; updated_at: string; weight: string; weightUnit: string; }; segment_type: string; } | null; message: string; status: boolean; status_code: number;}, { data: | { getOrderDetails: { AwbNumber: string; box_dimensions: { breadth: string; each_box_weight: string; height: string; length: string; no_of_box: string; }[]; collectableAmount: string; consignee: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consigneeBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consigneeBilling: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consigneeBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consignor: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consignorBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consignorType: string; created_at: string; dimensions: string[]; InvoiceCurrency: string; InvoiceNumber: string; InvoiceStatus: string; InvoiceStatusId: string; MasterCustomInvoiceId: string | null; MasterCustomOrderId: string; MasterOrderCurrency: string; MasterOrderShippingZipCode: string; orderDate: string; PackageTypeId: string; PackageTypeName: string; PaymentMode: string; pickupDetail: { warehouseAddressLandMark: string; warehouseAddressLine1: string; warehouseAddressLine2: string; warehouseAddressPhone: string; warehouseCity: string; warehouseContactPerson: string; warehouseCountry: string; warehouseName: string; warehousePin: string; warehouseState: string; }; product_details: { box_details: { parameterCategory: string; parameterName: string; parameterValue: string; }[]; detailsIdentifier: string; numberOfProducts: string; products: unknown[]; weight: { unit: string; value: string; }; }[]; products_name: string; status: string; status_id: string; totalInvoiceAmount: string; totalNoOfBoxes: number | null; updated_at: string; weight: string; weightUnit: string; }; segment_type: string; } | null; message: string; status: boolean; status_code: number;}>;Defined in: packages/sdk/src/core/types.ts:724
PackageTypeResponseSchema
Section titled “PackageTypeResponseSchema”const PackageTypeResponseSchema: ZodObject<{ data: ZodNullable<ZodArray<ZodObject<{ Description: ZodString; HyperlocalPackageTypeId: ZodNumber; IsEnabled: ZodString; PackageType: ZodString; }, "strip", ZodTypeAny, { Description: string; HyperlocalPackageTypeId: number; IsEnabled: string; PackageType: string; }, { Description: string; HyperlocalPackageTypeId: number; IsEnabled: string; PackageType: string; }>, "many">>; message: ZodString; status: ZodBoolean; status_code: ZodNumber;}, "strip", ZodTypeAny, { data: | { Description: string; HyperlocalPackageTypeId: number; IsEnabled: string; PackageType: string; }[] | null; message: string; status: boolean; status_code: number;}, { data: | { Description: string; HyperlocalPackageTypeId: number; IsEnabled: string; PackageType: string; }[] | null; message: string; status: boolean; status_code: number;}>;Defined in: packages/sdk/src/core/types.ts:239
PackageTypeSchema
Section titled “PackageTypeSchema”const PackageTypeSchema: ZodObject<{ Description: ZodString; HyperlocalPackageTypeId: ZodNumber; IsEnabled: ZodString; PackageType: ZodString;}, "strip", ZodTypeAny, { Description: string; HyperlocalPackageTypeId: number; IsEnabled: string; PackageType: string;}, { Description: string; HyperlocalPackageTypeId: number; IsEnabled: string; PackageType: string;}>;Defined in: packages/sdk/src/core/types.ts:232
PaymentModeResponseSchema
Section titled “PaymentModeResponseSchema”const PaymentModeResponseSchema: ZodObject<{ data: ZodNullable<ZodArray<ZodObject<{ paymentModeId: ZodString; paymentModeName: ZodString; }, "strip", ZodTypeAny, { paymentModeId: string; paymentModeName: string; }, { paymentModeId: string; paymentModeName: string; }>, "many">>; message: ZodString; status: ZodBoolean; status_code: ZodNumber;}, "strip", ZodTypeAny, { data: | { paymentModeId: string; paymentModeName: string; }[] | null; message: string; status: boolean; status_code: number;}, { data: | { paymentModeId: string; paymentModeName: string; }[] | null; message: string; status: boolean; status_code: number;}>;Defined in: packages/sdk/src/core/types.ts:248
PaymentModeSchema
Section titled “PaymentModeSchema”const PaymentModeSchema: ZodObject<{ paymentModeId: ZodString; paymentModeName: ZodString;}, "strip", ZodTypeAny, { paymentModeId: string; paymentModeName: string;}, { paymentModeId: string; paymentModeName: string;}>;Defined in: packages/sdk/src/core/types.ts:243
PlaceOrderDataSchema
Section titled “PlaceOrderDataSchema”const PlaceOrderDataSchema: ZodObject<{ awb_assigned: ZodNullable<ZodUnion<[ZodString, ZodNumber]>>; reference_number: ZodUnion<[ZodString, ZodNumber]>;}, "strip", ZodTypeAny, { awb_assigned: string | number | null; reference_number: string | number;}, { awb_assigned: string | number | null; reference_number: string | number;}>;Defined in: packages/sdk/src/core/types.ts:516
PlaceOrderRequestSchema
Section titled “PlaceOrderRequestSchema”const PlaceOrderRequestSchema: ZodObject<{ courierId: ZodNumber; invoiceType: ZodOptional<ZodString>; MasterCustomOrderId: ZodString; riskTypeId: ZodOptional<ZodString>;}, "strip", ZodTypeAny, { courierId: number; invoiceType?: string; MasterCustomOrderId: string; riskTypeId?: string;}, { courierId: number; invoiceType?: string; MasterCustomOrderId: string; riskTypeId?: string;}>;Defined in: packages/sdk/src/core/types.ts:507
PlaceOrderResponseSchema
Section titled “PlaceOrderResponseSchema”const PlaceOrderResponseSchema: ZodObject<{ data: ZodNullable<ZodObject<{ awb_assigned: ZodNullable<ZodUnion<[ZodString, ZodNumber]>>; reference_number: ZodUnion<[ZodString, ZodNumber]>; }, "strip", ZodTypeAny, { awb_assigned: string | number | null; reference_number: string | number; }, { awb_assigned: string | number | null; reference_number: string | number; }>>; message: ZodString; status: ZodBoolean; status_code: ZodNumber;}, "strip", ZodTypeAny, { data: | { awb_assigned: string | number | null; reference_number: string | number; } | null; message: string; status: boolean; status_code: number;}, { data: | { awb_assigned: string | number | null; reference_number: string | number; } | null; message: string; status: boolean; status_code: number;}>;Defined in: packages/sdk/src/core/types.ts:521
ProfileDataSchema
Section titled “ProfileDataSchema”const ProfileDataSchema: ZodObject<{ api_master_client_account: ZodObject<{ access_key: ZodString; access_key_generated_date: ZodString; created_date: ZodString; is_account_enabled: ZodString; updated_date: ZodString; }, "strip", ZodTypeAny, { access_key: string; access_key_generated_date: string; created_date: string; is_account_enabled: string; updated_date: string; }, { access_key: string; access_key_generated_date: string; created_date: string; is_account_enabled: string; updated_date: string; }>; countryname: ZodString; EmailID: ZodString; firstName: ZodString; is_outbound_service_enabled: ZodString; IsEmailVerifed: ZodString; lastName: ZodString; mobileNumber: ZodString; userWallet: ZodObject<{ Balance: ZodUnion<[ZodString, ZodNumber]>; kycCurrency: ZodString; }, "strip", ZodTypeAny, { Balance: string | number; kycCurrency: string; }, { Balance: string | number; kycCurrency: string; }>;}, "strip", ZodTypeAny, { api_master_client_account: { access_key: string; access_key_generated_date: string; created_date: string; is_account_enabled: string; updated_date: string; }; countryname: string; EmailID: string; firstName: string; is_outbound_service_enabled: string; IsEmailVerifed: string; lastName: string; mobileNumber: string; userWallet: { Balance: string | number; kycCurrency: string; };}, { api_master_client_account: { access_key: string; access_key_generated_date: string; created_date: string; is_account_enabled: string; updated_date: string; }; countryname: string; EmailID: string; firstName: string; is_outbound_service_enabled: string; IsEmailVerifed: string; lastName: string; mobileNumber: string; userWallet: { Balance: string | number; kycCurrency: string; };}>;Defined in: packages/sdk/src/core/types.ts:103
ProfileResponseSchema
Section titled “ProfileResponseSchema”const ProfileResponseSchema: ZodObject<{ data: ZodNullable<ZodObject<{ api_master_client_account: ZodObject<{ access_key: ZodString; access_key_generated_date: ZodString; created_date: ZodString; is_account_enabled: ZodString; updated_date: ZodString; }, "strip", ZodTypeAny, { access_key: string; access_key_generated_date: string; created_date: string; is_account_enabled: string; updated_date: string; }, { access_key: string; access_key_generated_date: string; created_date: string; is_account_enabled: string; updated_date: string; }>; countryname: ZodString; EmailID: ZodString; firstName: ZodString; is_outbound_service_enabled: ZodString; IsEmailVerifed: ZodString; lastName: ZodString; mobileNumber: ZodString; userWallet: ZodObject<{ Balance: ZodUnion<[ZodString, ZodNumber]>; kycCurrency: ZodString; }, "strip", ZodTypeAny, { Balance: string | number; kycCurrency: string; }, { Balance: string | number; kycCurrency: string; }>; }, "strip", ZodTypeAny, { api_master_client_account: { access_key: string; access_key_generated_date: string; created_date: string; is_account_enabled: string; updated_date: string; }; countryname: string; EmailID: string; firstName: string; is_outbound_service_enabled: string; IsEmailVerifed: string; lastName: string; mobileNumber: string; userWallet: { Balance: string | number; kycCurrency: string; }; }, { api_master_client_account: { access_key: string; access_key_generated_date: string; created_date: string; is_account_enabled: string; updated_date: string; }; countryname: string; EmailID: string; firstName: string; is_outbound_service_enabled: string; IsEmailVerifed: string; lastName: string; mobileNumber: string; userWallet: { Balance: string | number; kycCurrency: string; }; }>>; message: ZodString; status: ZodBoolean; status_code: ZodNumber;}, "strip", ZodTypeAny, { data: | { api_master_client_account: { access_key: string; access_key_generated_date: string; created_date: string; is_account_enabled: string; updated_date: string; }; countryname: string; EmailID: string; firstName: string; is_outbound_service_enabled: string; IsEmailVerifed: string; lastName: string; mobileNumber: string; userWallet: { Balance: string | number; kycCurrency: string; }; } | null; message: string; status: boolean; status_code: number;}, { data: | { api_master_client_account: { access_key: string; access_key_generated_date: string; created_date: string; is_account_enabled: string; updated_date: string; }; countryname: string; EmailID: string; firstName: string; is_outbound_service_enabled: string; IsEmailVerifed: string; lastName: string; mobileNumber: string; userWallet: { Balance: string | number; kycCurrency: string; }; } | null; message: string; status: boolean; status_code: number;}>;Defined in: packages/sdk/src/core/types.ts:124
RateCalculatorBoxSchema
Section titled “RateCalculatorBoxSchema”const RateCalculatorBoxSchema: ZodObject<{ box_dead_weight: ZodNumber; box_height: ZodNumber; box_length: ZodNumber; box_width: ZodNumber; no_of_box: ZodNumber;}, "strip", ZodTypeAny, { box_dead_weight: number; box_height: number; box_length: number; box_width: number; no_of_box: number;}, { box_dead_weight: number; box_height: number; box_length: number; box_width: number; no_of_box: number;}>;Defined in: packages/sdk/src/core/types.ts:262
RateCalculatorItemSchema
Section titled “RateCalculatorItemSchema”const RateCalculatorItemSchema: ZodObject<{ codCharges: ZodNumber; courier_partner_id: ZodNumber; courierCharge: ZodNumber; courierImage: ZodNullable<ZodString>; courierName: ZodString; courierType: ZodString; emailNotificationCharge: ZodNumber; greenTax: ZodNumber; handlingCharge: ZodString; lrCost: ZodUnion<[ZodString, ZodNumber]>; minimum_weight: ZodString; oda: ZodString; pickup_Charge: ZodNumber; planName: ZodString; restricted_pincode_message: ZodNullable<ZodString>; riskType: ZodString; riskTypeName: ZodString; smsNotificationCharge: ZodNumber; state_Tax: ZodString; tat: ZodString; toPay: ZodNumber; totalCharge: ZodNumber; warai_Charge: ZodNumber; weight: ZodUnion<[ZodNumber, ZodString]>; whatsappNotificationCharge: ZodNumber; zone: ZodString;}, "strip", ZodTypeAny, { codCharges: number; courier_partner_id: number; courierCharge: number; courierImage: string | null; courierName: string; courierType: string; emailNotificationCharge: number; greenTax: number; handlingCharge: string; lrCost: string | number; minimum_weight: string; oda: string; pickup_Charge: number; planName: string; restricted_pincode_message: string | null; riskType: string; riskTypeName: string; smsNotificationCharge: number; state_Tax: string; tat: string; toPay: number; totalCharge: number; warai_Charge: number; weight: string | number; whatsappNotificationCharge: number; zone: string;}, { codCharges: number; courier_partner_id: number; courierCharge: number; courierImage: string | null; courierName: string; courierType: string; emailNotificationCharge: number; greenTax: number; handlingCharge: string; lrCost: string | number; minimum_weight: string; oda: string; pickup_Charge: number; planName: string; restricted_pincode_message: string | null; riskType: string; riskTypeName: string; smsNotificationCharge: number; state_Tax: string; tat: string; toPay: number; totalCharge: number; warai_Charge: number; weight: string | number; whatsappNotificationCharge: number; zone: string;}>;Defined in: packages/sdk/src/core/types.ts:283
RateCalculatorRequestSchema
Section titled “RateCalculatorRequestSchema”const RateCalculatorRequestSchema: ZodObject<{ boxes: ZodArray<ZodObject<{ box_dead_weight: ZodNumber; box_height: ZodNumber; box_length: ZodNumber; box_width: ZodNumber; no_of_box: ZodNumber; }, "strip", ZodTypeAny, { box_dead_weight: number; box_height: number; box_length: number; box_width: number; no_of_box: number; }, { box_dead_weight: number; box_height: number; box_length: number; box_width: number; no_of_box: number; }>, "many">; codAmount: ZodOptional<ZodString>; destPincode: ZodString; invoiceValue: ZodNumber; paymentModeId: ZodNumber; riskTypeId: ZodNumber; segment_type: ZodEnum<["domestic_b2b", "domestic_b2c"]>; sourcePincode: ZodString;}, "strip", ZodTypeAny, { boxes: { box_dead_weight: number; box_height: number; box_length: number; box_width: number; no_of_box: number; }[]; codAmount?: string; destPincode: string; invoiceValue: number; paymentModeId: number; riskTypeId: number; segment_type: "domestic_b2b" | "domestic_b2c"; sourcePincode: string;}, { boxes: { box_dead_weight: number; box_height: number; box_length: number; box_width: number; no_of_box: number; }[]; codAmount?: string; destPincode: string; invoiceValue: number; paymentModeId: number; riskTypeId: number; segment_type: "domestic_b2b" | "domestic_b2c"; sourcePincode: string;}>;Defined in: packages/sdk/src/core/types.ts:270
RateCalculatorResponseSchema
Section titled “RateCalculatorResponseSchema”const RateCalculatorResponseSchema: ZodObject<{ data: ZodNullable<ZodArray<ZodObject<{ codCharges: ZodNumber; courier_partner_id: ZodNumber; courierCharge: ZodNumber; courierImage: ZodNullable<ZodString>; courierName: ZodString; courierType: ZodString; emailNotificationCharge: ZodNumber; greenTax: ZodNumber; handlingCharge: ZodString; lrCost: ZodUnion<[ZodString, ZodNumber]>; minimum_weight: ZodString; oda: ZodString; pickup_Charge: ZodNumber; planName: ZodString; restricted_pincode_message: ZodNullable<ZodString>; riskType: ZodString; riskTypeName: ZodString; smsNotificationCharge: ZodNumber; state_Tax: ZodString; tat: ZodString; toPay: ZodNumber; totalCharge: ZodNumber; warai_Charge: ZodNumber; weight: ZodUnion<[ZodNumber, ZodString]>; whatsappNotificationCharge: ZodNumber; zone: ZodString; }, "strip", ZodTypeAny, { codCharges: number; courier_partner_id: number; courierCharge: number; courierImage: string | null; courierName: string; courierType: string; emailNotificationCharge: number; greenTax: number; handlingCharge: string; lrCost: string | number; minimum_weight: string; oda: string; pickup_Charge: number; planName: string; restricted_pincode_message: string | null; riskType: string; riskTypeName: string; smsNotificationCharge: number; state_Tax: string; tat: string; toPay: number; totalCharge: number; warai_Charge: number; weight: string | number; whatsappNotificationCharge: number; zone: string; }, { codCharges: number; courier_partner_id: number; courierCharge: number; courierImage: string | null; courierName: string; courierType: string; emailNotificationCharge: number; greenTax: number; handlingCharge: string; lrCost: string | number; minimum_weight: string; oda: string; pickup_Charge: number; planName: string; restricted_pincode_message: string | null; riskType: string; riskTypeName: string; smsNotificationCharge: number; state_Tax: string; tat: string; toPay: number; totalCharge: number; warai_Charge: number; weight: string | number; whatsappNotificationCharge: number; zone: string; }>, "many">>; message: ZodString; status: ZodBoolean; status_code: ZodNumber;}, "strip", ZodTypeAny, { data: | { codCharges: number; courier_partner_id: number; courierCharge: number; courierImage: string | null; courierName: string; courierType: string; emailNotificationCharge: number; greenTax: number; handlingCharge: string; lrCost: string | number; minimum_weight: string; oda: string; pickup_Charge: number; planName: string; restricted_pincode_message: string | null; riskType: string; riskTypeName: string; smsNotificationCharge: number; state_Tax: string; tat: string; toPay: number; totalCharge: number; warai_Charge: number; weight: string | number; whatsappNotificationCharge: number; zone: string; }[] | null; message: string; status: boolean; status_code: number;}, { data: | { codCharges: number; courier_partner_id: number; courierCharge: number; courierImage: string | null; courierName: string; courierType: string; emailNotificationCharge: number; greenTax: number; handlingCharge: string; lrCost: string | number; minimum_weight: string; oda: string; pickup_Charge: number; planName: string; restricted_pincode_message: string | null; riskType: string; riskTypeName: string; smsNotificationCharge: number; state_Tax: string; tat: string; toPay: number; totalCharge: number; warai_Charge: number; weight: string | number; whatsappNotificationCharge: number; zone: string; }[] | null; message: string; status: boolean; status_code: number;}>;Defined in: packages/sdk/src/core/types.ts:312
RiskTypeResponseSchema
Section titled “RiskTypeResponseSchema”const RiskTypeResponseSchema: ZodObject<{ data: ZodNullable<ZodArray<ZodObject<{ riskName: ZodString; riskTypeId: ZodNumber; slug: ZodString; }, "strip", ZodTypeAny, { riskName: string; riskTypeId: number; slug: string; }, { riskName: string; riskTypeId: number; slug: string; }>, "many">>; message: ZodString; status: ZodBoolean; status_code: ZodNumber;}, "strip", ZodTypeAny, { data: | { riskName: string; riskTypeId: number; slug: string; }[] | null; message: string; status: boolean; status_code: number;}, { data: | { riskName: string; riskTypeId: number; slug: string; }[] | null; message: string; status: boolean; status_code: number;}>;Defined in: packages/sdk/src/core/types.ts:258
RiskTypeSchema
Section titled “RiskTypeSchema”const RiskTypeSchema: ZodObject<{ riskName: ZodString; riskTypeId: ZodNumber; slug: ZodString;}, "strip", ZodTypeAny, { riskName: string; riskTypeId: number; slug: string;}, { riskName: string; riskTypeId: number; slug: string;}>;Defined in: packages/sdk/src/core/types.ts:252
SaveWarehouseDataSchema
Section titled “SaveWarehouseDataSchema”const SaveWarehouseDataSchema: ZodObject<{ is_phone_verified: ZodNumber; phone_number: ZodString; warehouseId: ZodNumber;}, "strip", ZodTypeAny, { is_phone_verified: number; phone_number: string; warehouseId: number;}, { is_phone_verified: number; phone_number: string; warehouseId: number;}>;Defined in: packages/sdk/src/core/types.ts:146
SaveWarehouseRequestSchema
Section titled “SaveWarehouseRequestSchema”const SaveWarehouseRequestSchema: ZodObject<{ address_type: ZodOptional<ZodEnum<["Home", "Office", "Shop", "Factory", "Hotel", "Other"]>>; latitude: ZodOptional<ZodString>; longitude: ZodOptional<ZodString>; segment_type: ZodEnum<["hyperlocal", "local"]>; warehouseAddressLandMark: ZodString; warehouseAddressLine1: ZodString; warehouseAddressLine2: ZodOptional<ZodString>; warehouseAddressPhone: ZodString; warehouseCity: ZodString; warehouseContactPerson: ZodString; warehouseCountry: ZodDefault<ZodString>; warehousePinCode: ZodString; warehouseState: ZodString;}, "strip", ZodTypeAny, { address_type?: "Home" | "Office" | "Shop" | "Factory" | "Hotel" | "Other"; latitude?: string; longitude?: string; segment_type: "hyperlocal" | "local"; warehouseAddressLandMark: string; warehouseAddressLine1: string; warehouseAddressLine2?: string; warehouseAddressPhone: string; warehouseCity: string; warehouseContactPerson: string; warehouseCountry: string; warehousePinCode: string; warehouseState: string;}, { address_type?: "Home" | "Office" | "Shop" | "Factory" | "Hotel" | "Other"; latitude?: string; longitude?: string; segment_type: "hyperlocal" | "local"; warehouseAddressLandMark: string; warehouseAddressLine1: string; warehouseAddressLine2?: string; warehouseAddressPhone: string; warehouseCity: string; warehouseContactPerson: string; warehouseCountry?: string; warehousePinCode: string; warehouseState: string;}>;Defined in: packages/sdk/src/core/types.ts:128
SaveWarehouseResponseSchema
Section titled “SaveWarehouseResponseSchema”const SaveWarehouseResponseSchema: ZodObject<{ data: ZodNullable<ZodObject<{ is_phone_verified: ZodNumber; phone_number: ZodString; warehouseId: ZodNumber; }, "strip", ZodTypeAny, { is_phone_verified: number; phone_number: string; warehouseId: number; }, { is_phone_verified: number; phone_number: string; warehouseId: number; }>>; message: ZodString; status: ZodBoolean; status_code: ZodNumber;}, "strip", ZodTypeAny, { data: | { is_phone_verified: number; phone_number: string; warehouseId: number; } | null; message: string; status: boolean; status_code: number;}, { data: | { is_phone_verified: number; phone_number: string; warehouseId: number; } | null; message: string; status: boolean; status_code: number;}>;Defined in: packages/sdk/src/core/types.ts:152
SDK_VERSION
Section titled “SDK_VERSION”const SDK_VERSION: string = '4.0.0';Defined in: packages/sdk/src/version.ts:3
ServiceableCouriersDataSchema
Section titled “ServiceableCouriersDataSchema”const ServiceableCouriersDataSchema: ZodObject<{ calculatedRates: ZodArray<ZodUnion<[ZodObject<{ base_freight: ZodNumber; capacity: ZodString; courierId: ZodNumber; courierImage: ZodString; courierName: ZodString; currency: ZodString; gst_amount: ZodNumber; planName: ZodString; total_freight: ZodNumber; vehicle_type: ZodString; }, "strip", ZodTypeAny, { base_freight: number; capacity: string; courierId: number; courierImage: string; courierName: string; currency: string; gst_amount: number; planName: string; total_freight: number; vehicle_type: string; }, { base_freight: number; capacity: string; courierId: number; courierImage: string; courierName: string; currency: string; gst_amount: number; planName: string; total_freight: number; vehicle_type: string; }>, ZodObject<{ base_freight: ZodNumber; charged_weight: ZodNumber; codCharges: ZodNumber; courierId: ZodString; courierImage: ZodNullable<ZodString>; courierName: ZodString; courierType: ZodString; destination: ZodString; emailNotificationCharge: ZodNumber; greenTax: ZodString; handlingCharge: ZodString; kycCurrency: ZodString; lrCost: ZodString; oda: ZodString; pickup: ZodString; pickup_Charge: ZodString; planName: ZodString; riskCharge: ZodString; riskCharges: ZodArray<ZodObject<{ chargeValue: ZodString; isRisk: ZodBoolean; name: ZodString; typeId: ZodNumber; }, "strip", ZodTypeAny, { chargeValue: string; isRisk: boolean; name: string; typeId: number; }, { chargeValue: string; isRisk: boolean; name: string; typeId: number; }>, "many">; riskTypeName: ZodString; smsNotificationCharge: ZodNumber; state_Tax: ZodUnion<[ZodNumber, ZodString]>; tat: ZodNumber; toPay: ZodString; total: ZodString; warai_Charge: ZodNumber; weight_unit: ZodString; whatsappNotificationCharge: ZodNumber; zone: ZodString; }, "strip", ZodTypeAny, { base_freight: number; charged_weight: number; codCharges: number; courierId: string; courierImage: string | null; courierName: string; courierType: string; destination: string; emailNotificationCharge: number; greenTax: string; handlingCharge: string; kycCurrency: string; lrCost: string; oda: string; pickup: string; pickup_Charge: string; planName: string; riskCharge: string; riskCharges: { chargeValue: string; isRisk: boolean; name: string; typeId: number; }[]; riskTypeName: string; smsNotificationCharge: number; state_Tax: string | number; tat: number; toPay: string; total: string; warai_Charge: number; weight_unit: string; whatsappNotificationCharge: number; zone: string; }, { base_freight: number; charged_weight: number; codCharges: number; courierId: string; courierImage: string | null; courierName: string; courierType: string; destination: string; emailNotificationCharge: number; greenTax: string; handlingCharge: string; kycCurrency: string; lrCost: string; oda: string; pickup: string; pickup_Charge: string; planName: string; riskCharge: string; riskCharges: { chargeValue: string; isRisk: boolean; name: string; typeId: number; }[]; riskTypeName: string; smsNotificationCharge: number; state_Tax: string | number; tat: number; toPay: string; total: string; warai_Charge: number; weight_unit: string; whatsappNotificationCharge: number; zone: string; }>]>, "many">; segment_type: ZodString;}, "strip", ZodTypeAny, { calculatedRates: ( | { base_freight: number; capacity: string; courierId: number; courierImage: string; courierName: string; currency: string; gst_amount: number; planName: string; total_freight: number; vehicle_type: string; } | { base_freight: number; charged_weight: number; codCharges: number; courierId: string; courierImage: string | null; courierName: string; courierType: string; destination: string; emailNotificationCharge: number; greenTax: string; handlingCharge: string; kycCurrency: string; lrCost: string; oda: string; pickup: string; pickup_Charge: string; planName: string; riskCharge: string; riskCharges: { chargeValue: string; isRisk: boolean; name: string; typeId: number; }[]; riskTypeName: string; smsNotificationCharge: number; state_Tax: string | number; tat: number; toPay: string; total: string; warai_Charge: number; weight_unit: string; whatsappNotificationCharge: number; zone: string; })[]; segment_type: string;}, { calculatedRates: ( | { base_freight: number; capacity: string; courierId: number; courierImage: string; courierName: string; currency: string; gst_amount: number; planName: string; total_freight: number; vehicle_type: string; } | { base_freight: number; charged_weight: number; codCharges: number; courierId: string; courierImage: string | null; courierName: string; courierType: string; destination: string; emailNotificationCharge: number; greenTax: string; handlingCharge: string; kycCurrency: string; lrCost: string; oda: string; pickup: string; pickup_Charge: string; planName: string; riskCharge: string; riskCharges: { chargeValue: string; isRisk: boolean; name: string; typeId: number; }[]; riskTypeName: string; smsNotificationCharge: number; state_Tax: string | number; tat: number; toPay: string; total: string; warai_Charge: number; weight_unit: string; whatsappNotificationCharge: number; zone: string; })[]; segment_type: string;}>;Defined in: packages/sdk/src/core/types.ts:498
ServiceableCouriersRequestSchema
Section titled “ServiceableCouriersRequestSchema”const ServiceableCouriersRequestSchema: ZodObject<{ MasterCustomOrderId: ZodString;}, "strip", ZodTypeAny, { MasterCustomOrderId: string;}, { MasterCustomOrderId: string;}>;Defined in: packages/sdk/src/core/types.ts:440
ServiceableCouriersResponseSchema
Section titled “ServiceableCouriersResponseSchema”const ServiceableCouriersResponseSchema: ZodObject<{ data: ZodNullable<ZodObject<{ calculatedRates: ZodArray<ZodUnion<[ZodObject<{ base_freight: ZodNumber; capacity: ZodString; courierId: ZodNumber; courierImage: ZodString; courierName: ZodString; currency: ZodString; gst_amount: ZodNumber; planName: ZodString; total_freight: ZodNumber; vehicle_type: ZodString; }, "strip", ZodTypeAny, { base_freight: number; capacity: string; courierId: number; courierImage: string; courierName: string; currency: string; gst_amount: number; planName: string; total_freight: number; vehicle_type: string; }, { base_freight: number; capacity: string; courierId: number; courierImage: string; courierName: string; currency: string; gst_amount: number; planName: string; total_freight: number; vehicle_type: string; }>, ZodObject<{ base_freight: ZodNumber; charged_weight: ZodNumber; codCharges: ZodNumber; courierId: ZodString; courierImage: ZodNullable<...>; courierName: ZodString; courierType: ZodString; destination: ZodString; emailNotificationCharge: ZodNumber; greenTax: ZodString; handlingCharge: ZodString; kycCurrency: ZodString; lrCost: ZodString; oda: ZodString; pickup: ZodString; pickup_Charge: ZodString; planName: ZodString; riskCharge: ZodString; riskCharges: ZodArray<..., ...>; riskTypeName: ZodString; smsNotificationCharge: ZodNumber; state_Tax: ZodUnion<...>; tat: ZodNumber; toPay: ZodString; total: ZodString; warai_Charge: ZodNumber; weight_unit: ZodString; whatsappNotificationCharge: ZodNumber; zone: ZodString; }, "strip", ZodTypeAny, { base_freight: number; charged_weight: number; codCharges: number; courierId: string; courierImage: ... | ...; courierName: string; courierType: string; destination: string; emailNotificationCharge: number; greenTax: string; handlingCharge: string; kycCurrency: string; lrCost: string; oda: string; pickup: string; pickup_Charge: string; planName: string; riskCharge: string; riskCharges: ...[]; riskTypeName: string; smsNotificationCharge: number; state_Tax: ... | ...; tat: number; toPay: string; total: string; warai_Charge: number; weight_unit: string; whatsappNotificationCharge: number; zone: string; }, { base_freight: number; charged_weight: number; codCharges: number; courierId: string; courierImage: ... | ...; courierName: string; courierType: string; destination: string; emailNotificationCharge: number; greenTax: string; handlingCharge: string; kycCurrency: string; lrCost: string; oda: string; pickup: string; pickup_Charge: string; planName: string; riskCharge: string; riskCharges: ...[]; riskTypeName: string; smsNotificationCharge: number; state_Tax: ... | ...; tat: number; toPay: string; total: string; warai_Charge: number; weight_unit: string; whatsappNotificationCharge: number; zone: string; }>]>, "many">; segment_type: ZodString; }, "strip", ZodTypeAny, { calculatedRates: ( | { base_freight: number; capacity: string; courierId: number; courierImage: string; courierName: string; currency: string; gst_amount: number; planName: string; total_freight: number; vehicle_type: string; } | { base_freight: number; charged_weight: number; codCharges: number; courierId: string; courierImage: string | null; courierName: string; courierType: string; destination: string; emailNotificationCharge: number; greenTax: string; handlingCharge: string; kycCurrency: string; lrCost: string; oda: string; pickup: string; pickup_Charge: string; planName: string; riskCharge: string; riskCharges: { chargeValue: string; isRisk: boolean; name: string; typeId: number; }[]; riskTypeName: string; smsNotificationCharge: number; state_Tax: string | number; tat: number; toPay: string; total: string; warai_Charge: number; weight_unit: string; whatsappNotificationCharge: number; zone: string; })[]; segment_type: string; }, { calculatedRates: ( | { base_freight: number; capacity: string; courierId: number; courierImage: string; courierName: string; currency: string; gst_amount: number; planName: string; total_freight: number; vehicle_type: string; } | { base_freight: number; charged_weight: number; codCharges: number; courierId: string; courierImage: string | null; courierName: string; courierType: string; destination: string; emailNotificationCharge: number; greenTax: string; handlingCharge: string; kycCurrency: string; lrCost: string; oda: string; pickup: string; pickup_Charge: string; planName: string; riskCharge: string; riskCharges: { chargeValue: string; isRisk: boolean; name: string; typeId: number; }[]; riskTypeName: string; smsNotificationCharge: number; state_Tax: string | number; tat: number; toPay: string; total: string; warai_Charge: number; weight_unit: string; whatsappNotificationCharge: number; zone: string; })[]; segment_type: string; }>>; message: ZodString; status: ZodBoolean; status_code: ZodNumber;}, "strip", ZodTypeAny, { data: | { calculatedRates: ( | { base_freight: number; capacity: string; courierId: number; courierImage: string; courierName: string; currency: string; gst_amount: number; planName: string; total_freight: number; vehicle_type: string; } | { base_freight: number; charged_weight: number; codCharges: number; courierId: string; courierImage: string | null; courierName: string; courierType: string; destination: string; emailNotificationCharge: number; greenTax: string; handlingCharge: string; kycCurrency: string; lrCost: string; oda: string; pickup: string; pickup_Charge: string; planName: string; riskCharge: string; riskCharges: { chargeValue: string; isRisk: boolean; name: string; typeId: number; }[]; riskTypeName: string; smsNotificationCharge: number; state_Tax: string | number; tat: number; toPay: string; total: string; warai_Charge: number; weight_unit: string; whatsappNotificationCharge: number; zone: string; })[]; segment_type: string; } | null; message: string; status: boolean; status_code: number;}, { data: | { calculatedRates: ( | { base_freight: number; capacity: string; courierId: number; courierImage: string; courierName: string; currency: string; gst_amount: number; planName: string; total_freight: number; vehicle_type: string; } | { base_freight: number; charged_weight: number; codCharges: number; courierId: string; courierImage: string | null; courierName: string; courierType: string; destination: string; emailNotificationCharge: number; greenTax: string; handlingCharge: string; kycCurrency: string; lrCost: string; oda: string; pickup: string; pickup_Charge: string; planName: string; riskCharge: string; riskCharges: { chargeValue: string; isRisk: boolean; name: string; typeId: number; }[]; riskTypeName: string; smsNotificationCharge: number; state_Tax: string | number; tat: number; toPay: string; total: string; warai_Charge: number; weight_unit: string; whatsappNotificationCharge: number; zone: string; })[]; segment_type: string; } | null; message: string; status: boolean; status_code: number;}>;Defined in: packages/sdk/src/core/types.ts:503
TrackingCoordinateSchema
Section titled “TrackingCoordinateSchema”const TrackingCoordinateSchema: ZodObject<{ addressType: ZodString; latitude: ZodString; longitude: ZodString; mapLocationId: ZodString;}, "strip", ZodTypeAny, { addressType: string; latitude: string; longitude: string; mapLocationId: string;}, { addressType: string; latitude: string; longitude: string; mapLocationId: string;}>;Defined in: packages/sdk/src/core/types.ts:541
TrackingCurrentStatusSchema
Section titled “TrackingCurrentStatusSchema”const TrackingCurrentStatusSchema: ZodObject<{ fare_details: ZodObject<{ amount: ZodString; currency: ZodString; }, "strip", ZodTypeAny, { amount: string; currency: string; }, { amount: string; currency: string; }>; location: ZodObject<{ latitude: ZodNullable<ZodString>; longitude: ZodNullable<ZodString>; }, "strip", ZodTypeAny, { latitude: string | null; longitude: string | null; }, { latitude: string | null; longitude: string | null; }>; partner_details: ZodOptional<ZodObject<{ contact: ZodObject<{ primary: ZodObject<{ country_code: ZodString; number: ZodString; }, "strip", ZodTypeAny, { country_code: string; number: string; }, { country_code: string; number: string; }>; secondary: ZodObject<{ country_code: ZodString; number: ZodString; }, "strip", ZodTypeAny, { country_code: string; number: string; }, { country_code: string; number: string; }>; }, "strip", ZodTypeAny, { primary: { country_code: string; number: string; }; secondary: { country_code: string; number: string; }; }, { primary: { country_code: string; number: string; }; secondary: { country_code: string; number: string; }; }>; name: ZodString; vehicle: ZodObject<{ number: ZodNullable<ZodString>; type: ZodString; }, "strip", ZodTypeAny, { number: string | null; type: string; }, { number: string | null; type: string; }>; }, "strip", ZodTypeAny, { contact: { primary: { country_code: string; number: string; }; secondary: { country_code: string; number: string; }; }; name: string; vehicle: { number: string | null; type: string; }; }, { contact: { primary: { country_code: string; number: string; }; secondary: { country_code: string; number: string; }; }; name: string; vehicle: { number: string | null; type: string; }; }>>; timestamps: ZodObject<{ order: ZodObject<{ accepted: ZodNullable<ZodString>; ended: ZodNullable<ZodString>; started: ZodNullable<ZodString>; }, "strip", ZodTypeAny, { accepted: string | null; ended: string | null; started: string | null; }, { accepted: string | null; ended: string | null; started: string | null; }>; pickup: ZodNullable<ZodString>; }, "strip", ZodTypeAny, { order: { accepted: string | null; ended: string | null; started: string | null; }; pickup: string | null; }, { order: { accepted: string | null; ended: string | null; started: string | null; }; pickup: string | null; }>; tracking_status: ZodString;}, "strip", ZodTypeAny, { fare_details: { amount: string; currency: string; }; location: { latitude: string | null; longitude: string | null; }; partner_details?: { contact: { primary: { country_code: string; number: string; }; secondary: { country_code: string; number: string; }; }; name: string; vehicle: { number: string | null; type: string; }; }; timestamps: { order: { accepted: string | null; ended: string | null; started: string | null; }; pickup: string | null; }; tracking_status: string;}, { fare_details: { amount: string; currency: string; }; location: { latitude: string | null; longitude: string | null; }; partner_details?: { contact: { primary: { country_code: string; number: string; }; secondary: { country_code: string; number: string; }; }; name: string; vehicle: { number: string | null; type: string; }; }; timestamps: { order: { accepted: string | null; ended: string | null; started: string | null; }; pickup: string | null; }; tracking_status: string;}>;Defined in: packages/sdk/src/core/types.ts:566
TrackingHistorySchema
Section titled “TrackingHistorySchema”const TrackingHistorySchema: ZodObject<{ checkpoint_time: ZodString; location: ZodObject<{ latitude: ZodNullable<ZodString>; longitude: ZodNullable<ZodString>; }, "strip", ZodTypeAny, { latitude: string | null; longitude: string | null; }, { latitude: string | null; longitude: string | null; }>; message: ZodString; order_status: ZodString; tag: ZodString;}, "strip", ZodTypeAny, { checkpoint_time: string; location: { latitude: string | null; longitude: string | null; }; message: string; order_status: string; tag: string;}, { checkpoint_time: string; location: { latitude: string | null; longitude: string | null; }; message: string; order_status: string; tag: string;}>;Defined in: packages/sdk/src/core/types.ts:587
TrackingPartnerSchema
Section titled “TrackingPartnerSchema”const TrackingPartnerSchema: ZodObject<{ contact: ZodObject<{ primary: ZodObject<{ country_code: ZodString; number: ZodString; }, "strip", ZodTypeAny, { country_code: string; number: string; }, { country_code: string; number: string; }>; secondary: ZodObject<{ country_code: ZodString; number: ZodString; }, "strip", ZodTypeAny, { country_code: string; number: string; }, { country_code: string; number: string; }>; }, "strip", ZodTypeAny, { primary: { country_code: string; number: string; }; secondary: { country_code: string; number: string; }; }, { primary: { country_code: string; number: string; }; secondary: { country_code: string; number: string; }; }>; name: ZodString; vehicle: ZodObject<{ number: ZodNullable<ZodString>; type: ZodString; }, "strip", ZodTypeAny, { number: string | null; type: string; }, { number: string | null; type: string; }>;}, "strip", ZodTypeAny, { contact: { primary: { country_code: string; number: string; }; secondary: { country_code: string; number: string; }; }; name: string; vehicle: { number: string | null; type: string; };}, { contact: { primary: { country_code: string; number: string; }; secondary: { country_code: string; number: string; }; }; name: string; vehicle: { number: string | null; type: string; };}>;Defined in: packages/sdk/src/core/types.ts:548
TrackOrderDataSchema
Section titled “TrackOrderDataSchema”const TrackOrderDataSchema: ZodObject<{ courier_image: ZodString; courier_name: ZodString; CustomGlobalOrderId: ZodString; drop_coordinate: ZodObject<{ addressType: ZodString; latitude: ZodString; longitude: ZodString; mapLocationId: ZodString; }, "strip", ZodTypeAny, { addressType: string; latitude: string; longitude: string; mapLocationId: string; }, { addressType: string; latitude: string; longitude: string; mapLocationId: string; }>; latest_checkpoint_time: ZodString; order_place_time: ZodString; order_status: ZodString; source_coordinate: ZodObject<{ addressType: ZodString; latitude: ZodString; longitude: ZodString; mapLocationId: ZodString; }, "strip", ZodTypeAny, { addressType: string; latitude: string; longitude: string; mapLocationId: string; }, { addressType: string; latitude: string; longitude: string; mapLocationId: string; }>; tag: ZodString; tracking_current_status: ZodObject<{ fare_details: ZodObject<{ amount: ZodString; currency: ZodString; }, "strip", ZodTypeAny, { amount: string; currency: string; }, { amount: string; currency: string; }>; location: ZodObject<{ latitude: ZodNullable<ZodString>; longitude: ZodNullable<ZodString>; }, "strip", ZodTypeAny, { latitude: string | null; longitude: string | null; }, { latitude: string | null; longitude: string | null; }>; partner_details: ZodOptional<ZodObject<{ contact: ZodObject<{ primary: ZodObject<{ country_code: ...; number: ...; }, "strip", ZodTypeAny, { country_code: ...; number: ...; }, { country_code: ...; number: ...; }>; secondary: ZodObject<{ country_code: ...; number: ...; }, "strip", ZodTypeAny, { country_code: ...; number: ...; }, { country_code: ...; number: ...; }>; }, "strip", ZodTypeAny, { primary: { country_code: string; number: string; }; secondary: { country_code: string; number: string; }; }, { primary: { country_code: string; number: string; }; secondary: { country_code: string; number: string; }; }>; name: ZodString; vehicle: ZodObject<{ number: ZodNullable<ZodString>; type: ZodString; }, "strip", ZodTypeAny, { number: string | null; type: string; }, { number: string | null; type: string; }>; }, "strip", ZodTypeAny, { contact: { primary: { country_code: string; number: string; }; secondary: { country_code: string; number: string; }; }; name: string; vehicle: { number: string | null; type: string; }; }, { contact: { primary: { country_code: string; number: string; }; secondary: { country_code: string; number: string; }; }; name: string; vehicle: { number: string | null; type: string; }; }>>; timestamps: ZodObject<{ order: ZodObject<{ accepted: ZodNullable<ZodString>; ended: ZodNullable<ZodString>; started: ZodNullable<ZodString>; }, "strip", ZodTypeAny, { accepted: string | null; ended: string | null; started: string | null; }, { accepted: string | null; ended: string | null; started: string | null; }>; pickup: ZodNullable<ZodString>; }, "strip", ZodTypeAny, { order: { accepted: string | null; ended: string | null; started: string | null; }; pickup: string | null; }, { order: { accepted: string | null; ended: string | null; started: string | null; }; pickup: string | null; }>; tracking_status: ZodString; }, "strip", ZodTypeAny, { fare_details: { amount: string; currency: string; }; location: { latitude: string | null; longitude: string | null; }; partner_details?: { contact: { primary: { country_code: string; number: string; }; secondary: { country_code: string; number: string; }; }; name: string; vehicle: { number: string | null; type: string; }; }; timestamps: { order: { accepted: string | null; ended: string | null; started: string | null; }; pickup: string | null; }; tracking_status: string; }, { fare_details: { amount: string; currency: string; }; location: { latitude: string | null; longitude: string | null; }; partner_details?: { contact: { primary: { country_code: string; number: string; }; secondary: { country_code: string; number: string; }; }; name: string; vehicle: { number: string | null; type: string; }; }; timestamps: { order: { accepted: string | null; ended: string | null; started: string | null; }; pickup: string | null; }; tracking_status: string; }>; tracking_histories: ZodArray<ZodObject<{ checkpoint_time: ZodString; location: ZodObject<{ latitude: ZodNullable<ZodString>; longitude: ZodNullable<ZodString>; }, "strip", ZodTypeAny, { latitude: string | null; longitude: string | null; }, { latitude: string | null; longitude: string | null; }>; message: ZodString; order_status: ZodString; tag: ZodString; }, "strip", ZodTypeAny, { checkpoint_time: string; location: { latitude: string | null; longitude: string | null; }; message: string; order_status: string; tag: string; }, { checkpoint_time: string; location: { latitude: string | null; longitude: string | null; }; message: string; order_status: string; tag: string; }>, "many">; tracking_number: ZodString;}, "strip", ZodTypeAny, { courier_image: string; courier_name: string; CustomGlobalOrderId: string; drop_coordinate: { addressType: string; latitude: string; longitude: string; mapLocationId: string; }; latest_checkpoint_time: string; order_place_time: string; order_status: string; source_coordinate: { addressType: string; latitude: string; longitude: string; mapLocationId: string; }; tag: string; tracking_current_status: { fare_details: { amount: string; currency: string; }; location: { latitude: string | null; longitude: string | null; }; partner_details?: { contact: { primary: { country_code: string; number: string; }; secondary: { country_code: string; number: string; }; }; name: string; vehicle: { number: string | null; type: string; }; }; timestamps: { order: { accepted: string | null; ended: string | null; started: string | null; }; pickup: string | null; }; tracking_status: string; }; tracking_histories: { checkpoint_time: string; location: { latitude: string | null; longitude: string | null; }; message: string; order_status: string; tag: string; }[]; tracking_number: string;}, { courier_image: string; courier_name: string; CustomGlobalOrderId: string; drop_coordinate: { addressType: string; latitude: string; longitude: string; mapLocationId: string; }; latest_checkpoint_time: string; order_place_time: string; order_status: string; source_coordinate: { addressType: string; latitude: string; longitude: string; mapLocationId: string; }; tag: string; tracking_current_status: { fare_details: { amount: string; currency: string; }; location: { latitude: string | null; longitude: string | null; }; partner_details?: { contact: { primary: { country_code: string; number: string; }; secondary: { country_code: string; number: string; }; }; name: string; vehicle: { number: string | null; type: string; }; }; timestamps: { order: { accepted: string | null; ended: string | null; started: string | null; }; pickup: string | null; }; tracking_status: string; }; tracking_histories: { checkpoint_time: string; location: { latitude: string | null; longitude: string | null; }; message: string; order_status: string; tag: string; }[]; tracking_number: string;}>;Defined in: packages/sdk/src/core/types.ts:598
TrackOrderRequestSchema
Section titled “TrackOrderRequestSchema”const TrackOrderRequestSchema: ZodObject<{ CustomGlobalOrderId: ZodString;}, "strip", ZodTypeAny, { CustomGlobalOrderId: string;}, { CustomGlobalOrderId: string;}>;Defined in: packages/sdk/src/core/types.ts:535
TrackOrderResponseSchema
Section titled “TrackOrderResponseSchema”const TrackOrderResponseSchema: ZodObject<{ data: ZodNullable<ZodObject<{ courier_image: ZodString; courier_name: ZodString; CustomGlobalOrderId: ZodString; drop_coordinate: ZodObject<{ addressType: ZodString; latitude: ZodString; longitude: ZodString; mapLocationId: ZodString; }, "strip", ZodTypeAny, { addressType: string; latitude: string; longitude: string; mapLocationId: string; }, { addressType: string; latitude: string; longitude: string; mapLocationId: string; }>; latest_checkpoint_time: ZodString; order_place_time: ZodString; order_status: ZodString; source_coordinate: ZodObject<{ addressType: ZodString; latitude: ZodString; longitude: ZodString; mapLocationId: ZodString; }, "strip", ZodTypeAny, { addressType: string; latitude: string; longitude: string; mapLocationId: string; }, { addressType: string; latitude: string; longitude: string; mapLocationId: string; }>; tag: ZodString; tracking_current_status: ZodObject<{ fare_details: ZodObject<{ amount: ZodString; currency: ZodString; }, "strip", ZodTypeAny, { amount: string; currency: string; }, { amount: string; currency: string; }>; location: ZodObject<{ latitude: ZodNullable<ZodString>; longitude: ZodNullable<ZodString>; }, "strip", ZodTypeAny, { latitude: string | null; longitude: string | null; }, { latitude: string | null; longitude: string | null; }>; partner_details: ZodOptional<ZodObject<{ contact: ZodObject<..., ..., ..., ..., ...>; name: ZodString; vehicle: ZodObject<..., ..., ..., ..., ...>; }, "strip", ZodTypeAny, { contact: { primary: ...; secondary: ...; }; name: string; vehicle: { number: ...; type: ...; }; }, { contact: { primary: ...; secondary: ...; }; name: string; vehicle: { number: ...; type: ...; }; }>>; timestamps: ZodObject<{ order: ZodObject<{ accepted: ...; ended: ...; started: ...; }, "strip", ZodTypeAny, { accepted: ...; ended: ...; started: ...; }, { accepted: ...; ended: ...; started: ...; }>; pickup: ZodNullable<ZodString>; }, "strip", ZodTypeAny, { order: { accepted: ... | ...; ended: ... | ...; started: ... | ...; }; pickup: string | null; }, { order: { accepted: ... | ...; ended: ... | ...; started: ... | ...; }; pickup: string | null; }>; tracking_status: ZodString; }, "strip", ZodTypeAny, { fare_details: { amount: string; currency: string; }; location: { latitude: string | null; longitude: string | null; }; partner_details?: { contact: { primary: { country_code: ...; number: ...; }; secondary: { country_code: ...; number: ...; }; }; name: string; vehicle: { number: ... | ...; type: string; }; }; timestamps: { order: { accepted: string | null; ended: string | null; started: string | null; }; pickup: string | null; }; tracking_status: string; }, { fare_details: { amount: string; currency: string; }; location: { latitude: string | null; longitude: string | null; }; partner_details?: { contact: { primary: { country_code: ...; number: ...; }; secondary: { country_code: ...; number: ...; }; }; name: string; vehicle: { number: ... | ...; type: string; }; }; timestamps: { order: { accepted: string | null; ended: string | null; started: string | null; }; pickup: string | null; }; tracking_status: string; }>; tracking_histories: ZodArray<ZodObject<{ checkpoint_time: ZodString; location: ZodObject<{ latitude: ZodNullable<...>; longitude: ZodNullable<...>; }, "strip", ZodTypeAny, { latitude: ... | ...; longitude: ... | ...; }, { latitude: ... | ...; longitude: ... | ...; }>; message: ZodString; order_status: ZodString; tag: ZodString; }, "strip", ZodTypeAny, { checkpoint_time: string; location: { latitude: string | null; longitude: string | null; }; message: string; order_status: string; tag: string; }, { checkpoint_time: string; location: { latitude: string | null; longitude: string | null; }; message: string; order_status: string; tag: string; }>, "many">; tracking_number: ZodString; }, "strip", ZodTypeAny, { courier_image: string; courier_name: string; CustomGlobalOrderId: string; drop_coordinate: { addressType: string; latitude: string; longitude: string; mapLocationId: string; }; latest_checkpoint_time: string; order_place_time: string; order_status: string; source_coordinate: { addressType: string; latitude: string; longitude: string; mapLocationId: string; }; tag: string; tracking_current_status: { fare_details: { amount: string; currency: string; }; location: { latitude: string | null; longitude: string | null; }; partner_details?: { contact: { primary: { country_code: string; number: string; }; secondary: { country_code: string; number: string; }; }; name: string; vehicle: { number: string | null; type: string; }; }; timestamps: { order: { accepted: string | null; ended: string | null; started: string | null; }; pickup: string | null; }; tracking_status: string; }; tracking_histories: { checkpoint_time: string; location: { latitude: string | null; longitude: string | null; }; message: string; order_status: string; tag: string; }[]; tracking_number: string; }, { courier_image: string; courier_name: string; CustomGlobalOrderId: string; drop_coordinate: { addressType: string; latitude: string; longitude: string; mapLocationId: string; }; latest_checkpoint_time: string; order_place_time: string; order_status: string; source_coordinate: { addressType: string; latitude: string; longitude: string; mapLocationId: string; }; tag: string; tracking_current_status: { fare_details: { amount: string; currency: string; }; location: { latitude: string | null; longitude: string | null; }; partner_details?: { contact: { primary: { country_code: string; number: string; }; secondary: { country_code: string; number: string; }; }; name: string; vehicle: { number: string | null; type: string; }; }; timestamps: { order: { accepted: string | null; ended: string | null; started: string | null; }; pickup: string | null; }; tracking_status: string; }; tracking_histories: { checkpoint_time: string; location: { latitude: string | null; longitude: string | null; }; message: string; order_status: string; tag: string; }[]; tracking_number: string; }>>; message: ZodString; status: ZodBoolean; status_code: ZodNumber;}, "strip", ZodTypeAny, { data: | { courier_image: string; courier_name: string; CustomGlobalOrderId: string; drop_coordinate: { addressType: string; latitude: string; longitude: string; mapLocationId: string; }; latest_checkpoint_time: string; order_place_time: string; order_status: string; source_coordinate: { addressType: string; latitude: string; longitude: string; mapLocationId: string; }; tag: string; tracking_current_status: { fare_details: { amount: string; currency: string; }; location: { latitude: string | null; longitude: string | null; }; partner_details?: { contact: { primary: { country_code: string; number: string; }; secondary: { country_code: string; number: string; }; }; name: string; vehicle: { number: string | null; type: string; }; }; timestamps: { order: { accepted: string | null; ended: string | null; started: string | null; }; pickup: string | null; }; tracking_status: string; }; tracking_histories: { checkpoint_time: string; location: { latitude: string | null; longitude: string | null; }; message: string; order_status: string; tag: string; }[]; tracking_number: string; } | null; message: string; status: boolean; status_code: number;}, { data: | { courier_image: string; courier_name: string; CustomGlobalOrderId: string; drop_coordinate: { addressType: string; latitude: string; longitude: string; mapLocationId: string; }; latest_checkpoint_time: string; order_place_time: string; order_status: string; source_coordinate: { addressType: string; latitude: string; longitude: string; mapLocationId: string; }; tag: string; tracking_current_status: { fare_details: { amount: string; currency: string; }; location: { latitude: string | null; longitude: string | null; }; partner_details?: { contact: { primary: { country_code: string; number: string; }; secondary: { country_code: string; number: string; }; }; name: string; vehicle: { number: string | null; type: string; }; }; timestamps: { order: { accepted: string | null; ended: string | null; started: string | null; }; pickup: string | null; }; tracking_status: string; }; tracking_histories: { checkpoint_time: string; location: { latitude: string | null; longitude: string | null; }; message: string; order_status: string; tag: string; }[]; tracking_number: string; } | null; message: string; status: boolean; status_code: number;}>;Defined in: packages/sdk/src/core/types.ts:613
UpdateWarehouseDataSchema
Section titled “UpdateWarehouseDataSchema”const UpdateWarehouseDataSchema: ZodObject<{ is_phone_verified: ZodNumber; phone_number: ZodString;}, "strip", ZodTypeAny, { is_phone_verified: number; phone_number: string;}, { is_phone_verified: number; phone_number: string;}>;Defined in: packages/sdk/src/core/types.ts:223
UpdateWarehouseRequestSchema
Section titled “UpdateWarehouseRequestSchema”const UpdateWarehouseRequestSchema: ZodObject<{ address_type: ZodOptional<ZodEnum<["Home", "Office", "Shop", "Factory", "Hotel", "Other"]>>; latitude: ZodOptional<ZodString>; longitude: ZodOptional<ZodString>; warehouseAddressLandMark: ZodString; warehouseAddressLine1: ZodString; warehouseAddressLine2: ZodOptional<ZodString>; warehouseAddressPhone: ZodString; warehouseCity: ZodString; warehouseContactPerson: ZodString; warehouseCountry: ZodDefault<ZodString>; warehouseId: ZodString; warehouseName: ZodString; warehousePinCode: ZodString; warehouseState: ZodString;}, "strip", ZodTypeAny, { address_type?: "Home" | "Office" | "Shop" | "Factory" | "Hotel" | "Other"; latitude?: string; longitude?: string; warehouseAddressLandMark: string; warehouseAddressLine1: string; warehouseAddressLine2?: string; warehouseAddressPhone: string; warehouseCity: string; warehouseContactPerson: string; warehouseCountry: string; warehouseId: string; warehouseName: string; warehousePinCode: string; warehouseState: string;}, { address_type?: "Home" | "Office" | "Shop" | "Factory" | "Hotel" | "Other"; latitude?: string; longitude?: string; warehouseAddressLandMark: string; warehouseAddressLine1: string; warehouseAddressLine2?: string; warehouseAddressPhone: string; warehouseCity: string; warehouseContactPerson: string; warehouseCountry?: string; warehouseId: string; warehouseName: string; warehousePinCode: string; warehouseState: string;}>;Defined in: packages/sdk/src/core/types.ts:204
UpdateWarehouseResponseSchema
Section titled “UpdateWarehouseResponseSchema”const UpdateWarehouseResponseSchema: ZodObject<{ data: ZodNullable<ZodObject<{ is_phone_verified: ZodNumber; phone_number: ZodString; }, "strip", ZodTypeAny, { is_phone_verified: number; phone_number: string; }, { is_phone_verified: number; phone_number: string; }>>; message: ZodString; status: ZodBoolean; status_code: ZodNumber;}, "strip", ZodTypeAny, { data: | { is_phone_verified: number; phone_number: string; } | null; message: string; status: boolean; status_code: number;}, { data: | { is_phone_verified: number; phone_number: string; } | null; message: string; status: boolean; status_code: number;}>;Defined in: packages/sdk/src/core/types.ts:228
WarehouseListDataSchema
Section titled “WarehouseListDataSchema”const WarehouseListDataSchema: ZodUnion<[ZodObject<{ total: ZodNumber; warehouse: ZodArray<ZodObject<{ addedOn: ZodString; city: ZodString; country: ZodString; hyperlocal: ZodOptional<ZodObject<{ addressType: ZodString; latitude: ZodString; longitude: ZodString; mapLocationId: ZodNullable<...>; type: ZodString; }, "strip", ZodTypeAny, { addressType: string; latitude: string; longitude: string; mapLocationId: ... | ...; type: string; }, { addressType: string; latitude: string; longitude: string; mapLocationId: ... | ...; type: string; }>>; is_location_enabled: ZodString; isActive: ZodString; isEditable: ZodUnion<[ZodNumber, ZodBoolean]>; isShipped: ZodString; pincode: ZodString; state: ZodString; warehouseAddressLandMark: ZodString; warehouseAddressLine1: ZodString; warehouseAddressLine2: ZodString; warehouseAddressPhone: ZodString; warehouseContactPerson: ZodString; warehouseId: ZodNumber; warehouseName: ZodString; }, "strip", ZodTypeAny, { addedOn: string; city: string; country: string; hyperlocal?: { addressType: string; latitude: string; longitude: string; mapLocationId: string | null; type: string; }; is_location_enabled: string; isActive: string; isEditable: number | boolean; isShipped: string; pincode: string; state: string; warehouseAddressLandMark: string; warehouseAddressLine1: string; warehouseAddressLine2: string; warehouseAddressPhone: string; warehouseContactPerson: string; warehouseId: number; warehouseName: string; }, { addedOn: string; city: string; country: string; hyperlocal?: { addressType: string; latitude: string; longitude: string; mapLocationId: string | null; type: string; }; is_location_enabled: string; isActive: string; isEditable: number | boolean; isShipped: string; pincode: string; state: string; warehouseAddressLandMark: string; warehouseAddressLine1: string; warehouseAddressLine2: string; warehouseAddressPhone: string; warehouseContactPerson: string; warehouseId: number; warehouseName: string; }>, "many">;}, "strip", ZodTypeAny, { total: number; warehouse: { addedOn: string; city: string; country: string; hyperlocal?: { addressType: string; latitude: string; longitude: string; mapLocationId: string | null; type: string; }; is_location_enabled: string; isActive: string; isEditable: number | boolean; isShipped: string; pincode: string; state: string; warehouseAddressLandMark: string; warehouseAddressLine1: string; warehouseAddressLine2: string; warehouseAddressPhone: string; warehouseContactPerson: string; warehouseId: number; warehouseName: string; }[];}, { total: number; warehouse: { addedOn: string; city: string; country: string; hyperlocal?: { addressType: string; latitude: string; longitude: string; mapLocationId: string | null; type: string; }; is_location_enabled: string; isActive: string; isEditable: number | boolean; isShipped: string; pincode: string; state: string; warehouseAddressLandMark: string; warehouseAddressLine1: string; warehouseAddressLine2: string; warehouseAddressPhone: string; warehouseContactPerson: string; warehouseId: number; warehouseName: string; }[];}>, ZodEffects<ZodArray<ZodUnknown, "many">, { total: number; warehouse: { addedOn: string; city: string; country: string; hyperlocal?: { addressType: string; latitude: string; longitude: string; mapLocationId: string | null; type: string; }; is_location_enabled: string; isActive: string; isEditable: number | boolean; isShipped: string; pincode: string; state: string; warehouseAddressLandMark: string; warehouseAddressLine1: string; warehouseAddressLine2: string; warehouseAddressPhone: string; warehouseContactPerson: string; warehouseId: number; warehouseName: string; }[];}, unknown[]>]>;Defined in: packages/sdk/src/core/types.ts:194
WarehouseListItemSchema
Section titled “WarehouseListItemSchema”const WarehouseListItemSchema: ZodObject<{ addedOn: ZodString; city: ZodString; country: ZodString; hyperlocal: ZodOptional<ZodObject<{ addressType: ZodString; latitude: ZodString; longitude: ZodString; mapLocationId: ZodNullable<ZodString>; type: ZodString; }, "strip", ZodTypeAny, { addressType: string; latitude: string; longitude: string; mapLocationId: string | null; type: string; }, { addressType: string; latitude: string; longitude: string; mapLocationId: string | null; type: string; }>>; is_location_enabled: ZodString; isActive: ZodString; isEditable: ZodUnion<[ZodNumber, ZodBoolean]>; isShipped: ZodString; pincode: ZodString; state: ZodString; warehouseAddressLandMark: ZodString; warehouseAddressLine1: ZodString; warehouseAddressLine2: ZodString; warehouseAddressPhone: ZodString; warehouseContactPerson: ZodString; warehouseId: ZodNumber; warehouseName: ZodString;}, "strip", ZodTypeAny, { addedOn: string; city: string; country: string; hyperlocal?: { addressType: string; latitude: string; longitude: string; mapLocationId: string | null; type: string; }; is_location_enabled: string; isActive: string; isEditable: number | boolean; isShipped: string; pincode: string; state: string; warehouseAddressLandMark: string; warehouseAddressLine1: string; warehouseAddressLine2: string; warehouseAddressPhone: string; warehouseContactPerson: string; warehouseId: number; warehouseName: string;}, { addedOn: string; city: string; country: string; hyperlocal?: { addressType: string; latitude: string; longitude: string; mapLocationId: string | null; type: string; }; is_location_enabled: string; isActive: string; isEditable: number | boolean; isShipped: string; pincode: string; state: string; warehouseAddressLandMark: string; warehouseAddressLine1: string; warehouseAddressLine2: string; warehouseAddressPhone: string; warehouseContactPerson: string; warehouseId: number; warehouseName: string;}>;Defined in: packages/sdk/src/core/types.ts:173
WarehouseListResponseSchema
Section titled “WarehouseListResponseSchema”const WarehouseListResponseSchema: ZodObject<{ data: ZodNullable<ZodUnion<[ZodObject<{ total: ZodNumber; warehouse: ZodArray<ZodObject<{ addedOn: ZodString; city: ZodString; country: ZodString; hyperlocal: ZodOptional<...>; is_location_enabled: ZodString; isActive: ZodString; isEditable: ZodUnion<...>; isShipped: ZodString; pincode: ZodString; state: ZodString; warehouseAddressLandMark: ZodString; warehouseAddressLine1: ZodString; warehouseAddressLine2: ZodString; warehouseAddressPhone: ZodString; warehouseContactPerson: ZodString; warehouseId: ZodNumber; warehouseName: ZodString; }, "strip", ZodTypeAny, { addedOn: string; city: string; country: string; hyperlocal?: ... | ...; is_location_enabled: string; isActive: string; isEditable: ... | ... | ...; isShipped: string; pincode: string; state: string; warehouseAddressLandMark: string; warehouseAddressLine1: string; warehouseAddressLine2: string; warehouseAddressPhone: string; warehouseContactPerson: string; warehouseId: number; warehouseName: string; }, { addedOn: string; city: string; country: string; hyperlocal?: ... | ...; is_location_enabled: string; isActive: string; isEditable: ... | ... | ...; isShipped: string; pincode: string; state: string; warehouseAddressLandMark: string; warehouseAddressLine1: string; warehouseAddressLine2: string; warehouseAddressPhone: string; warehouseContactPerson: string; warehouseId: number; warehouseName: string; }>, "many">; }, "strip", ZodTypeAny, { total: number; warehouse: { addedOn: string; city: string; country: string; hyperlocal?: { addressType: ...; latitude: ...; longitude: ...; mapLocationId: ...; type: ...; }; is_location_enabled: string; isActive: string; isEditable: number | boolean; isShipped: string; pincode: string; state: string; warehouseAddressLandMark: string; warehouseAddressLine1: string; warehouseAddressLine2: string; warehouseAddressPhone: string; warehouseContactPerson: string; warehouseId: number; warehouseName: string; }[]; }, { total: number; warehouse: { addedOn: string; city: string; country: string; hyperlocal?: { addressType: ...; latitude: ...; longitude: ...; mapLocationId: ...; type: ...; }; is_location_enabled: string; isActive: string; isEditable: number | boolean; isShipped: string; pincode: string; state: string; warehouseAddressLandMark: string; warehouseAddressLine1: string; warehouseAddressLine2: string; warehouseAddressPhone: string; warehouseContactPerson: string; warehouseId: number; warehouseName: string; }[]; }>, ZodEffects<ZodArray<ZodUnknown, "many">, { total: number; warehouse: { addedOn: string; city: string; country: string; hyperlocal?: { addressType: ...; latitude: ...; longitude: ...; mapLocationId: ...; type: ...; }; is_location_enabled: string; isActive: string; isEditable: number | boolean; isShipped: string; pincode: string; state: string; warehouseAddressLandMark: string; warehouseAddressLine1: string; warehouseAddressLine2: string; warehouseAddressPhone: string; warehouseContactPerson: string; warehouseId: number; warehouseName: string; }[]; }, unknown[]>]>>; message: ZodString; status: ZodBoolean; status_code: ZodNumber;}, "strip", ZodTypeAny, { data: | { total: number; warehouse: { addedOn: string; city: string; country: string; hyperlocal?: { addressType: string; latitude: string; longitude: string; mapLocationId: string | null; type: string; }; is_location_enabled: string; isActive: string; isEditable: number | boolean; isShipped: string; pincode: string; state: string; warehouseAddressLandMark: string; warehouseAddressLine1: string; warehouseAddressLine2: string; warehouseAddressPhone: string; warehouseContactPerson: string; warehouseId: number; warehouseName: string; }[]; } | { total: number; warehouse: { addedOn: string; city: string; country: string; hyperlocal?: { addressType: string; latitude: string; longitude: string; mapLocationId: string | null; type: string; }; is_location_enabled: string; isActive: string; isEditable: number | boolean; isShipped: string; pincode: string; state: string; warehouseAddressLandMark: string; warehouseAddressLine1: string; warehouseAddressLine2: string; warehouseAddressPhone: string; warehouseContactPerson: string; warehouseId: number; warehouseName: string; }[]; } | null; message: string; status: boolean; status_code: number;}, { data: | unknown[] | { total: number; warehouse: { addedOn: string; city: string; country: string; hyperlocal?: { addressType: string; latitude: string; longitude: string; mapLocationId: string | null; type: string; }; is_location_enabled: string; isActive: string; isEditable: number | boolean; isShipped: string; pincode: string; state: string; warehouseAddressLandMark: string; warehouseAddressLine1: string; warehouseAddressLine2: string; warehouseAddressPhone: string; warehouseContactPerson: string; warehouseId: number; warehouseName: string; }[]; } | null; message: string; status: boolean; status_code: number;}>;Defined in: packages/sdk/src/core/types.ts:202
Functions
Section titled “Functions”ApiResponseSchema()
Section titled “ApiResponseSchema()”function ApiResponseSchema<T>(dataSchema: T): ZodObject<{ data: ZodNullable<T>; message: ZodString; status: ZodBoolean; status_code: ZodNumber;}, "strip", ZodTypeAny, { [k in "status" | "message" | "status_code" | "data"]: addQuestionMarks<baseObjectOutputType<{ data: ZodNullable<T>; message: ZodString; status: ZodBoolean; status_code: ZodNumber }>, any>[k] }, { [k in "status" | "message" | "status_code" | "data"]: baseObjectInputType<{ data: ZodNullable<T>; message: ZodString; status: ZodBoolean; status_code: ZodNumber }>[k] }>;Defined in: packages/sdk/src/core/types.ts:58
Standard API response wrapper for Unified Outbound API
Uses status and status_code fields
Type Parameters
Section titled “Type Parameters”T extends ZodTypeAny
Parameters
Section titled “Parameters”dataSchema
Section titled “dataSchema”T
Returns
Section titled “Returns”ZodObject<{
data: ZodNullable<T>;
message: ZodString;
status: ZodBoolean;
status_code: ZodNumber;
}, "strip", ZodTypeAny, { [k in “status” | “message” | “status_code” | “data”]: addQuestionMarks<baseObjectOutputType<{ data: ZodNullable<T>; message: ZodString; status: ZodBoolean; status_code: ZodNumber }>, any>[k] }, { [k in “status” | “message” | “status_code” | “data”]: baseObjectInputType<{ data: ZodNullable<T>; message: ZodString; status: ZodBoolean; status_code: ZodNumber }>[k] }>
calculateCollectableAmount()
Section titled “calculateCollectableAmount()”function calculateCollectableAmount(paymentType: "COD" | "Prepaid", codAmount: number): number;Defined in: packages/sdk/src/utils/index.ts:30
Parameters
Section titled “Parameters”paymentType
Section titled “paymentType”"COD" | "Prepaid"
codAmount
Section titled “codAmount”number
Returns
Section titled “Returns”number
fileToBase64DataURI()
Section titled “fileToBase64DataURI()”function fileToBase64DataURI(file: File): Promise<string>;Defined in: packages/sdk/src/utils/index.ts:5
Parameters
Section titled “Parameters”File
Returns
Section titled “Returns”Promise<string>
formatZodErrors()
Section titled “formatZodErrors()”function formatZodErrors(zodErrors: ZodIssue[]): Record<string, string[]>;Defined in: packages/sdk/src/utils/index.ts:58
Helper function to format Zod errors into a readable format
Parameters
Section titled “Parameters”zodErrors
Section titled “zodErrors”ZodIssue[]
Returns
Section titled “Returns”Record<string, string[]>
Example
Section titled “Example”const errors = formatZodErrors(zodError.issues);// { 'order_detail.invoice_id': ['Invalid format'] }isBigshipApiError()
Section titled “isBigshipApiError()”function isBigshipApiError(error: unknown): error is BigshipApiError;Defined in: packages/sdk/src/errors/index.ts:199
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”error is BigshipApiError
isBigshipAuthError()
Section titled “isBigshipAuthError()”function isBigshipAuthError(error: unknown): error is BigshipAuthError;Defined in: packages/sdk/src/errors/index.ts:191
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”error is BigshipAuthError
isBigshipDuplicateInvoiceError()
Section titled “isBigshipDuplicateInvoiceError()”function isBigshipDuplicateInvoiceError(error: unknown): error is BigshipDuplicateInvoiceError;Defined in: packages/sdk/src/errors/index.ts:183
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”error is BigshipDuplicateInvoiceError
isBigshipNetworkError()
Section titled “isBigshipNetworkError()”function isBigshipNetworkError(error: unknown): error is BigshipNetworkError;Defined in: packages/sdk/src/errors/index.ts:195
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”error is BigshipNetworkError
isBigshipValidationError()
Section titled “isBigshipValidationError()”function isBigshipValidationError(error: unknown): error is BigshipValidationError;Defined in: packages/sdk/src/errors/index.ts:187
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”error is BigshipValidationError
isFailedResponse()
Section titled “isFailedResponse()”function isFailedResponse<T>(response: ApiResponse<T>): response is ApiResponse<T> & { data: null; status: false };Defined in: packages/sdk/src/core/types.ts:791
Type guard to check if an API response failed Narrows the type to ensure data is null.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”response
Section titled “response”ApiResponse<T>
Returns
Section titled “Returns”response is ApiResponse<T> & { data: null; status: false }
isSuccessResponse()
Section titled “isSuccessResponse()”function isSuccessResponse<T>(response: ApiResponse<T>): response is ApiResponse<T> & { data: T; status: true };Defined in: packages/sdk/src/core/types.ts:783
Type guard to check if an API response is successful Narrows the type to ensure data is non-null
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”response
Section titled “response”ApiResponse<T>
Returns
Section titled “Returns”response is ApiResponse<T> & { data: T; status: true }
isValidBase64DataURI()
Section titled “isValidBase64DataURI()”function isValidBase64DataURI(value: string): boolean;Defined in: packages/sdk/src/utils/index.ts:26
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”boolean