### GET /api/v2/shipping/estimate/plan Source: https://api-manosiuntostst.post.lt/api/v2/api-docs Estimates the shipping plan based on query parameters. ```APIDOC ## GET /api/v2/shipping/estimate/plan ### Description Estimates the shipping plan based on query parameters. ### Method GET ### Endpoint /api/v2/shipping/estimate/plan ### Parameters #### Query Parameters - **receiverCountryCode** (string) - Required - Receiver's country code. - **senderCountryCode** (string) - Optional - Sender's country code. - **size** (string) - Optional - Size of the parcel. - **weight** (integer) - Optional - Weight of the parcel. - **length** (integer) - Optional - Length of the parcel. - **height** (integer) - Optional - Height of the parcel. - **width** (integer) - Optional - Width of the parcel. - **planCodes** (array of strings) - Optional - List of plan codes. - **parcelTypes** (array of strings) - Optional - List of parcel types. - **includeCountries** (boolean) - Optional - Whether to include countries. Defaults to false. - **includeTerminals** (boolean) - Optional - Whether to include terminals. Defaults to false. - **parcelDocument** (boolean) - Optional - Whether to include parcel documents. Defaults to false. ### Response #### Success Response (200) - **EstimatedPlan** (array) - An array of estimated shipping plan data. #### Response Example ```json { "example": "response body" } ``` ``` -------------------------------- ### GET /api/v2/shipping/plan Source: https://api-manosiuntostst.post.lt/api/v2/api-docs Retrieves a list of available shipping plans. This is useful for understanding the different shipping options. ```APIDOC ## GET /api/v2/shipping/plan ### Description Get shipping plans. ### Method GET ### Endpoint /api/v2/shipping/plan ### Response #### Success Response (200) - **planResponseList** (array) - An array of available shipping plans. #### Response Example ```json { "planResponseList": [ { "planCode": "string", "name": "string", "description": "string" } ] } ``` ``` -------------------------------- ### Get POD PDF by Date Range Source: https://api-manosiuntostst.post.lt/api/v2/api-docs Retrieves Proof of Delivery (POD) reports in PDF format for a specified date range. ```APIDOC ## GET /api/v2/pod/reports ### Description Get POD by date date range. ### Method GET ### Endpoint /api/v2/pod/reports ### Query Parameters - **dateFrom** (string) - Required - Date from. Example: 2024-01-01 - **dateTo** (string) - Required - Date to. Example: 2024-01-22 ### Response #### Success Response (200) - **object** (object) - POD found successfully (content type: application/pdf) #### Response Example { "example": "response body" } #### Error Response (404) - **description** - Not Found ``` -------------------------------- ### GET /api/v2/courier/pending/list Source: https://api-manosiuntostst.post.lt/api/v2/api-docs Lists shipping items pending for a courier call. ```APIDOC ## GET /api/v2/courier/pending/list ### Description To list shipping items for courier call. Check callCourier endpoint if courier call is possible. ### Method GET ### Endpoint /api/v2/courier/pending/list ### Parameters #### Query Parameters - **createdBeforeDate** (string) - Optional - Date filter to filter data older then this date. Format yyyy-MM-ddTHH:mm:ss. Time zone GMT+2 - **createdBefore** (integer) - Optional - **createdBeforeUnit** (string) - Optional - Default: HOUR. Enum: [HOUR, MINUTE] - **page** (integer) - Optional - Default: 0 ### Response #### Success Response (200) - **application/json** - OK ``` -------------------------------- ### Get Shipping Barcodes Source: https://api-manosiuntostst.post.lt/api/v2/api-docs Loads shipping barcodes by a list of parcel IDs. ```APIDOC ## GET /api/v2/shipping/barcode/list ### Description Loads barcodes by a list of parcel ids, each item has OK or FAILED status and corresponding id ### Method GET ### Endpoint /api/v2/shipping/barcode/list ### Query Parameters - **parcelIds** (array[integer]) - Optional - Unique identifier of a shipping item. At least one parameter is required [parcelIds or idRefs]. If parcelIds is present idRefs will be ignored. - **idRefs** (array[string]) - Optional - Unique identifier of a shipping item. At least one parameter is required [parcelIds or idRefs]. If parcelIds is present idRefs will be ignored. ### Response #### Success Response (200) - **ShippingItemStatus** (array) - Load barcodes by parcel ids. #### Response Example { "example": "response body" } ``` -------------------------------- ### GET /api/v2/terminal Source: https://api-manosiuntostst.post.lt/api/v2/api-docs Retrieves a list of terminals based on specified criteria. Useful for finding shipping or pickup points. ```APIDOC ## GET /api/v2/terminal ### Description Terminals. ### Method GET ### Endpoint /api/v2/terminal ### Query Parameters - **receiverCountryCode** (string) - Required - The country code of the receiver. - **size** (string) - Optional - The size of the terminal. - **find** (string) - Optional - A search term to find terminals. ### Response #### Success Response (200) - **terminalList** (array) - A list of available terminals. #### Response Example ```json { "terminalList": [ { "terminalId": "string", "name": "string", "address": { "addressLine1": "string", "city": "string", "postalCode": "string", "countryCode": "string" } } ] } ``` ``` -------------------------------- ### GET /api/v2/courier/call/required Source: https://api-manosiuntostst.post.lt/api/v2/api-docs Checks if a courier call is required. ```APIDOC ## GET /api/v2/courier/call/required ### Description Check is call courier required. ### Method GET ### Endpoint /api/v2/courier/call/required ### Response #### Success Response (200) - **boolean** - OK ``` -------------------------------- ### GET /api/v2/shipping/status/{requestId} Source: https://api-manosiuntostst.post.lt/api/v2/api-docs Fetches the status of a shipping request using its unique ID. It can also include barcodes if requested. ```APIDOC ## GET /api/v2/shipping/status/{requestId} ### Description Get shipping status by request id. Possible statuses: IN_PROGRESS, SUCCESSFUL, PARTIALLY_SUCCESSFUL, ERROR. ### Method GET ### Endpoint /api/v2/shipping/status/{requestId} ### Path Parameters - **requestId** (string) - Required - The unique identifier for the shipping request. ### Query Parameters - **includeBarcodes** (boolean) - Optional - Whether to include barcodes in the response. Default: false ### Response #### Success Response (200) - **shippingStatus** (object) - The status of the shipping request. #### Response Example ```json { "shippingStatus": { "requestId": "string", "status": "string", "barcodes": [ "string" ], "parcels": [ { "parcelId": "string", "status": "string", "message": "string" } ] } } ``` ``` -------------------------------- ### GET /api/v2/pod/report Source: https://api-manosiuntostst.post.lt/api/v2/api-docs Retrieves a POD PDF report based on a parcel ID or reference ID. ```APIDOC ## GET /api/v2/pod/report ### Description Get POD by parcelId. At least one parameter is required (parcelId or idRef). If parcelId is present, idRef will be ignored. ### Method GET ### Endpoint /api/v2/pod/report ### Parameters #### Query Parameters - **parcelId** (integer) - Optional - At least one parameter is required [parcelId or idRef]. - **idRef** (string) - Optional - At least one parameter is required [parcelId or idRef]. ### Response #### Success Response (200) - **application/pdf** - POD found successfully #### Error Response (404) - **application/pdf** - POD not found for specified parcelId ``` -------------------------------- ### GET /api/v2/shipping/estimate/price Source: https://api-manosiuntostst.post.lt/api/v2/api-docs Estimates the shipping price based on various parameters such as destination, parcel details, and selected services. ```APIDOC ## GET /api/v2/shipping/estimate/price ### Description Estimate shipping price. ### Method GET ### Endpoint /api/v2/shipping/estimate/price ### Query Parameters - **receiverCountryCode** (string) - Required - The country code of the receiver. - **receiverPostalCode** (string) - Optional - The postal code of the receiver. - **planCode** (string) - Required - The code of the shipping plan. - **parcelType** (string) - Required - The type of the parcel. - **size** (string) - Optional - The size of the parcel. - **weight** (integer) - Optional - The weight of the parcel in kg. - **partCount** (integer) - Optional - The number of parts in the shipment. - **length** (integer) - Optional - The length of the parcel in cm. - **height** (integer) - Optional - The height of the parcel in cm. - **width** (integer) - Optional - The width of the parcel in cm. - **services** (array) - Optional - Additional services to include, e.g., "COD:100" or "POD". ### Response #### Success Response (200) - **shippingPriceEstimate** (object) - The estimated shipping price. #### Response Example ```json { "shippingPriceEstimate": { "price": { "amount": "string", "currency": "string" }, "estimatedDeliveryDate": "string" } } ``` ``` -------------------------------- ### LP Express API Overview Source: https://api-manosiuntostst.post.lt/api/v2/swagger-ui/index.html?urls.primaryName=LPExpress%20public%20API General information regarding the LP Express public API v2 endpoints and base server configuration. ```APIDOC ## LP Express Public API ### Description The LP Express public API provides various controllers for managing logistics operations including shipping, parcels, addresses, and terminal locations. ### Base URL https://api-manosiuntostst.post.lt ### Available Controllers - **Shipping operations**: Manage shipping requests. - **Parcel operations**: Manage parcel tracking and status. - **Estimate shipping operations**: Calculate shipping costs and estimates. - **Address operations**: Validate and manipulate addresses. - **Shipping plan operations**: Manage shipping schedules. - **Courier operations**: Manage courier-related tasks. - **POD report operations**: Handle Proof of Delivery reports. - **Terminal operations**: Retrieve terminal locations and information. ``` -------------------------------- ### POST /api/v2/shipping/available/list Source: https://api-manosiuntostst.post.lt/api/v2/api-docs Checks shipping availability and returns a list of available shipping options. ```APIDOC ## POST /api/v2/shipping/available/list ### Description Get shipping availability list. ### Method POST ### Endpoint /api/v2/shipping/available/list ### Request Body - **ShippingAvailableRequestImpl** (object) - Required - Details for checking shipping availability. ### Request Example ```json { "example": "request body" } ``` ### Response #### Success Response (200) - **ShippingAvailableResult** (array) - An array of shipping availability data. #### Response Example ```json { "example": "response body" } ``` ``` -------------------------------- ### POST /api/v2/estimate/plan Source: https://api-manosiuntostst.post.lt/api/v2/api-docs Retrieves available shipping plans and options based on parcel parameters. ```APIDOC ## POST /api/v2/estimate/plan ### Description Returns available shipping plans, parcel types, and service requirements for a given set of shipping parameters. ### Method POST ### Endpoint /api/v2/estimate/plan ### Request Body - **size** (string) - Optional - Parcel size code. - **weight** (integer) - Optional - Weight in integer format. - **planCodes** (array) - Optional - List of plan codes to filter by. - **parcelTypes** (array) - Optional - List of parcel types. - **senderCountryCode** (string) - Optional - ISO country code of the sender. - **receiverCountryCode** (string) - Optional - ISO country code of the receiver. ### Response #### Success Response (200) - **EstimatedPlan** (object) - Contains plan details including shipping options and delivery estimates. ``` -------------------------------- ### POST /api/v2/shipping/estimate/plan Source: https://api-manosiuntostst.post.lt/api/v2/api-docs Estimates the shipping plan based on the request body. ```APIDOC ## POST /api/v2/shipping/estimate/plan ### Description Estimates the shipping plan based on the request body. ### Method POST ### Endpoint /api/v2/shipping/estimate/plan ### Request Body - **EstimateShippingPlanRequestImpl** (object) - Required - Details for estimating shipping plan. ### Request Example ```json { "example": "request body" } ``` ### Response #### Success Response (200) - **EstimatedPlan** (array) - An array of estimated shipping plan data. #### Response Example ```json { "example": "response body" } ``` ``` -------------------------------- ### Create Parcel API Source: https://api-manosiuntostst.post.lt/api/v2/api-docs Create a new parcel with the specified details. ```APIDOC ## POST /api/v2/parcel ### Description Creates a new parcel with the provided details. ### Method POST ### Endpoint /api/v2/parcel ### Request Body - **comment** (string) - Optional - A comment for the parcel (max 128 characters). - **overwriteIdRef** (boolean) - Optional - Whether to overwrite the ID reference. - **idRef** (string) - Optional - A reference ID for the parcel (max 255 characters). - **id** (string) - Optional - A unique identifier for the parcel. - **plan** (object) - Required - The shipping plan details. - **parcel** (object) - Required - The parcel details. - **receiver** (object) - Required - The receiver's information. - **documents** (object) - Optional - Document details for the parcel. - **services** (array) - Optional - A list of services to include. - **sender** (object) - Optional - The sender's information. - **pickup** (object) - Optional - Pickup details. - **senderAddressId** (integer) - Optional - The ID of the sender's address. - **pickupAddressId** (integer) - Optional - The ID of the pickup address. ### Response #### Success Response (200) - **parcelId** (integer) - The ID of the created parcel. - **idRef** (string) - The reference ID of the parcel. - **id** (object) - The ID object of the parcel. - **warnings** (array) - A list of warnings, if any. ``` -------------------------------- ### POST /api/v2/parcel Source: https://api-manosiuntostst.post.lt/api/v2/api-docs Creates a single parcel item. ```APIDOC ## POST /api/v2/parcel ### Description Creates single parcel item. ### Method POST ### Endpoint /api/v2/parcel ### Request Body - **CreateParcelRequest** (object) - Required - Details for creating a parcel. ### Request Example ```json { "example": "request body" } ``` ### Response #### Success Response (200) - **ParcelCreateResponse** (object) - Contains the Parcel ID and a list of warnings if any exist. #### Response Example ```json { "example": "response body" } ``` ``` -------------------------------- ### POST /api/v2/courier/call Source: https://api-manosiuntostst.post.lt/api/v2/api-docs Initiates a courier call for individual shipping items. It's recommended to check the callCourier endpoint availability before making a call. ```APIDOC ## POST /api/v2/courier/call ### Description To call a courier for individual shipping items. Check callCourier endpoint if courier call is possible. ### Method POST ### Endpoint /api/v2/courier/call ### Request Body - **parcelIds** (array) - Required - List of parcel IDs to be shipped. ### Request Example ```json { "parcelIds": [ "string" ] } ``` ### Response #### Success Response (200) - **callCourierResult** (array) - Description of the result of calling the courier. #### Response Example ```json { "callCourierResult": [ { "parcelId": "string", "status": "string", "message": "string" } ] } ``` ``` -------------------------------- ### POST /api/v2/shipping/estimate/price Source: https://api-manosiuntostst.post.lt/api/v2/api-docs Estimates the shipping price based on the provided request details. ```APIDOC ## POST /api/v2/shipping/estimate/price ### Description Estimates the shipping price based on the provided request details. ### Method POST ### Endpoint /api/v2/shipping/estimate/price ### Request Body - **EstimateShippingPriceRequestImpl** (object) - Required - Details for estimating shipping price. ### Request Example ```json { "example": "request body" } ``` ### Response #### Success Response (200) - **EstimateShippingPriceResult** (array) - An array of estimated shipping price data. #### Response Example ```json { "example": "response body" } ``` ``` -------------------------------- ### Estimate Shipping Plan Countries Source: https://api-manosiuntostst.post.lt/api/v2/api-docs Retrieves a list of countries eligible for shipping plans based on specified criteria. ```APIDOC ## GET /api/v2/shipping/estimate/plan/countries ### Description Estimate shipping plan countries. ### Method GET ### Endpoint /api/v2/shipping/estimate/plan/countries ### Query Parameters - **planCodes** (array[string]) - Required - - **parcelTypes** (array[string]) - Required - - **senderCountryCode** (string) - Optional - - **size** (string) - Optional - - **weight** (integer) - Optional - - **length** (integer) - Optional - - **height** (integer) - Optional - - **width** (integer) - Optional - - **parcelDocument** (boolean) - Optional - Default: false ### Response #### Success Response (200) - **EstimatedCountry** (array) - Estimated Shipping plan country data list structure #### Response Example { "example": "response body" } ``` -------------------------------- ### Estimate Shipping Price Source: https://api-manosiuntostst.post.lt/api/v2/api-docs Estimates the shipping price for a given set of parameters. ```APIDOC ## GET /api/v2/shipping/estimate/price ### Description Estimates the shipping price. ### Method GET ### Endpoint /api/v2/shipping/estimate/price ### Query Parameters - **planCodes** (array[string]) - Required - - **parcelTypes** (array[string]) - Required - - **senderCountryCode** (string) - Optional - - **size** (string) - Optional - - **weight** (integer) - Optional - - **length** (integer) - Optional - - **height** (integer) - Optional - - **width** (integer) - Optional - - **parcelDocument** (boolean) - Optional - Default: false ### Response #### Success Response (200) - **EstimatedShippingPrice** (object) - Estimated Shipping price data structure #### Response Example { "example": "response body" } ``` -------------------------------- ### POST /api/v2/estimate/price Source: https://api-manosiuntostst.post.lt/api/v2/api-docs Estimates the shipping price for one or more items based on provided parcel details. ```APIDOC ## POST /api/v2/estimate/price ### Description Calculates shipping costs for items based on sender and receiver location, parcel size, weight, and selected plan. ### Method POST ### Endpoint /api/v2/estimate/price ### Request Body - **senderAddressId** (integer) - Optional - ID of the sender address. - **items** (array) - Required - List of items to estimate shipping for. ### Response #### Success Response (200) - **id** (string) - Unique identifier for the estimate. - **price** (object) - The calculated shipping price. - **errors** (array) - List of validation errors if any. ``` -------------------------------- ### Shipping Available API Source: https://api-manosiuntostst.post.lt/api/v2/api-docs Check the availability of shipping options based on provided parcel details. ```APIDOC ## POST /api/v2/shipping/available ### Description Checks the availability of shipping options for a given request. ### Method POST ### Endpoint /api/v2/shipping/available ### Request Body - **senderAddressId** (integer) - Optional - The ID of the sender's address. - **items** (array) - Required - A list of items for which to check shipping availability. Each item must conform to the `ShippingAvailableRequestItemImpl` schema. - **receiverCountryCode** (string) - Required - The country code of the receiver. - **receiverPostalCode** (string) - Optional - The postal code of the receiver. - **size** (string) - Optional - The size of the parcel. - **weight** (integer) - Optional - The weight of the parcel. - **partCount** (integer) - Optional - The number of parts in the parcel. - **planCode** (string) - Required - The plan code for the shipment. - **parcelType** (string) - Required - The type of parcel. - **services** (array) - Optional - A list of services to include. - **dimensions** (object) - Optional - The dimensions of the parcel. - **documents** (object) - Optional - Document details for the shipment. - **includeErrors** (boolean) - Optional - Whether to include errors in the response. ### Response #### Success Response (200) - **id** (string) - The ID of the shipping request. - **available** (boolean) - Indicates if shipping is available. - **errors** (array) - A list of validation errors, if any. ``` -------------------------------- ### LP Express Public API Source: https://api-manosiuntostst.post.lt/api/v2/swagger-ui/index.html?urls.primaryName=LPExpress+public+API This section details the LP Express Public API, version 2.0.1, which follows the OAS 3.0 specification. The API is hosted at https://api-manosiuntostst.post.lt. ```APIDOC ## LP Express Public API v2 ### Description This API provides access to LP Express services, including shipping, parcel, address, and courier operations. ### Server URL `https://api-manosiuntostst.post.lt` ### API Documentation Endpoint `/api/v2/api-docs` ### Controllers - **Shipping operations**: Controller responsible for shipping operations. - **Parcel operations**: Controller responsible for parcel operations. - **Estimate shipping operations**: Controller responsible for estimating shipping operations. - **Address operations**: Manipulations with addresses. - **Shipping plan operations**: Controller responsible for shipping plan operations. - **Courier operations**: Controller responsible for courier operations. - **POD report operations**: Controller responsible for pod report operations. - **Terminal operations**: Controller responsible for estimating terminals operations. ``` -------------------------------- ### POST /api/v2/address/validate Source: https://api-manosiuntostst.post.lt/api/v2/api-docs Validates an address. The 'strict' query parameter can be used for a more rigorous validation. ```APIDOC ## POST /api/v2/address/validate ### Description Validate address. ### Method POST ### Endpoint /api/v2/address/validate ### Query Parameters - **strict** (boolean) - Optional - If true strictly address validation will be applied (address structure and all fields must be filled correctly). Default: false ### Request Body - **personBase** (object) - Required - Base information about the person. ### Request Example ```json { "personBase": { "name": "string", "companyName": "string", "addressLine1": "string", "addressLine2": "string", "addressLine3": "string", "city": "string", "stateOrProvinceCode": "string", "postalCode": "string", "countryCode": "string", "phone": "string", "email": "string" } } ``` ### Response #### Success Response (200) - **validationResult** (object) - The result of the address validation. #### Response Example ```json { "validationResult": { "isValid": true, "errors": [ { "field": "string", "message": "string" } ] } } ``` ``` -------------------------------- ### Call Courier API Source: https://api-manosiuntostst.post.lt/api/v2/api-docs Request a courier to pick up a parcel. ```APIDOC ## POST /api/v2/courier/call ### Description Requests a courier to pick up a parcel. This endpoint is used to schedule a courier pickup for a parcel. ### Method POST ### Endpoint /api/v2/courier/call ### Request Body - **barcode** (string) - Required - The barcode of the parcel for which to call a courier. - **parcelId** (integer) - Required - The ID of the parcel for which to call a courier. ### Response #### Success Response (200) - **barcode** (string) - The barcode of the parcel for which the courier was called. - **parcelId** (integer) - The ID of the parcel for which the courier was called. ``` -------------------------------- ### Price Entity Schema Source: https://api-manosiuntostst.post.lt/api/v2/api-docs Defines the structure of the Price object used across the API. ```APIDOC ## Price Entity ### Description Represents the pricing information including amount, VAT, and currency. ### Fields - **amount** (number) - Amount of price. - **vat** (number) - VAT for price amount. - **currency** (string) - Currency representation in which price amount is displayed. ``` -------------------------------- ### POST /api/v2/courier/pending/call Source: https://api-manosiuntostst.post.lt/api/v2/api-docs Calls a pending courier for all pending parcels. ```APIDOC ## POST /api/v2/courier/pending/call ### Description Call courier for all pending parcels. ### Method POST ### Endpoint /api/v2/courier/pending/call ### Parameters #### Query Parameters - **createdBeforeDate** (string) - Optional - Filters parcels created before this date. ### Response #### Success Response (200) - (No specific response schema provided in the input) #### Response Example ```json { "example": "response body" } ``` ``` -------------------------------- ### Call Courier Result Schema Source: https://api-manosiuntostst.post.lt/api/v2/api-docs Defines the structure for paginated courier call results. ```APIDOC ## SliceResultImplCallCourierResult ### Description Represents a paginated result set for courier calls. ### Fields - **content** (array) - List of CallCourierResult objects. - **hasNext** (boolean) - Indicates if there is a next page. - **hasPrevious** (boolean) - Indicates if there is a previous page. ``` -------------------------------- ### Delete Response Schema Source: https://api-manosiuntostst.post.lt/api/v2/api-docs Standard response structure for delete operations. ```APIDOC ## DeleteResponse ### Description Indicates the status of a deletion request. ### Fields - **deleted** (boolean) - True if the resource was successfully deleted. ``` -------------------------------- ### Shipping Operations API Source: https://api-manosiuntostst.post.lt/api/v2/api-docs Endpoints for managing shipping operations, including initiating shipments and processing returns. ```APIDOC ## POST /api/v2/shipping/return ### Description To create labels for shipping items that will be returned. ### Method POST ### Endpoint /api/v2/shipping/return ### Parameters #### Request Body - **ParcelBarcodeListRequest** (object) - Required - Request object for returning parcels. ### Response #### Success Response (200) - **ShippingReturnItem** (array) - Shipping return confirmed. #### Response Example ```json { "example": "response body" } ``` ``` ```APIDOC ## POST /api/v2/shipping/initiate ### Description To initiate dispatch of parcels. The response returns requestId. ### Method POST ### Endpoint /api/v2/shipping/initiate ### Parameters #### Query Parameters - **processAsync** (boolean) - Optional - Whether to process the shipment asynchronously. #### Request Body - **ParcelIdListRequest** (object) - Required - Request object containing a list of parcel IDs. ### Response #### Success Response (200) - **InitiateShippingResponse** (object) - Shipping initiation confirmed. #### Response Example ```json { "example": "response body" } ``` ``` ```APIDOC ## POST /api/v2/shipping/estimate/price/list ### Description Estimate shipping price list. ### Method POST ### Endpoint /api/v2/shipping/estimate/price/list ### Parameters #### Request Body - **com** (object) - Request object for estimating shipping prices. ### Response #### Success Response (200) - **[Schema details not provided in the source]** #### Response Example ```json { "example": "response body" } ``` ``` -------------------------------- ### Address Operations API Source: https://api-manosiuntostst.post.lt/api/v2/api-docs APIs for managing address information, specifically retrieving the default sender address. ```APIDOC ## GET /api/v2/address/sender ### Description To get a default sender address. ### Method GET ### Endpoint /api/v2/address/sender ### Response #### Success Response (200) - **PersonResponse** - Returns the default users sender address value. ``` -------------------------------- ### Address Operations API Source: https://api-manosiuntostst.post.lt/api/v2/api-docs Endpoints for managing sender addresses, including creation, retrieval, update, and deletion. ```APIDOC ## POST /api/v2/address/sender ### Description To create sender address. ### Method POST ### Endpoint /api/v2/address/sender ### Parameters #### Query Parameters - **strict** (boolean) - Optional - If true strictly address validation will be applied (address structure and all fields must be filled correctly) #### Request Body - **PersonBase** (object) - Required - Schema for person base information. ### Request Example ```json { "example": "request body" } ``` ### Response #### Success Response (200) - **PersonResponse** (object) - Returns created address. #### Response Example ```json { "example": "response body" } ``` ``` ```APIDOC ## PUT /api/v2/address/sender ### Description To update a default sender address. ### Method PUT ### Endpoint /api/v2/address/sender ### Parameters #### Query Parameters - **strict** (boolean) - Optional - If true strictly address validation will be applied (address structure and all fields must be filled correctly) #### Request Body - **PersonBase** (object) - Required - Schema for person base information. ### Response #### Success Response (200) - **FieldErrorResponse** (array) - Returns array of warnings if any exists. #### Response Example ```json { "example": "response body" } ``` ``` ```APIDOC ## GET /api/v2/address/sender/{id} ### Description To get a sender address by ID. ### Method GET ### Endpoint /api/v2/address/sender/{id} ### Parameters #### Path Parameters - **id** (integer) - Required - The ID of the sender address. ### Response #### Success Response (200) - **PersonResponse** (object) - Returns users sender address value. #### Response Example ```json { "example": "response body" } ``` ``` ```APIDOC ## PUT /api/v2/address/sender/{id} ### Description To update sender address by ID. ### Method PUT ### Endpoint /api/v2/address/sender/{id} ### Parameters #### Path Parameters - **id** (integer) - Required - The ID of the sender address. #### Query Parameters - **strict** (boolean) - Optional - If true strictly address validation will be applied (address structure and all fields must be filled correctly) #### Request Body - **PersonBase** (object) - Required - Schema for person base information. ### Response #### Success Response (200) - **FieldErrorResponse** (array) - Returns array of warnings if any exists. #### Response Example ```json { "example": "response body" } ``` ``` ```APIDOC ## DELETE /api/v2/address/sender/{id} ### Description To delete a sender address by ID. ### Method DELETE ### Endpoint /api/v2/address/sender/{id} ### Parameters #### Path Parameters - **id** (integer) - Required - The ID of the sender address. ### Response #### Success Response (200) - **object** (object) - OK #### Response Example ```json { "example": "response body" } ``` ``` -------------------------------- ### Check Shipping Availability Source: https://api-manosiuntostst.post.lt/api/v2/api-docs Checks the availability of shipping services based on receiver and parcel details. ```APIDOC ## GET /api/v2/shipping/available ### Description Get shipping availability. ### Method GET ### Endpoint /api/v2/shipping/available ### Query Parameters - **receiverCountryCode** (string) - Required - - **receiverPostalCode** (string) - Optional - - **planCode** (string) - Required - - **parcelType** (string) - Required - - **size** (string) - Optional - - **weight** (integer) - Optional - - **partCount** (integer) - Optional - - **length** (integer) - Optional - - **height** (integer) - Optional - - **width** (integer) - Optional - - **services** (array[string]) - Optional - COD:100 or POD if service has no value argument - **includeErrors** (boolean) - Optional - Default: false ### Response #### Success Response (200) - **ShippingAvailableResult** (object) - Shipping available data structure #### Response Example { "example": "response body" } ``` -------------------------------- ### POST /api/v2/shipping/cancel Source: https://api-manosiuntostst.post.lt/api/v2/api-docs Cancels shipping items based on the provided parcel IDs. ```APIDOC ## POST /api/v2/shipping/cancel ### Description To cancel shipping items. ### Method POST ### Endpoint /api/v2/shipping/cancel ### Request Body - **ParcelIdListRequest** (object) - Required - List of parcel IDs to cancel. ### Request Example ```json { "example": "request body" } ``` ### Response #### Success Response (200) - **CancelCourierResult** (array) - A list of results for the cancelled shipping items. #### Response Example ```json { "example": "response body" } ``` ``` -------------------------------- ### POST /api/v2/parcel/validate Source: https://api-manosiuntostst.post.lt/api/v2/api-docs Validates a parcel item. ```APIDOC ## POST /api/v2/parcel/validate ### Description Validate parcel item. ### Method POST ### Endpoint /api/v2/parcel/validate ### Request Body - **ParcelValidateItemBase** (object) - Required - Details for validating a parcel. ### Request Example ```json { "example": "request body" } ``` ### Response #### Success Response (200) - **ParcelValidationResult** (object) - Contains a 'valid' flag and a list of warnings if any exist. #### Response Example ```json { "example": "response body" } ``` ``` -------------------------------- ### Validate Parcel API Source: https://api-manosiuntostst.post.lt/api/v2/api-docs Validate parcel details before creation. ```APIDOC ## POST /api/v2/parcel/validate ### Description Validates parcel details. This endpoint can be used to check if a parcel can be created and to identify potential issues before the actual creation. ### Method POST ### Endpoint /api/v2/parcel/validate ### Request Body - **comment** (string) - Optional - A comment for the parcel (max 128 characters). - **overwriteIdRef** (boolean) - Optional - Whether to overwrite the ID reference. - **idRef** (string) - Optional - A reference ID for the parcel (max 255 characters). - **id** (string) - Optional - A unique identifier for the parcel. - **plan** (object) - Optional - The shipping plan details. - **parcel** (object) - Optional - The parcel details. - **receiver** (object) - Optional - The receiver's information. - **documents** (object) - Optional - Document details for the parcel. - **services** (array) - Optional - A list of services to include. - **sender** (object) - Optional - The sender's information. - **pickup** (object) - Optional - Pickup details. - **senderAddressId** (integer) - Optional - The ID of the sender's address. - **pickupAddressId** (integer) - Optional - The ID of the pickup address. - **options** (object) - Optional - Validation options. - **lookupAddress** (boolean) - Optional - If true, tries to find the address (address structure and all fields must be filled correctly). Affects only LT addresses. Defaults to false. - **resolveAddress** (boolean) - Optional - If true, tries to resolve and find the address (address lookup based on locality + 'address' or 'address1' and 'address2' fields). Affects only LT addresses and only if 'lookupAddress' param is set to false. Defaults to false. - **validateSenderAddress** (boolean) - Optional - Whether to validate the sender's address. Defaults to true. - **validateCn** (boolean) - Optional - Whether to validate CN (China) addresses. Defaults to true. ### Response #### Success Response (200) - **valid** (boolean) - Indicates if the parcel details are valid. - **errors** (array) - A list of validation errors. - **warnings** (array) - A list of validation warnings. ``` -------------------------------- ### Cancel Courier API Source: https://api-manosiuntostst.post.lt/api/v2/api-docs Cancel a previously booked courier. ```APIDOC ## POST /api/v2/courier/cancel ### Description Cancels a courier booking. This endpoint is used to cancel a parcel that has already been booked with a courier. ### Method POST ### Endpoint /api/v2/courier/cancel ### Request Body - **barcode** (string) - Required - The barcode of the parcel to cancel. - **parcelId** (integer) - Required - The ID of the parcel to cancel. ### Response #### Success Response (200) - **barcode** (string) - The barcode of the cancelled parcel. - **parcelId** (integer) - The ID of the cancelled parcel. - **idRef** (string) - The reference ID of the cancelled parcel. - **cancelled** (boolean) - Indicates if the cancellation was successful. - **details** (string) - Additional details about the cancellation. ``` -------------------------------- ### Parcel Operations API Source: https://api-manosiuntostst.post.lt/api/v2/api-docs APIs for managing parcel information, including retrieval, update, and deletion. ```APIDOC ## GET /api/v2/parcel/{parcelId} ### Description To get details of a single parcel. ### Method GET ### Endpoint /api/v2/parcel/{parcelId} ### Parameters #### Path Parameters - **parcelId** (integer) - Required - Unique identifier of the shipping item on “Mano siuntos” system. ### Response #### Success Response (200) - **ParcelBaseResponse** - Shipping item data structure. ## PUT /api/v2/parcel/{parcelId} ### Description To update and edit parcel details. ### Method PUT ### Endpoint /api/v2/parcel/{parcelId} ### Parameters #### Path Parameters - **parcelId** (integer) - Required #### Request Body - **UpdateParcelRequest** - Required ### Response #### Success Response (200) - **ParcelUpdateResponse** - Returns array of warnings if any exists. ## DELETE /api/v2/parcel/{parcelId} ### Description Delete single parcel. ### Method DELETE ### Endpoint /api/v2/parcel/{parcelId} ### Parameters #### Path Parameters - **parcelId** (integer) - Required - Unique identifier of the parcel on “Mano siuntos” system. ### Response #### Success Response (200) - **DeleteResponse** - If deleted will return true otherwise false. ## GET /api/v2/parcel/idref/{idRef} ### Description To get details of a single parcel. ### Method GET ### Endpoint /api/v2/parcel/idref/{idRef} ### Parameters #### Path Parameters - **idRef** (string) - Required - Unique identifier of the shipping item on “Mano siuntos” system. ### Response #### Success Response (200) - **ParcelBaseResponse** - Shipping item data structure. ## PUT /api/v2/parcel/idref/{idRef} ### Description To update and edit parcel details. ### Method PUT ### Endpoint /api/v2/parcel/idref/{idRef} ### Parameters #### Path Parameters - **idRef** (string) - Required #### Request Body - **UpdateParcelRequest** - Required ### Response #### Success Response (200) - **ParcelUpdateResponse** - Returns array of warnings if any exists. ## DELETE /api/v2/parcel/idref/{idRef} ### Description Delete single parcel. ### Method DELETE ### Endpoint /api/v2/parcel/idref/{idRef} ### Parameters #### Path Parameters - **idRef** (string) - Required - Unique identifier of the parcel on “Mano siuntos” system. ### Response #### Success Response (200) - **DeleteResponse** - If deleted will return true otherwise false. ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.