CPL API
Useful links
  • Developer
  • Sandbox
Useful links
  • Developer
  • Sandbox
Přepni do češtiny
  1. ShipmentBatch
  • Back to home
  • API Methods
  • AccessPoint
    • List of access points
  • AddressWhisper
    • Address Whisperer
  • Codelist
    • Codelist for the beneficiary's age verification service
    • Codelist product
    • Codelist externalNumbers
    • Codelist country + COD authorization
    • Codelist currency
    • Method for obtaining the services provided for shipments.
    • A method for obtaining minimum and maximum values ​​for services
    • Codelist shipment phase
    • Codelist status
    • Codelist of validation messages
    • Types of personal documents
  • Customer
    • Customer information - permitted currencies
    • Customer addresess
  • Info
    • /info
  • Order
    • Order tracking
  • OrderBatch
    • Create an order
    • Get order status
  • OrderEvent
    • Order cancel
  • Shipment
    • Shipment tracking
  • ShipmentBatch
    • Shipment creation
      POST
    • Used to modify the output format of the label.
      PUT
    • Getting import state
      GET
    • Pick up label
      GET
  • ShipmentEvent
    • Shipment cancel
    • Adding informations to shipment
  • VersionInformation
    • News
  1. ShipmentBatch

Used to modify the output format of the label.

PUT
/shipment/batch/{batchId}
ShipmentBatch

Purpose and usage#

This method allows changing the label format by providing a modified labelSettings or returnChannel body from the shipment/batch method.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT '/shipment/batch/' \
--header 'Accept-Language;' \
--header 'X-Correlation-ID;' \
--header 'X-LogLevel;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "labelSettings": {
        "format": "Pdf",
        "completeLabelSettings": {
            "isCompleteLabelRequested": true,
            "pageSize": "A4"
        }
    }
}'
Response Response Example
204 - Example 1
{}

Request

Path Params
batchId
string <uuid>
required
The batch id
Header Params
Accept-Language
string 
optional
Language specification, default language: cs-CZ
X-Correlation-ID
string 
optional
Correlation Id of request
X-LogLevel
enum<string> 
optional
The forced log level
Allowed values:
TraceDebugInformationWarningErrorCritical
Body Params application/json
UpdateShipmentBatchModel
returnChannel
optional
One of
ReturnChannelModel
type
optional
address
string  | null 
optional
Pokud je vybrán Type = Email, pak zde vyplňovat email příjemce etikety Délka: 100
<= 100 characters
labelSettings
object (Eps.Api.MyApi2.Web.Models.ShipmentBatch.LabelSettingsModel) 
required
LabelSettingsModel
format
enum<string> 
optional
Label format
Allowed values:
ZplPdfJpegPngSvg
dpi
integer <int32> | null 
optional
Volba DPI pro ZPL
>= 203<= 1200
completeLabelSettings
optional
Examples

Responses

🟢204No Content
application/json
No Content
Headers
X-Correlation-ID
string 
optional
Correlation Id of request otherwise id of response
Body
object {0}
🟠400Bad Request
🔴500Server Error
🔴503Service Unavailable
Previous
Shipment creation
Next
Getting import state
Built with